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

Tom Dawes-Gamble tmdg at tmdg.co.uk
Sun Nov 2 17:18:36 UTC 2003


Hi Alex,

On Sun, 2003-11-02 at 14:28, lug at assursys.co.uk wrote:
> 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
> 

I did it slightly differently 

$ cat .Xmodmap
keycode 0x0c = 3  numbersign sterling
keycode 0x0d = 4  dollar EuroSign
keycode 0x71 = Mode_switch

that seems to work as I want it to.  But I'd like to do it globaly.  

> Personally, though, I prefer to enable the right Windows key as a compose
> key:
> <http://groups.google.com/groups?hl=en&lr=lang_en&ie=UTF-8&threadm=pan.2003.10.09.10.18.37.41228%40ntlworld.com&rnum=1&prev=/groups%3Fq%3Dalex%2Bbutcher%2Bpc105%26hl%3Den%26lr%3Dlang_en%26ie%3DUTF-8%26scoring%3Dd%26selm%3Dpan.2003.10.09.10.18.37.41228%2540ntlworld.com%26rnum%3D1>
> for details.
> 

This is good stuff IF you have a UK keyboard.  I don't it's a 
US keyboard with '#' over the '3' and '@' over '2' so the UK/US layout
is very different.

> 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)
> 

The thing that really pisses me off it that I found the solution for
windows 2002 in about 15 minutes.  OK it's not as elegant as the
Linux/S-Windows solution but that has taken hours and may still have
some gotchas.  Then I have to do the solution on every box.  

With the way windows does it I can go to any PC and key <alt>156 or
<alt>0128 and it works.

Tom.

> 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.
> 
> HTH,
> Alex.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.tmdg.co.uk/pipermail/sclug/attachments/20031102/9374c48b/attachment.bin


More information about the Sclug mailing list