Typo
[linux_from_scratch_hints.git] / OLD / euro.txt
blob8076b89959ea09a2e4e7581d28ba7ae08487613e
1 TITLE:          ¤uro.txt
2 LFS VERSION:    Tested on LFS-3.0
3 AUTHOR:         Ivo Schaap <ivo@thecourtofeden.org>
4                         or <i.schaap@hccnet.nl>
6 SYNOPSIS:       How to render euro signs on your lfs box in case you wondered
7                 how to do it.
10 HINT:
11 version 1.0 (01/06/2002)
15 TABLE OF CONTENTS
16 =================
18 1. Introduction.
19 2. Get euro's on a virtual console (tty[1-6])
20 3. Get euro's in a xterm.
21 4. Other issues.
25 1. Introduction.
26 ================
28 This hint was born while i tryed to search for the euro on my lfs system.
29 It is more simple than i tought it would be. But in some apps i still dont know
30 how to get things done like opera. If you have valuable information you can
31 mail me and i can put it in this hint.
35 2. Get euro's on a virtual console (tty[1-6]) 
36 =============================================
38 First the keyboard map has to be known.
39 Put this in /etc/sysconfig/keyboard
41 LAYOUT=/usr/share/kbd/keymaps/i386/include/euro1.map.gz
44 Than use a latin 9 character set:
45 vi /etc/sysconfig/font
47 ---<snip>---
48 # Begin /etc/sysconfig/font
50 FONTMAP=/usr/share/kbd/consolefonts/lat9u-08.psfu.gz
52 # End /etc/sysconfig/font
53 ---</snip>---
56 To let this be your default font, put this at the end in /etc/init.d/loadkeys
58 ---<snip>---
59 echo -n "Loading font..."
60 /usr/bin/setfont $FONTMAP 2>/dev/null
61 evaluate_retval
62 ---<snip>---
65 What you've basicly have done is: 
67 loadkeys euro1 &&
68 setfont /usr/share/kbd/consolefonts/lat9u-08.psfu.gz
71 So open an editor, and test it by pressing <alt gr> e
72 this is the alt key right of the spacebar.
74 Or say:
76 printf "\xa4\n"
78 Example: ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤
80 There suposed to be 8 eurosigns above.
83 And an other trick is to type:
84    <ctrl> v
85 to say 'here comes a special char', and than:
86    <alt gr> <shift> 4
88 It gives \224 as one escaped character.
89    
90 Like in:
92 echo "This is the \244"
94 To get this:
96 This is the ¤
100 3. To get euro's in an xterm.
101 =============================
103 First see what you have that you can use:
105 xlsfonts | grep iso8859-15
107 Than pick one you like and put in .Xdefaults
109 *VT100.font: -misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-15
111 and put in .xinitrc before anything else is executed
113 xmodmap -e 'keycode 26 = e E EuroSign'
116 Oke fire up your X and xterm and start an editor and for example vi.
117 I had to push <shift> <alt gr> 4 to get one.
119 or type this on your xterm:
121 printf "\xa4\n"
123 And again to test it, here some euro's: ¤ ¤ ¤ ¤ ¤ ¤ ¤ 
128 4. Other Issues.
129 ================
131 For all other apps try to let them use a latin 9 (iso8859-15) character set.
133 Try to experiment:
135 grep -irn iso8859 /etc/
136 grep -irn font /etc/
138 and change iso8859-1 in iso8859-15 ( AND MAKE BACKUPS FIRST !!! ) 
140 There still a few things unclear to me, like to get them in webpages, so that
141 everyone can see them. The best solution I now use is having a little 
142 gif/png/jpg instead so every one can see what currency i mean. The real solution
143 is that you use ;euro& as an escaped html character to render an euro.
144 If you apsolutely dont know what to do any more you can always put EUR before 
145 a price and that should be oke too.
147 Opera have let me down, well i think it shal be fixed in the next versions ;)
148 Gvim too altough vi is working properly.
150 And then there is the issue that some people want to use there own language.
151 So as Marco Rinck (marco@romulus23.de) states in his email, 
152    
153 http://archive.linuxfromscratch.org/mail-archives/blfs-support/2001/12/0472.html
155 ---<snip>---
156 > First of all: the normal console. I have the following set in my
157 > /etc/profile:
159 LC_ALL   = de_DE.ISO-8859-15
160 LC_CTYPE = de_DE.ISO-8859-15
161 RC_LANG  = de_DE.ISO-8859-15
163 export LC_ALL LC_CTYPE RC_LANG
165 > Of course thats for germany. The "de_DE" you have to change to your
166 > local settings. Now the only you must do is to set a default font wich
167 > contains the euro. The preinstalled font lat0-16.psfu.gz should suit
168 > your needs. Look in the LFS book how to set it as default. After this
169 > I had no problems with euro on console. I had to press "Alt-GR" (the
170 >  key right of space) and E and it worked.
171 ---</snip>---
173 Well you are free to do that but personaly dont like responses in dutch from my
174 computer ;) 
176 To get realy into the locale things here are some things that might get you running
177 locale --help
179 give all availeble locales
180 locale -v -a
182 give all availeble charmaps
183 locale -m 
185 man 1 localedef
187 man 5 locale
189 man 5 charmap
191 man 7 iso_8859-15   
193 To close this hint i like to say that you are free to ask me how to do stuff and
194 if you have any usefull additions i like too put them up here. Thanks goes to 
195 everyone that helped me on #lfs.