Template:Keyboard layouts: Difference between revisions

From OLPC
Jump to navigation Jump to search
(splitting into two parts to make the keyboard pages more readable)
Line 4: Line 4:
</noinclude>
</noinclude>
==OLPC keyboard layouts==
==OLPC keyboard layouts==
[[OLPC Keyboard layouts#US International keyboard|English (US international)]]; [[OLPC Argentina Keyboard|Spanish (Latin America)]]; [[OLPC Brasil Keyboard|Portuguese (Brazilian)]]; [[OLPC Ethiopia Keyboard|Amharic (Ethiopic)]]; [[OLPC Libya Keyboard|Arabic]]; [[OLPC Nigeria Keyboard|Nigerian/West African]]; [[OLPC Rwanda Keyboard|French]]; [[OLPC Thailand Keyboard|Thai]]; [[Urdu Keyboard|Urdu]]; [[Cyrillic Keyboard|Cyrillic]]; [[OLPC Turkey Keyboard|Turkish]]; [[OLPC Nepal Keyboard|Nepali]]; [[OLPC Mongolian Keyboard|Mongolian]]; [[OLPC Kazakh Keyboard|Kazakh]]; [[Devanagari Keyboard|Devanagari]]; [[Uzbek Keyboard|Uzbek]]; [[Pashto Keyboard|Pashto]]; [[Dari Keyboard|Dari]]; [[Armenian Keyboard|Armenian]]; [[Khmer Keyboard|Khmer]]; [[Pulaar Keyboard|Pulaar]]; [[Italian Keyboard|Italian]]; [[French Canadian|Kreyòl]]
[[OLPC Keyboard layouts#US International keyboard|English (US international)]]; [[OLPC Argentina Keyboard|Spanish (Latin America)]]; [[OLPC Brasil Keyboard|Portuguese (Brazilian)]]; [[OLPC Ethiopia Keyboard|Amharic (Ethiopic)]]; [[OLPC Libya Keyboard|Arabic]]; [[OLPC Nigeria Keyboard|Nigerian]]; [[OLPC Rwanda Keyboard|French]]; [[OLPC Thailand Keyboard|Thai]]; [[Urdu Keyboard|Urdu]]; [[Cyrillic Keyboard|Cyrillic]]; [[OLPC Turkey Keyboard|Turkish]]; [[OLPC Nepal Keyboard|Nepali]]; [[OLPC Mongolian Keyboard|Mongolian]]; [[OLPC Kazakh Keyboard|Kazakh]]; [[Devanagari Keyboard|Devanagari]]; [[Uzbek Keyboard|Uzbek]]; [[Pashto Keyboard|Pashto]]; [[Dari Keyboard|Dari]]; [[Armenian Keyboard|Armenian]]; [[Khmer Keyboard|Khmer]]; [[Pulaar Keyboard|Pulaar]]; [[Italian Keyboard|Italian]]; [[French Canadian|Kreyòl]]

The procedure for modifying the keyboard layout on your XO is described [[Customizing_NAND_images#Keyboard|here]].

There are two mechanisms on the laptop that are used to configure the keyboards: one for the console and one for the X Window System (and Sugar).

===Console===

Console keyboard layout files are in <tt>/lib/kbd/keymaps/i386</tt>. From the [[Terminal]] activity (or the console), you can use the 'loadkeys' program to assign a keymap to the the console. For example:

loadkeys es

for Spanish

loadkeys us

for English

===X Window System===

X Window System keyboard symbol files are in <tt>/usr/share/X11/xkb/symbols</tt>. Again, from the [[Terminal]] activity (or the console), you can use the <tt>setxkbmap</tt> to assign a symbol table to the X Window System. For example:

setxkbmap es

for Spanish

setxkbmap us

for US

setxkbmap -layout us,in -variant olpc2,olpc

for US and Devanagari

===Making the changes permanent===
The above changes are temporary. To make permanent changes, you should use the 'sugar-control-panel' program as described [[Sugar-control-panel|here]]. For example:

sugar-control-panel -s language Spanish/Argentina

This changes the values in /etc/sysconfig/keyboard.

XKB_MODEL="olpc"
XKB_LAYOUT="es"
XKB_VARIANT="olpc"
KEYTABLE="es"

Revision as of 21:49, 20 March 2008