Template:Keyboard layouts

From OLPC
Revision as of 01:45, 28 February 2008 by Dupuy (talk | contribs) (OLPC keyboard layouts)
Jump to: navigation, search
  english | 한글 HowTo [ID# 112858]  +/-  

OLPC keyboard layouts

English (US international); Spanish (Latin America); Portuguese (Brazilian); Amharic (Ethiopic); Arabic; Nigerian/West African; French; Thai; Urdu; Cyrillic; Turkish; Nepali; Mongolian; Kazakh; Devanagari; Uzbek; Pashto; Dari; Armenian; Khmer; Pulaar; Italian; Kreyòl

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. For example:

loadkeys es

for Spanish

loadkeys us

for English

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 setxkbmap 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 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"