Problem with the input of '€' (U+20AC EURO SIGN) with ~/.Xmodmap

Mike FABIAN mfabian at suse.de
Fri Jun 22 18:35:02 EDT 2007


Aidan Kehoe <kehoea at parhasard.net> さんは書きました:

> Mike, to avoid this, you can safely add 
>
> (set-character-of-keysym 'EuroSign ?\u20AC)
>
> to the end of your ~/.xemacs/init.el .

Yes, this works. Thank you!

> The correct fix, though, is to update
> the ISO 8859-7 core fonts as used by the X server. 

I already thought about updating the fonts.  This is easy for the
Greek bitmap font I am using in XEmacs,
"-etl-fixed-medium-r-normal--16-160-72-72-c-80-iso8859-7", I can just
copy the missing glyph over from
"-efont-fixed-medium-r-normal--16-160-75-75-c-80-iso8859-15" which has
the same style.

But doing that for all Greek fonts which still lack the € will be very
tedious.
>  > 
>  >  > When trying to input ¢ via ~/.Xmodmap, it is even worse, I only get
>  >  > the regular ASCII 'c' than.
>
> That surprises me; your example works for me locally. When you type AltGr +
> c and immediately F1 l , does it list U00A2 as the keysym?

Recent keystrokes:

C-x C-b RET C-x 1 EuroSign button2 button2up C-j EuroSign
button1 button1up C-x C-f ~ / e m TAB / r e s TAB RET
C-s C-g next button1 button1up button1 button1up C-x
k RET EuroSign BS x RET unknown-keysym-0x10000A2 f1
l

> If so, what does 
> (get-character-of-keysym 'U00A2) return?

(get-character-of-keysym 'U00A2)
nil

> (Both in terms of what it looks
> like and what C-x = gives you.)  

The following line in ~/.Xmodmap

    keysym w = w NoSymbol 0x0100263a 0x01002639

works just fine and gives me a ☺ on AltGr+w and a ☹ on Shift+AltGr+w.

(get-character-of-keysym 'U263A)
?☺

(get-character-of-keysym 'U2639)
?☹

But

    keysym c = c NoSymbol 0x010000a2 currency

does not work for me, AltGr+c just enters an ASCII 'c'.

-- 
Mike FABIAN   <mfabian at suse.de>   http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。
I � Unicode



More information about the XEmacs-Beta mailing list