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

Re: Converting to UTF-8 from ISO-8859



On 14 Jun 2003 Alex Malinovich <demonbane@the-love-shack.net> wrote:

> I've been working on converting my system over to using UTF-8 wherever
> possible. I've already configured galeon, evolution, gnome-terminal and
> just about every other graphical application to use UTF-8 by default. I've
> set my locale to "en_US.UTF-8". And just about everything works just fine.
> Unfortunately, as I'm not all that familiar with all of the details of an
> i18n interface, there are a few things that still elude me.
>
> 1) I've set up an .Xmodmap file to map my left Windows key to Multi_key so
> that I can type extended characters. However, I have to run "xmodmap
> .Xmodmap" manually every time I restart X. I'm guessing that I should put
> this in an X startup script. A .bashrc equivalent for X. Unfortunately,
> I'm not sure what the proper file to put it in is.

/etc/X11/Xsession. I suppose. A real X11 wizard may have a better idea.

> 2) Is there a way to get UTF-8 support in a regular text console? The only
> place I've seen what I believe to be actual UTF-8 output at a regular text
> console is from apt-listchanges using the "pager" setting. Everything else
> seems to choke. This is a real problem with ncurses applications like
> querybts, because they become nearly unusable since it's very difficult to
> distinguish between actual letters and the garbled output that should be a
> "window".

Have not looked at UTF-8 so far, but what I do know is that setting of font
and character set for regular text consoles is done through:
  /etc/console-tools/config
using the utilities:
  consolechars
  charset
The fonts for regular text consoles are in:
  /usr/share/consolefonts
the character sets in:
  /usr/share/consoletrans
All you need is in the packages console-tools and console-data; man
consolechars and man charset will enlighten you further.

> 3) Assuming that #2 is possible, how can I type extended characters in a
> text console? While in X, I can, for example, type "Windows Key", Y, =,
> and get the yen symbol (Â¥). However, since a text mode terminal doesn't
> care about any X keybindings, I have no way to type extended characters
> like that. Is there another method of inputting these characters? Or am I
> just stuck with the regular set of QWERTY keys?

Keybindings in regular text consoles are determined by loading keymaps.
Prefabricated keymaps are in
  /usr/share/keymaps
look in the subdirectory for your architecture and type of keyboard.
There is a command
  loadkeys
to load a keymap at run time. The keymap that is loaded at startup is the
one called
  /etc/console/boottime.kmap.gz
I am not sure and cannot immediately check which package delivers keymaps,
but you almost certainly already have it installed.

> [snip]

Ben

-- 

B.F.M. Kal
Anjelierstraat 1,   2014 TC Haarlem,  Netherlands
tel +31 23 5324909, benkal@euronet.nl



Reply to: