[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [UTF] using utf-8 with xterm



On Tue Jan  2 11:50:12 2001 -0000 Tomas Frydrych wrote:

> 
> I am sorry, if this a is trivial question, but I am out of my witts (have 
> read the Unicode HOWTO, the utf-8 man page, the locale man 
> page the kbd_mode man page, the xmodmap man page ...). 
> 
> I have got the Unicode enabled xterm and Markus Kuhn's unicode 
> fonts installed on my machine, and can display the sample files 
> that came with Markus' fonts very nicely. Now, how do I make my 
> keyboard under XFree86 4 emit utf-8 codes? I use English locale, 
> which I want to keep, but say would like to assign the Hebrew 
> Aleph (UCS=0x5d0, utf-8 0xd7 0x90) to a particular key on the 
> keyboard. I have tried to assign both 0x5d0 and 0xd790 to the key 
> using xmodmap, but this does not work, the key will not generate 
> anything at all (or so it seems). I have also tried to use kbd_mode -
> u, but that renders my keyboard totally unusable, genearting not 
> much more than [ and ].
> 
> Thanks for help
> Tomas Frydrych
> (I run XFree 4 under Linux 2.2.17 on an Intel machine; I also use 
> KDE).

    /usr/bin/kbd_mode -u is for linux console only.
Try to run 'xev' and you will see if your XKB keymap works.
It uses X keysym codes, not charset codes.
It should work for en_US.UTF-8 locale.  If you see:
Warning: locale not supported by C library, locale unchanged
this means that you need to create libc locale with localedef.
 BTW kxkb (KDE keymap switcher) seems to be broken in the way that it forces
Qt to latin1 input, so don't use it or try plain xterm first.

-- 
      ☻ Ričardas Čepas ☺
~~
~
-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/lists/