[sclug] The Euro Sign (Solved (Well almost :-) )

lug at assursys.co.uk lug at assursys.co.uk
Sun Nov 2 14:28:28 UTC 2003

On Sun, 2 Nov 2003, Tom Dawes-Gamble wrote:

> Having continued to Dig around I found the solution.  Isn't that always
> the way <sigh>. 
> Here is the solution.  :-
> # xmodmap -e "keysym Alt_R = Mode_switch"
> # xmodmap -e "keysym 4 = 4 dollar EuroSign"
> # xmodmap -e "keysym 3 = 3 numbersign sterling"
> So now the right hand Alt and 3 gives the '?' (Pound sterling)
> and Right Alt 4 gives me the '?' Euro Symbol.
> So where is it best to store that script?

$HOME/.Xmodmap is the traditional place. To give an idea of syntax, here's
my (disabled because RH Does The Right Thing) .Xmodmap:

$ cat .Xmodmap.disabled
keycode 0x1A = e  E EuroSign cent
keycode 0x0d = 4 dollar onequarter currency
keycode 0x74 =  Multi_key

add    Mod3    = Multi_key

Personally, though, I prefer to enable the right Windows key as a compose
for details.

Doing so allows me to enter a euro sign by typing:

R Win (release), = (release), e

and a sterling symbol by typing

R Win (release), = (release), l

Both easy to remember (or work out!) in terms the shapes of the characters.
Accented characters work as you expect, using ',~*^`"-/ characters, and
digraphs (such as the German double-s, the combined 'ae' in encylopaedia or
the old english 'thorn' character) can be typed by using r.win, char, char
(e.g. r.win, a, e)

in applications that support international characters.

> The only thing I've lost now is variable pitch fonts in Evolution. 
> Though I might view that as a benefit.  :-)
> Tom.

Alex Butcher      Brainbench MVP for Internet Security: www.brainbench.com
Bristol, UK                      Need reliable and secure network systems?
PGP/GnuPG ID:0x271fd950                         <http://www.assursys.com/>

More information about the Sclug mailing list