Template:Keyboard layouts: Difference between revisions
No edit summary |
|||
Line 5: | Line 5: | ||
[[OLPC Keyboard layouts#US International keyboard|English (US international)]]; [[OLPC Argentina Keyboard|Spanish (Argentine)]]; [[OLPC Brasil Keyboard|Portuguese (Brazilian)]]; [[OLPC Ethiopia Keyboard|Amharic (Ethiopic)]]; [[OLPC Libya Keyboard|Arabic]]; [[OLPC Nigeria Keyboard|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]] |
[[OLPC Keyboard layouts#US International keyboard|English (US international)]]; [[OLPC Argentina Keyboard|Spanish (Argentine)]]; [[OLPC Brasil Keyboard|Portuguese (Brazilian)]]; [[OLPC Ethiopia Keyboard|Amharic (Ethiopic)]]; [[OLPC Libya Keyboard|Arabic]]; [[OLPC Nigeria Keyboard|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]] |
||
The procedure for modifying the keyboard layout on your XO is described [[Customizing_NAND_images#Keyboard|here]]. |
|||
Console keyboard layout files are in /lib/kbd/keymaps/i386. Set the console layout thus, in bash. |
|||
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 /lib/kbd/keymaps/i386. From the Terminal activity (or the console), you can use the 'loadkeys' program to assign a keymap to the the console. |
|||
⚫ | |||
for Spanish |
|||
⚫ | |||
loadkeys us |
loadkeys us |
||
for English |
|||
You can access the console by pressing Ctrl+Alt+F1 (F1 is [[Image:Mesh key f1 small.png]]) then log in as root with no password. To return to Sugar, press Ctrl+Alt+F3 (F3 is [[Image:Home key f3 small.png]]). |
|||
The |
|||
X keyboard layout files are in /usr/share/X11/xkb/symbols. Set the X layout thus, from the [[Developer Console|Terminal]]. |
|||
===X Window System=== |
|||
⚫ | |||
⚫ | |||
X Window System keyboard symbol files are in /usr/share/X11/xkb/symbols. Again, from the Terminal activity (or the console), you can use the 'setxkmap' to assign a symbol table to the X Window System. |
|||
Press Alt+= or Alt+0 to toggle back and forth. |
|||
⚫ | |||
for Spanish |
|||
The layout switching key (misnamed the language key) is times-divide, just above right arrow. On Arabic and some other XOs it has a different graphic symbol, indicating two alphabets to switch between. |
|||
⚫ | |||
for US |
|||
In the Arabic layout, it is defined as |
|||
You need to restart X to make the changes take effect (by typing Ctrl+Alt+Erase). |
|||
// Language key |
|||
key <I219> { [ ISO_Next_Group, ISO_Prev_Group ] } |
|||
===Making the changes permanent=== |
|||
In the International US English layout, it is defined as |
|||
The above changes are temporary. To make permanent changes, you should use the 'sugar-control-panel' program as described [[Sugar-control-panel|here]]. |
|||
sugar-control-panel -s language Spanish/Argentina |
|||
key <I219> {[ multiply, division,ISO_Next_Group,ISO_Prev_Group ]} |
|||
This changes the values in /etc/sysconfig/keyboard. |
|||
Some current layouts, including Dvorak, fail to define a language key. |
|||
XKB_MODEL="olpc" |
|||
Please see [[Customizing_NAND_images#Keyboard]] for more details about configuring your keyboard and console keybindings. |
|||
XKB_LAYOUT="es" |
|||
XKB_VARIANT="olpc" |
|||
KEYTABLE="es" |
Revision as of 23:08, 15 January 2008
OLPC keyboard layouts
English (US international); Spanish (Argentine); Portuguese (Brazilian); Amharic (Ethiopic); Arabic; West African; French; Thai; Urdu; Cyrillic; Turkish; Nepali; Mongolian; Kazakh; Devanagari; Uzbek; Pashto; Dari; Armenian; Khmer; Pulaar
The procedure for modifying the keyboard layout on your XO is described 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 /lib/kbd/keymaps/i386. From the Terminal activity (or the console), you can use the 'loadkeys' program to assign a keymap to the the console.
loadkeys es
for Spanish
loadkeys us
for English
The
X Window System
X Window System keyboard symbol files are in /usr/share/X11/xkb/symbols. Again, from the Terminal activity (or the console), you can use the 'setxkmap' to assign a symbol table to the X Window System.
setxkbmap es
for Spanish
setxkbmap us
for US
You need to restart X to make the changes take effect (by typing Ctrl+Alt+Erase).
Making the changes permanent
The above changes are temporary. To make permanent changes, you should use the 'sugar-control-panel' program as described here.
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"