README.symbols revision 797b363d
1154daed1Smrg
2797b363dSmrgThe files in the symbols directory describe possible keyboard layouts
3797b363dSmrgfor a given  country or language or script.
4154daed1Smrg
5154daed1SmrgThe default layout in each file should describe the most common layout
6797b363dSmrgfor its kind, usually the one that matches the symbols printed on the
7797b363dSmrgkeys.  Layout variants can describe common deviations that are not
8797b363dSmrgnecessarily printed on the keys (e.g. a phonetic version of Cyrillic).
9154daed1Smrg
10797b363dSmrgThe names of the files are referenced throughout the XKB rules, and may
11797b363dSmrgbe exposed in the X server configuration and in user configuration tools.
12154daed1SmrgThe filenames use the following convention:
13154daed1Smrg
14154daed1SmrgCountry layouts:
15154daed1Smrg  Keyboard layouts for a country must use the 2-letter code from the
16154daed1Smrg  ISO-3166 standard.
17154daed1Smrg
18154daed1SmrgLanguage layouts:
19154daed1Smrg  Keyboard layouts for a language must use the 3-letter code from the
20154daed1Smrg  ISO-639 standard.
21154daed1Smrg
22154daed1SmrgScript layouts:
23154daed1Smrg  Keyboard layouts for a script must use the 4-letter code from the
24154daed1Smrg  ISO-15924 standard.
25154daed1Smrg
26154daed1SmrgOther:
27797b363dSmrg  Keyboard layouts that do not fit in the above categories must use a
28797b363dSmrg  filename between 5 and 8 characters.
29154daed1Smrg
30797b363dSmrgThe relevant ISO codes can be found at the following addresses:
31154daed1Smrg
32797b363dSmrgCountry layouts:  http://www.iso.org/iso/home/standards/country_codes/iso-3166-1_decoding_table.htm
33797b363dSmrgLanguage layouts: http://www.loc.gov/standards/iso639-2/php/code_list.php
34154daed1SmrgScript layouts:   http://www.unicode.org/iso15924/iso15924-codes.html
35154daed1Smrg
36797b363dSmrgThe descriptions of the layouts in the file base.xml.in should match the
37797b363dSmrggroup names in the symbols file.
38154daed1Smrg
39797b363dSmrgIf the layout is country-based, the group name has to be the full name of
40797b363dSmrgthe country.  It is highly discouraged to use forms like "Republic of XXX"
41797b363dSmrgor "XXX Republic" -- the form "XXX" should be used instead.  The only
42797b363dSmrgexception is "United Kingdom".
43154daed1Smrg
44797b363dSmrgIf the layout is language-based, the group name has to be the name of the
45797b363dSmrglanguage.
46154daed1Smrg
47797b363dSmrgWithin a single symbols file, all the variants should have the same group name
48154daed1Smrg(implemented using the "include" directive wherever possible).
49