From: Vanger <fa...@gm...> - 2006-06-30 10:22:11
|
In any configuration, there should be "us" layout by default. Doesn't matter, how much you love our native non-latin language, but you can't configure system by it. > Option "XkbRules" "xorg" > Option "XkbModel" "pc104" > Option "XkbLayout" "us,ru(winkeys)" > Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll" This is the perfectly working configuration. But I always have to set it manually. xorgconfig is dumb, when you try to set up your language in it, it makes a non-working configuration: Option "XkbLayout" "ru" Option "XkbVariant" "ru(winkeys) And if you change the default - "XkbLayout" - on "us", you can't switch on Russian or back. I even have seen such variant: Option "XkbLayout" ""us","ru"" in a Deepstyle Linux (Russified and Ukrainized Slackware). That doesn't work either. So, the final variant shold be: Option "XkbLayout" "us,<other languages>" Option "XkbOptions" "grp:<toggle>,grp_led:<if someone wish>" > * How should I integrate console keyboard support with X keyboard > support? Or should I let them be separate? It's quite easy - you have to load the needed font, load the needed keyboard layout and enable mapping on ttys. For Russian it looks like this: setfont koi8r_8x16 loadkeys ru-ms for n in 1 2 3 4 5 6; // similar for all languages do echo -ne "\033(K" > /dev/tty$n done I think, it can be automated, but I don't like the idea of integrating with X. > * cdialog configuration of X is sufficient, yes? I don't think having > a GUI version is really necessary. It is not critical, but it would be good to see it. > I don't agree. One may want to setup X keyboard via GUI. > KDE Control Center allows some X settings via GUI. But they don't work, because they rely on KDE's switcher ;) . |