README.symbols revision 154daed1
1154daed1Smrg
2154daed1SmrgThe files in the symbols directory describe possible layouts for a given 
3154daed1Smrgkeyboard.
4154daed1Smrg
5154daed1SmrgThe default layout in each file should describe the most common layout
6154daed1Smrgfor its kind, usually the symbols printed on the keys. Layout variants
7154daed1Smrgcan describe common differences that are not necessarily printed on the keys.
8154daed1Smrg(e.g. a phonetic version of Cyrillic).
9154daed1Smrg
10154daed1SmrgThe names of the files are referenced throughout the XKB rules, and may be
11154daed1Smrgexposed in the X server configuration and in user configuration tools.
12154daed1SmrgThe filenames use the following convention:
13154daed1Smrg
14154daed1SmrgCountry layouts:
15154daed1Smrg
16154daed1Smrg  Keyboard layouts for a country must use the 2-letter code from the
17154daed1Smrg  ISO-3166 standard.
18154daed1Smrg
19154daed1SmrgLanguage layouts:
20154daed1Smrg
21154daed1Smrg  Keyboard layouts for a language must use the 3-letter code from the
22154daed1Smrg  ISO-639 standard.
23154daed1Smrg
24154daed1SmrgScript layouts:
25154daed1Smrg
26154daed1Smrg  Keyboard layouts for a script must use the 4-letter code from the
27154daed1Smrg  ISO-15924 standard.
28154daed1Smrg
29154daed1SmrgOther:
30154daed1Smrg
31154daed1Smrg  Keyboard layouts that do not fit in the above model and directories
32154daed1Smrg  must use a filename between 5 and 8 characters.
33154daed1Smrg
34154daed1SmrgThe ISO codes can be found at the following addressed:
35154daed1Smrg
36154daed1SmrgCountry layouts:  http://www.iso.org/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/iso_3166-1_decoding_table.html
37154daed1SmrgLanguage layouts: http://www.loc.gov/standards/iso639-2/langcodes.html
38154daed1SmrgScript layouts:   http://www.unicode.org/iso15924/iso15924-codes.html
39154daed1Smrg
40154daed1SmrgThe description in the directory file base.xml.in should match the group names 
41154daed1Smrgin the symbols file. 
42154daed1Smrg
43154daed1SmrgIf the layout is country-based, this has to be the full 
44154daed1Smrgname of the country. It is highly not recommended to use the forms 
45154daed1Smrg"Republic of XXX" or "XXX Republic" - the form "XXX" should be used instead.
46154daed1SmrgThe only exception is "United Kingdom".
47154daed1Smrg
48154daed1SmrgIf the layout is language-based, this has to be the name of the language.
49154daed1Smrg
50154daed1SmrgWithin single symbols file, all the variants should have the same group name 
51154daed1Smrg(implemented using the "include" directive wherever possible).
52