On Tue, Jul 31, 2007 at 04:36:44PM +0100, Rui Santos wrote:

>     In my "quest", I'd like to use UTF-8 in all consoles. I almost did
> it, except for a little detail: I cannot use any kind of accents with
> any of my letters. Here is what I do
> 
>     loadkeys /usr/share/kbd/compose.winkeys
>     loadkeys /usr/share/kbd/compose.latin1.add

Composing characters don't work with utf-8, but a patch exsts (not tested by
me). It was mentioned last week on kernel list:
http://marc.info/?l=linux-kernel&m=118531371404736&w=2

Standalone accents should work, but you may need to pass a -u/--unicode
option to loadkeys. (Not mentioned in loadkeys manual, but printed by
loadkeys --help.)

I'm using something like this; this should work work you too:
  echo -en '\033%G'
  kbd_mode -u
  setfont lat2-16 -m 8859-2
  loadkeys -u hu
If you press the keys, some accented vowels should appear.


Furthermore, brand new in 2.6.22: there's a file called default_utf8 (or
something similar) somewhere under /proc, echo 1 to it and your newly
allocated or reseted terminals will automatically be UTF-8 so you won't need
that \033%G.



bye,

Egmont

--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

Reply via email to