rane 06/01/02 13:40:18 Modified: xml/htdocs/doc/en guide-localization.xml Log: adding information about using multiple keyboard layouts (#48820), information about deadkeys, environment updates, international keyboards (#113885) and fixing configuration file for consolefont location to conf.d/consolefont along with init.d/consolefont usage explanation Revision Changes Path 1.35 +92 -5 xml/htdocs/doc/en/guide-localization.xml file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/guide-localization.xml?rev=1.35&content-type=text/x-cvsweb-markup&cvsroot=gentoo plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/guide-localization.xml?rev=1.35&content-type=text/plain&cvsroot=gentoo diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/guide-localization.xml.diff?r1=1.34&r2=1.35&cvsroot=gentoo Index: guide-localization.xml =================================================================== RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/guide-localization.xml,v retrieving revision 1.34 retrieving revision 1.35 diff -u -r1.34 -r1.35 --- guide-localization.xml 25 Nov 2005 20:43:33 -0000 1.34 +++ guide-localization.xml 2 Jan 2006 13:40:18 -0000 1.35 @@ -1,5 +1,5 @@ - + @@ -29,8 +29,8 @@ the German doc. Includes configuration for use of the euro currency symbol. -1.24 -2005-11-25 +1.25 +2006-01-02 Time zone @@ -216,6 +216,28 @@

+Once you have set the right locale, be sure to update your environment +variables to make your system aware of the change: +

+ +
+# env-update && source /etc/profile
+
+ +

+After this, you will need to kill your X server by pressing +Ctrl-Alt-Backspace, log out, then log in as user. +

+ +

+Now, verify that the changes have taken effect: +

+ +
+$ env | grep -i LC_
+
+ +

There is also additional localisation variable called LINGUAS, which affects to localisation files that get installed in gettext-based programs, and decides used localisation for some specific software packages, such as @@ -256,6 +278,19 @@ # export LANG="en_US.ISO-8859-15" +

+Be sure to update the environment after the change: +

+ +
+# env-update && source /etc/profile
+
+ +

+After this, you will need to kill your X server by pressing +Ctrl-Alt-Backspace, log out, then log in as user. +

+
@@ -335,10 +370,46 @@ Identifier "Keyboard1" ... Option "XkbLayout" "de" - # Option "XkbVariant" "nodeadkeys" + #Option "XkbModel" "pc105" ## this is for international keyboards. + # Option "XkbVariant" "nodeadkeys" ## this would be used for xterm input + ... + + +

+If you have an international keyboard layout, you should set the option +XkbModel to pc102 or pc105, as this will allow mapping of the +additional keys specific to your keyboard. +

+ +

+Deadkeys allow you to press keys that will not show immediately but will be +combined with another letter to produce a single character such as é,è,á,à, +etc. Setting XkbVariant to nodeadkeys allows input these special +characters into X terminals. +

+ +

+If you would like to switch between more than one keyboard layout (for example +English and Russian), all you have to do is add a few lines to +xorg.conf that specify the desired layouts and the shortcut +command. +

+ +
+ Section "InputDevice"
+     Identifier  "Keyboard1"
      ...
+     Option "XkbLayout"    "us,ru"
+     Option "XkbOptions"   "grp:alt_shift_toggle,grp_led:scroll"
 
+

+Here, XkbOptions allows you to toggle between keyboard layouts by simply +pressing Alt-Shift. This will also toggle the Scroll Lock light on or +off, thanks to the grp_led:scroll option. This is a handy visual +indicator of which keyboard layout you are using at the moment. +

+
@@ -365,7 +436,7 @@

In order to get your console to display the Euro symbol, you will need to set CONSOLEFONT in -/etc/rc.conf to a file found in +/etc/conf.d/consolefont to a file found in /usr/share/consolefonts/ (without the .psfu.gz). lat9w-16 has the Euro symbol.

@@ -374,6 +445,22 @@ CONSOLEFONT="lat9w-16" +

+You should verify that CONSOLEFONT is in the boot runlevel: +

+ +
+# rc-update show | grep -i consolefont
+
+ +

+If no runlevel is displayed for CONSOLEFONT, then add it to the proper level: +

+ +
+# rc-update add consolefont boot
+
+ -- gentoo-doc-cvs@gentoo.org mailing list