OLPC fixlets
[xorg/xkeyboard-config] / symbols / us
1 // $XKeyboardConfig$
2
3 //
4 // $XdotOrg: xc/programs/xkbcomp/symbols/us,v 1.1.4.3 2004/03/05 13:41:33 eich Exp $
5 // $XFree86: xc/programs/xkbcomp/symbols/us,v 1.6 2003/10/31 14:32:05 pascal Exp $
6
7 default
8 partial alphanumeric_keys modifier_keys 
9 xkb_symbols "basic" {
10
11     name[Group1]= "USA";
12
13     // Alphanumeric section
14     key <TLDE> {        [     grave,    asciitilde      ]       };
15     key <AE01> {        [         1,    exclam          ]       };
16     key <AE02> {        [         2,    at              ]       };
17     key <AE03> {        [         3,    numbersign      ]       };
18     key <AE04> {        [         4,    dollar          ]       };
19     key <AE05> {        [         5,    percent         ]       };
20     key <AE06> {        [         6,    asciicircum     ]       };
21     key <AE07> {        [         7,    ampersand       ]       };
22     key <AE08> {        [         8,    asterisk        ]       };
23     key <AE09> {        [         9,    parenleft       ]       };
24     key <AE10> {        [         0,    parenright      ]       };
25     key <AE11> {        [     minus,    underscore      ]       };
26     key <AE12> {        [     equal,    plus            ]       };
27
28     key <AD01> {        [         q,    Q               ]       };
29     key <AD02> {        [         w,    W               ]       };
30     key <AD03> {        [         e,    E               ]       };
31     key <AD04> {        [         r,    R               ]       };
32     key <AD05> {        [         t,    T               ]       };
33     key <AD06> {        [         y,    Y               ]       };
34     key <AD07> {        [         u,    U               ]       };
35     key <AD08> {        [         i,    I               ]       };
36     key <AD09> {        [         o,    O               ]       };
37     key <AD10> {        [         p,    P               ]       };
38     key <AD11> {        [ bracketleft,  braceleft       ]       };
39     key <AD12> {        [ bracketright, braceright      ]       };
40
41     key <AC01> {        [         a,    A               ]       };
42     key <AC02> {        [         s,    S               ]       };
43     key <AC03> {        [         d,    D               ]       };
44     key <AC04> {        [         f,    F               ]       };
45     key <AC05> {        [         g,    G               ]       };
46     key <AC06> {        [         h,    H               ]       };
47     key <AC07> {        [         j,    J               ]       };
48     key <AC08> {        [         k,    K               ]       };
49     key <AC09> {        [         l,    L               ]       };
50     key <AC10> {        [ semicolon,    colon           ]       };
51     key <AC11> {        [ apostrophe,   quotedbl        ]       };
52
53     key <AB01> {        [         z,    Z               ]       };
54     key <AB02> {        [         x,    X               ]       };
55     key <AB03> {        [         c,    C               ]       };
56     key <AB04> {        [         v,    V               ]       };
57     key <AB05> {        [         b,    B               ]       };
58     key <AB06> {        [         n,    N               ]       };
59     key <AB07> {        [         m,    M               ]       };
60     key <AB08> {        [     comma,    less            ]       };
61     key <AB09> {        [    period,    greater         ]       };
62     key <AB10> {        [     slash,    question        ]       };
63
64     key <BKSL> {        [ backslash,         bar        ]       };
65     key <CAPS> {        [ Caps_Lock     ]       };
66     // End alphanumeric section
67 };
68
69 partial alphanumeric_keys
70 xkb_symbols "euro" {
71
72     name[Group1]= "USA - With EuroSign on 5";
73
74     include "us(basic)"
75
76     include "eurosign(5)"
77
78     include "level3(ralt_switch)"
79 };
80
81
82 partial alphanumeric_keys
83 xkb_symbols "intl" {
84
85     name[Group1]= "USA - International (with dead keys)";
86
87     include "us(basic)"
88
89     // Alphanumeric section
90     key <TLDE> { [dead_grave, dead_tilde,         grave,       asciitilde ] };
91     key <AE01> { [         1,     exclam,    exclamdown,      onesuperior ] };
92     key <AE02> { [         2,         at,   twosuperior, dead_doubleacute ] };
93     key <AE03> { [         3, numbersign, threesuperior,      dead_macron ] };
94     key <AE04> { [         4,     dollar,      currency,         sterling ] };
95     key <AE05> { [         5,    percent,      EuroSign                   ] };
96     key <AE06> { [    6, dead_circumflex,    onequarter,      asciicircum ] };
97     key <AE07> { [         7,  ampersand,       onehalf,        dead_horn ] };
98     key <AE08> { [         8,   asterisk, threequarters,      dead_ogonek ] };
99     key <AE09> { [         9,  parenleft, leftsinglequotemark, dead_breve ] };
100     key <AE10> { [         0, parenright, rightsinglequotemark, dead_abovering ] };
101     key <AE11> { [     minus, underscore,           yen,    dead_belowdot ] };
102     key <AE12> { [     equal,       plus,      multiply,         division ] };
103
104     key <AD01> { [         q,          Q,    adiaeresis,       Adiaeresis ] };
105     key <AD02> { [         w,          W,         aring,            Aring ] };
106     key <AD03> { [         e,          E,        eacute,           Eacute ] };
107     key <AD04> { [         r,          R,    registered,       registered ] };
108     key <AD05> { [         t,          T,         thorn,            THORN ] };
109     key <AD06> { [         y,          Y,    udiaeresis,       Udiaeresis ] };
110     key <AD07> { [         u,          U,        uacute,           Uacute ] };
111     key <AD08> { [         i,          I,        iacute,           Iacute ] };
112     key <AD09> { [         o,          O,        oacute,           Oacute ] };
113     key <AD10> { [         p,          P,    odiaeresis,       Odiaeresis ] };
114     key <AD11> { [ bracketleft,  braceleft,  guillemotleft, guillemotleft ] };
115     key <AD12> { [bracketright, braceright, guillemotright,guillemotright ] };
116
117     key <AC01> { [         a,          A,        aacute,           Aacute ] };
118     key <AC02> { [         s,          S,        ssharp,          section ] };
119     key <AC03> { [         d,          D,           eth,              ETH ] };
120     key <AC08> { [         k,          K,            oe,               OE ] };
121
122     key <AC09> { [         l,          L,        oslash,         Ooblique ] };
123     key <AC10> { [ semicolon,      colon,     paragraph,           degree ] };
124     key <AC11> { [dead_acute, dead_diaeresis, apostrophe,        quotedbl ] };
125
126     key <AB01> { [         z,          Z,            ae,               AE ] };
127     key <AB03> { [         c,          C,     copyright,             cent ] };
128     key <AB06> { [         n,          N,        ntilde,           Ntilde ] };
129     key <AB07> { [         m,          M,            mu,               mu ] };
130     key <AB08> { [     comma,       less,      ccedilla,         Ccedilla ] };
131     key <AB09> { [    period,    greater, dead_abovedot,       dead_caron ] };
132     key <AB10> { [     slash,   question,  questiondown,        dead_hook ] };
133     key <BKSL> { [ backslash,        bar,       notsign,        brokenbar ] };
134
135     include "level3(ralt_switch)"
136 };
137
138 // Based on symbols/us_intl keyboard map:
139 // Dead-keys definition for a very simple US/ASCII layout.
140 // by Conectiva (http://www.conectiva.com.br)
141 // modified by Ricardo Y. Igarashi (iga@that.com.br)
142
143 // Added the following deadkeys, to make it truly international:
144 //
145 // dead_macron: on AltGr-minus
146 // dead_breve: on AltGr-parenleft
147 // dead_abovedot: on AltGr-period
148 // dead_abovering: on AltGr-0
149 // dead_doubleacute: on AltGr-equal (as quotedbl is already used)
150 // dead_caron: on AltGr-less (AltGr-shift-comma)
151 // dead_cedilla: on AltGr-comma
152 // dead_ogonek: on AltGr-semicolon
153 // dead_belowdot: on AltGr-underscore (AltGr-shift-minus)
154 // dead_hook: on AltGr-question
155 // dead_horn: on AltGr-plus (AltGr-shift-equal)
156 // dead_diaeresis: on AltGr-colon (Alt-shift-semicolon)
157 //
158 // those were already there:
159 // dead_grave
160 // dead_acute
161 // dead_circumflex
162 // dead_tilde
163 // dead_diaeresis
164
165 partial alphanumeric_keys
166 xkb_symbols "alt-intl" {
167
168   name[Group1]= "USA - Alternative international (former us_intl)";
169
170   include "us"
171
172   key <TLDE> { [ dead_grave, dead_tilde,    grave,            asciitilde    ] };
173   key <AE05> { [          5, percent,       EuroSign                        ] };
174   key <AE06> { [          6, dead_circumflex, asciicircum,    asciicircum   ] };
175   key <AE09> { [          9, parenleft, leftsinglequotemark,  dead_breve ] };
176   key <AE10> { [          0, parenright, rightsinglequotemark, dead_abovering ] };
177   key <AE11> { [      minus, underscore,    dead_macron,      dead_belowdot ] };
178   key <AE12> { [      equal, plus,          dead_doubleacute, dead_horn     ] };
179
180   key <AD03> { [          e, E,              EuroSign,         cent         ] };
181
182   key <AC10> { [  semicolon, colon,          dead_ogonek,   dead_diaeresis  ] };
183   key <AC11> { [ dead_acute, dead_diaeresis, apostrophe,    quotedbl        ] };
184
185   key <AB08> { [      comma, less,           dead_cedilla,  dead_caron      ] };
186   key <AB09> { [     period, greater,        dead_abovedot, dead_circumflex ] };
187   key <AB10> { [      slash, question,       dead_hook,     dead_hook       ] };
188
189   include "level3(ralt_switch)"
190 };
191
192 // based on a keyboard map from an 'xkb/symbols/dk' file
193 //
194 // $XFree86: xc/programs/xkbcomp/symbols/dvorak,v 1.5 2004/01/03 16:35:07 herrb Exp $
195
196 partial alphanumeric_keys
197 xkb_symbols "dvorak" {
198
199     name[Group1]= "USA - Dvorak";
200
201     // Alphanumeric section
202
203     key <TLDE> { [       grave, asciitilde, dead_grave, dead_tilde      ] };
204
205     key <AE01> { [          1,  exclam          ]       };
206     key <AE02> { [          2,  at              ]       };
207     key <AE03> { [          3,  numbersign      ]       };
208     key <AE04> { [          4,  dollar          ]       };
209     key <AE05> { [          5,  percent         ]       };
210     key <AE06> { [          6,  asciicircum, dead_circumflex, dead_circumflex ] };
211     key <AE07> { [          7,  ampersand       ]       };
212     key <AE08> { [          8,  asterisk        ]       };
213     key <AE09> { [          9,  parenleft,  dead_grave] };
214     key <AE10> { [          0,  parenright      ]       };
215     key <AE11> { [ bracketleft, braceleft       ]       };
216     key <AE12> { [ bracketright, braceright,  dead_tilde] };
217
218     key <AD01> { [  apostrophe, quotedbl, dead_acute, dead_diaeresis    ] };
219     key <AD02> { [      comma,  less,   dead_cedilla, dead_caron        ] };
220     key <AD03> { [      period, greater, dead_abovedot, periodcentered  ] };
221     key <AD04> { [          p,  P               ]       };
222     key <AD05> { [          y,  Y               ]       };
223     key <AD06> { [          f,  F               ]       };
224     key <AD07> { [          g,  G               ]       };
225     key <AD08> { [          c,  C               ]       };
226     key <AD09> { [          r,  R               ]       };
227     key <AD10> { [          l,  L               ]       };
228     key <AD11> { [      slash,  question        ]       };
229     key <AD12> { [      equal,  plus            ]       };
230
231     key <AC01> { [          a,  A               ]       };
232     key <AC02> { [          o,  O               ]       };
233     key <AC03> { [          e,  E               ]       };
234     key <AC04> { [          u,  U               ]       };
235     key <AC05> { [          i,  I               ]       };
236     key <AC06> { [          d,  D               ]       };
237     key <AC07> { [          h,  H               ]       };
238     key <AC08> { [          t,  T               ]       };
239     key <AC09> { [          n,  N               ]       };
240     key <AC10> { [          s,  S               ]       };
241     key <AC11> { [      minus,  underscore      ]       };
242
243     key <AB01> { [   semicolon, colon, dead_ogonek, dead_doubleacute ] };
244     key <AB02> { [          q,  Q               ]       };
245     key <AB03> { [          j,  J               ]       };
246     key <AB04> { [          k,  K               ]       };
247     key <AB05> { [          x,  X               ]       };
248     key <AB06> { [          b,  B               ]       };
249     key <AB07> { [          m,  M               ]       };
250     key <AB08> { [          w,  W               ]       };
251     key <AB09> { [          v,  V               ]       };
252     key <AB10> { [          z,  Z               ]       };
253
254     key <BKSL> { [  backslash,  bar             ]       };
255 };
256
257 // Dvorak international
258 // Stephane Magnenat (stephane at magnenat dot net, http://stephane.magnenat.net)
259 // Based on information from http://www.poupinou.org/dvorak/index.html
260 //
261 //  `   1   2   3   4   5   6   7   8   9   0   [   ]   \
262 //                  â‚¬
263 //
264 //      '   ,   .   p   y   f   g   c   r   l   /   =
265 //          Ã¤   Ãª   Ã«   Ã¼           Ã§
266 //
267 //      a   o   e   u   i   d   h   t   n   s   -
268 //      Ã    Ã´   Ã©   Ã»   Ã®                   ÃŸ
269 //
270 //      ;   q   j   k   x   b   m   w   v   z
271 //      Ã¢   Ã¶   Ã¨   Ã¹   Ã¯
272
273 partial alphanumeric_keys
274 xkb_symbols "dvorak-intl" {
275
276     name[Group1]= "USA - Dvorak international";
277
278     include "us(dvorak)"
279
280     key <AE04> { [         4,  dollar,    EuroSign ] };
281
282     key <AD02> { [     comma,    less,  adiaeresis,       dead_caron ] };
283     key <AD03> { [    period, greater, ecircumflex,   periodcentered    ] };
284     key <AD04> { [         p,       P,  ediaeresis,     dead_cedilla ] };
285     key <AD05> { [         y,       Y,  udiaeresis ] };
286     key <AD08> { [         c,       C,    ccedilla,    dead_abovedot ] };
287
288     key <AC01> { [         a,       A,      agrave ] };
289     key <AC02> { [         o,       O, ocircumflex ] };
290     key <AC03> { [         e,       E,      eacute ] };
291     key <AC04> { [         u,       U, ucircumflex ] };
292     key <AC05> { [         i,       I, icircumflex ] };
293     key <AC10> { [         s,       S,      ssharp ] };
294
295     key <AB01> { [ semicolon,   colon, acircumflex ] };
296     key <AB02> { [         q,       Q,  odiaeresis,      dead_ogonek ] };
297     key <AB03> { [         j,       J,      egrave, dead_doubleacute ] };
298     key <AB04> { [         k,       K,      ugrave ] };
299     key <AB05> { [         x,       X,  idiaeresis ] };
300
301     include "level3(ralt_switch)"
302 };
303
304 // Left and right handed dvorak layouts
305 // by sqweek <sqweek@gmail.com> 2006-01-30
306 // Based on the corresponding layouts in the console-tools package.
307 partial alphanumeric_keys
308 xkb_symbols "dvorak-l" {
309
310     include "us(dvorak)"
311     name[Group1]= "USA - Left handed Dvorak";
312
313     key <AE01> {        [ bracketleft,  braceleft       ]       };
314     key <AE02> {        [ bracketright, braceright      ],
315                     [  dead_tilde                       ]       };
316     key <AE03> {        [       slash,  question        ]       };
317     key <AE04> {        [           p,  P               ]       };
318     key <AE05> {        [           f,  F               ]       };
319     key <AE06> {        [           m,  M               ]       };
320     key <AE07> {        [           l,  L               ]       };
321     key <AE08> {        [           j,  J               ]       };
322     key <AE09> {        [           4,  dollar          ]       };
323     key <AE10> {        [           3,  numbersign      ]       };
324     key <AE11> {        [           2,  at              ]       };
325     key <AE12> {        [           1,  exclam          ]       };
326
327     key <AD01> {        [   semicolon,  colon           ],
328                         [ dead_ogonek, dead_doubleacute ]       };
329     key <AD02> {        [           q,  Q               ]       };
330     key <AD03> {        [           b,  B               ]       };
331     key <AD04> {        [           y,  Y               ]       };
332     key <AD05> {        [           u,  U               ]       };
333     key <AD06> {        [           r,  R               ]       };
334     key <AD07> {        [           s,  S               ]       };
335     key <AD08> {        [           o,  O               ]       };
336     key <AD09> {        [      period,  greater         ],
337                         [ dead_abovedot, periodcentered ]       };
338     key <AD10> {        [           6,  asciicircum     ],
339                         [ dead_circumflex, dead_circumflex ]    };
340     key <AD11> {        [           5,  percent         ]       };
341     key <AD12> {        [       equal,  plus            ]       };
342
343     key <AC01> {        [       minus,  underscore      ]       };
344     key <AC02> {        [           k,  K               ]       };
345     key <AC03> {        [           c,  C               ]       };
346     key <AC04> {        [           d,  D               ]       };
347     key <AC05> {        [           t,  T               ]       };
348     key <AC06> {        [           h,  H               ]       };
349     key <AC07> {        [           e,  E               ]       };
350     key <AC08> {        [           a,  A               ]       };
351     key <AC09> {        [           z,  Z               ]       };
352     key <AC10> {        [           8,  asterisk        ]       };
353     key <AC11> {        [           7,  ampersand       ]       };
354
355     key <AB01> {        [  apostrophe,  quotedbl        ],
356                         [  dead_acute,  dead_diaeresis  ]       };
357     key <AB02> {        [           x,  X               ]       };
358     key <AB03> {        [           g,  G               ]       };
359     key <AB04> {        [           v,  V               ]       };
360     key <AB05> {        [           w,  W               ]       };
361     key <AB06> {        [           n,  N               ]       };
362     key <AB07> {        [           i,  I               ]       };
363     key <AB08> {        [       comma,  less            ],
364                         [ dead_cedilla, dead_caron      ]       };
365     key <AB09> {        [           0,  parenright      ]       };
366     key <AB10> {        [           9,  parenleft       ],
367                         [  dead_grave                   ]       };
368 };
369
370 partial alphanumeric_keys
371 xkb_symbols "dvorak-r" {
372     
373     include "us(dvorak)"
374     name[Group1]= "USA - Right handed Dvorak";
375
376     key <AE01> {        [           1,  exclam          ]       };
377     key <AE02> {        [           2,  at              ]       };
378     key <AE03> {        [           3,  numbersign      ]       };
379     key <AE04> {        [           4,  dollar          ]       };
380     key <AE05> {        [           j,  J               ]       };
381     key <AE06> {        [           l,  L               ]       };
382     key <AE07> {        [           m,  M               ]       };
383     key <AE08> {        [           f,  F               ]       };
384     key <AE09> {        [           p,  P               ]       };
385     key <AE10> {        [       slash,  question        ]       };
386     key <AE11> {        [ bracketleft,  braceleft       ]       };
387     key <AE12> {        [ bracketright, braceright      ],
388                         [  dead_tilde                   ]       };
389
390     key <AD01> {        [           5,  percent         ]       };
391     key <AD02> {        [           6,  asciicircum ],
392                         [ dead_circumflex, dead_circumflex ]    };
393     key <AD03> {        [           q,  Q               ]       };
394     key <AD04> {        [      period,  greater         ], 
395                         [ dead_abovedot, periodcentered ]       };
396     key <AD05> {        [           o,  O               ]       };
397     key <AD06> {        [           r,  R               ]       };
398     key <AD07> {        [           s,  S               ]       };
399     key <AD08> {        [           u,  U               ]       };
400     key <AD09> {        [           y,  Y               ]       };
401     key <AD10> {        [           b,  B               ]       };
402     key <AD11> {        [   semicolon,  colon           ],
403                         [ dead_ogonek, dead_doubleacute ]       };
404     key <AD12> {        [       equal,  plus            ]       };
405
406     key <AC01> {        [           7,  ampersand       ]       };
407     key <AC02> {        [           8,  asterisk        ]       };
408     key <AC03> {        [           z,  Z               ]       };
409     key <AC04> {        [           a,  A               ]       };
410     key <AC05> {        [           e,  E               ]       };
411     key <AC06> {        [           h,  H               ]       };
412     key <AC07> {        [           t,  T               ]       };
413     key <AC08> {        [           d,  D               ]       };
414     key <AC09> {        [           c,  C               ]       };
415     key <AC10> {        [           k,  K               ]       };
416     key <AC11> {        [       minus,  underscore      ]       };
417
418     key <AB01> {        [           9,  parenleft       ],
419                         [  dead_grave                   ]       };
420     key <AB02> {        [           0,  parenright      ]       };
421     key <AB03> {        [           x,  X               ]       };
422     key <AB04> {        [       comma,  less            ],
423                         [ dead_cedilla, dead_caron      ]       };
424     key <AB05> {        [           i,  I               ]       };
425     key <AB06> {        [           n,  N               ]       };
426     key <AB07> {        [           w,  W               ]       };
427     key <AB08> {        [           v,  V               ]       };
428     key <AB09> {        [           g,  G               ]       };
429     key <AB10> {        [  apostrophe,  quotedbl        ],
430                         [  dead_acute,  dead_diaeresis  ]       };
431 };
432
433 // Classic dvorak layout
434 // by Piter Punk <piterpk@terra.com.br> - 2006-07-06 
435 // Based on dvorak layout and e-mail from Russel L. Harris rlharris@oplink.net 
436 // on xorg list.
437 partial alphanumeric_keys
438 xkb_symbols "dvorak-classic" {
439
440     name[Group1]= "USA - Classic Dvorak";
441
442     // Alphanumeric section
443
444     key <TLDE> { [       grave, asciitilde, dead_grave, dead_tilde      ] };
445
446     key <AE01> { [ bracketleft, braceleft       ]       };
447     key <AE02> { [          7,  ampersand       ]       };
448     key <AE03> { [          5,  percent         ]       };
449     key <AE04> { [          3,  numbersign      ]       };
450     key <AE05> { [          1,  exclam          ]       };
451     key <AE06> { [          9,  parenleft,  dead_grave] };
452     key <AE07> { [          0,  parenright      ]       };
453     key <AE08> { [          2,  at              ]       };
454     key <AE09> { [          4,  dollar          ]       };
455     key <AE10> { [          6,  asciicircum, dead_circumflex, dead_circumflex ] };
456     key <AE11> { [          8,  asterisk        ]       };
457     key <AE12> { [ bracketright, braceright,  dead_tilde] };
458
459     key <AD01> { [      slash,  question        ]       };
460     key <AD02> { [      comma,  less,   dead_cedilla, dead_caron        ] };
461     key <AD03> { [      period, greater, dead_abovedot, periodcentered  ] };
462     key <AD04> { [          p,  P               ]       };
463     key <AD05> { [          y,  Y               ]       };
464     key <AD06> { [          f,  F               ]       };
465     key <AD07> { [          g,  G               ]       };
466     key <AD08> { [          c,  C               ]       };
467     key <AD09> { [          r,  R               ]       };
468     key <AD10> { [          l,  L               ]       };
469     key <AD11> { [  apostrophe, quotedbl, dead_acute, dead_diaeresis    ] };
470     key <AD12> { [      equal,  plus            ]       };
471
472     key <AC01> { [          a,  A               ]       };
473     key <AC02> { [          o,  O               ]       };
474     key <AC03> { [          e,  E               ]       };
475     key <AC04> { [          u,  U               ]       };
476     key <AC05> { [          i,  I               ]       };
477     key <AC06> { [          d,  D               ]       };
478     key <AC07> { [          h,  H               ]       };
479     key <AC08> { [          t,  T               ]       };
480     key <AC09> { [          n,  N               ]       };
481     key <AC10> { [          s,  S               ]       };
482     key <AC11> { [      minus,  underscore      ]       };
483
484     key <AB01> { [   semicolon, colon, dead_ogonek, dead_doubleacute ] };
485     key <AB02> { [          q,  Q               ]       };
486     key <AB03> { [          j,  J               ]       };
487     key <AB04> { [          k,  K               ]       };
488     key <AB05> { [          x,  X               ]       };
489     key <AB06> { [          b,  B               ]       };
490     key <AB07> { [          m,  M               ]       };
491     key <AB08> { [          w,  W               ]       };
492     key <AB09> { [          v,  V               ]       };
493     key <AB10> { [          z,  Z               ]       };
494     key <BKSL> { [  backslash,  bar             ]       };
495 };
496
497 // phonetic layout for Russian letters on an US keyboard
498 // by Ivan Popov <pin@konvalo.org> 2005-07-17
499
500 // level3 modifier is a shortcut to the "us" meaning of the keys where
501 // we place cyrillic letters, handy for accessing the corresponding
502 // punctuation marks.
503 // It is important to have access to punctuation marks, and the rest of
504 // alphabetical keys are added for being consequent so that the users
505 // can expect the level3 modifier to give what the key label shows.
506
507 partial alphanumeric_keys
508 xkb_symbols "rus" {
509
510     name[Group1]= "USA - Russian phonetic";
511
512     include "us(basic)"
513
514 key.type[group1]="FOUR_LEVEL_ALPHABETIC";
515
516     key <LatA> {        [ Cyrillic_a, Cyrillic_A ]      };
517     key <LatB> {        [ Cyrillic_be, Cyrillic_BE ]    };
518     key <LatW> {        [ Cyrillic_ve, Cyrillic_VE ]    };
519     key <LatG> {        [ Cyrillic_ghe, Cyrillic_GHE ]  };
520     key <LatD> {        [ Cyrillic_de, Cyrillic_DE ]    };
521     key <LatE> {        [ Cyrillic_ie, Cyrillic_IE ]    };
522     key <TLDE> {        [ Cyrillic_io, Cyrillic_IO, grave, asciitilde ] };
523     key <LatV> {        [ Cyrillic_zhe, Cyrillic_ZHE ]  };
524     key <LatZ> {        [ Cyrillic_ze, Cyrillic_ZE ]    };
525     key <LatI> {        [ Cyrillic_i, Cyrillic_I ]      };
526     key <LatJ> {        [ Cyrillic_shorti, Cyrillic_SHORTI ]    };
527     key <LatK> {        [ Cyrillic_ka, Cyrillic_KA ]    };
528     key <LatL> {        [ Cyrillic_el, Cyrillic_EL ]    };
529     key <LatM> {        [ Cyrillic_em, Cyrillic_EM ]    };
530     key <LatN> {        [ Cyrillic_en, Cyrillic_EN ]    };
531     key <LatO> {        [ Cyrillic_o, Cyrillic_O ]      };
532     key <LatP> {        [ Cyrillic_pe, Cyrillic_PE ]    };
533     key <LatR> {        [ Cyrillic_er, Cyrillic_ER ]    };
534     key <LatS> {        [ Cyrillic_es, Cyrillic_ES ]    };
535     key <LatT> {        [ Cyrillic_te, Cyrillic_TE ]    };
536     key <LatU> {        [ Cyrillic_u, Cyrillic_U ]      };
537     key <LatF> {        [ Cyrillic_ef, Cyrillic_EF ]    };
538     key <LatH> {        [ Cyrillic_ha, Cyrillic_HA ]    };
539     key <LatC> {        [ Cyrillic_tse, Cyrillic_TSE ]  };
540     key <AC10> {        [ Cyrillic_che, Cyrillic_CHE, semicolon, colon ] };
541     key <AD11> {        [ Cyrillic_sha, Cyrillic_SHA, bracketleft, braceleft] };
542     key <AD12> {        [ Cyrillic_shcha, Cyrillic_SHCHA, bracketright, braceright ]    };
543     key <AE12> {        [ Cyrillic_hardsign, Cyrillic_HARDSIGN, equal, plus ] };
544     key <LatY> {        [ Cyrillic_yeru, Cyrillic_YERU ]        };
545     key <LatX> {        [ Cyrillic_softsign, Cyrillic_SOFTSIGN ]        };
546     key <BKSL> {        [ Cyrillic_e, Cyrillic_E, backslash, bar ]      };
547     key <AC11> {        [ Cyrillic_yu, Cyrillic_YU, apostrophe, quotedbl ] };
548     key <LatQ> {        [ Cyrillic_ya, Cyrillic_YA ]    };
549
550     include "level3(ralt_switch)"
551 };
552
553 partial alphanumeric_keys
554 xkb_symbols "mac" {
555
556     include "us"
557     name[Group1]= "USA - Macintosh";
558 };
559  
560 // Colemak symbols for xkb on X.Org Server 7.x
561 // 2006-01-01 Shai Coleman, http://colemak.com/ . Public domain.
562
563 partial alphanumeric_keys
564 xkb_symbols "colemak" {
565     include "us"
566     name[Group1]= "USA - Colemak";
567
568     // Alphanumeric section
569     key <TLDE> { [        grave,   asciitilde,      dead_tilde,       asciitilde ] };
570     key <AE01> { [            1,       exclam,      exclamdown,      onesuperior ] };
571     key <AE02> { [            2,           at,       masculine,      twosuperior ] };
572     key <AE03> { [            3,   numbersign,     ordfeminine,    threesuperior ] };
573     key <AE04> { [            4,       dollar,            cent,         sterling ] };
574     key <AE05> { [            5,      percent,        EuroSign,              yen ] };
575     key <AE06> { [            6,  asciicircum,         hstroke,          Hstroke ] };
576     key <AE07> { [            7,    ampersand,             eth,              ETH ] };
577     key <AE08> { [            8,     asterisk,           thorn,            THORN ] };
578     key <AE09> { [            9,    parenleft,  leftsinglequotemark,  leftdoublequotemark ] };
579     key <AE10> { [            0,   parenright, rightsinglequotemark,  rightdoublequotemark ] };
580     key <AE11> { [        minus,   underscore,          endash,           emdash ] };
581     key <AE12> { [        equal,         plus,        multiply,         division ] };
582
583     key <AD01> { [            q,            Q,      adiaeresis,       Adiaeresis ] };
584     key <AD02> { [            w,            W,           aring,            Aring ] };
585     key <AD03> { [            f,            F,          atilde,           Atilde ] };
586     key <AD04> { [            p,            P,          oslash,         Ooblique ] };
587     key <AD05> { [            g,            G,     dead_ogonek,       asciitilde ] };
588     key <AD06> { [            j,            J,         dstroke,          Dstroke ] };
589     key <AD07> { [            l,            L,         lstroke,          Lstroke ] };
590     key <AD08> { [            u,            U,          uacute,           Uacute ] };
591     key <AD09> { [            y,            Y,      udiaeresis,       Udiaeresis ] };
592     key <AD10> { [    semicolon,        colon,      odiaeresis,       Odiaeresis ] };
593     key <AD11> { [  bracketleft,    braceleft,   guillemotleft,        0x1002039 ] };
594     key <AD12> { [ bracketright,   braceright,  guillemotright,        0x100203a ] };
595     key <BKSL> { [    backslash,          bar,      asciitilde,       asciitilde ] };
596
597     key <AC01> { [            a,            A,          aacute,           Aacute ] };
598     key <AC02> { [            r,            R,      dead_grave,       asciitilde ] };
599     key <AC03> { [            s,            S,          ssharp,       asciitilde ] };
600     key <AC04> { [            t,            T,      dead_acute, dead_doubleacute ] };
601     key <AC05> { [            d,            D,  dead_diaeresis,       asciitilde ] };
602     key <AC06> { [            h,            H,      dead_caron,       asciitilde ] };
603     key <AC07> { [            n,            N,          ntilde,           Ntilde ] };
604     key <AC08> { [            e,            E,          eacute,           Eacute ] };
605     key <AC09> { [            i,            I,          iacute,           Iacute ] };
606     key <AC10> { [            o,            O,          oacute,           Oacute ] };
607     key <AC11> { [   apostrophe,     quotedbl,          otilde,           Otilde ] };
608
609     key <AB01> { [            z,            Z,              ae,               AE ] };
610     key <AB02> { [            x,            X, dead_circumflex,       asciitilde ] };
611     key <AB03> { [            c,            C,        ccedilla,         Ccedilla ] };
612     key <AB04> { [            v,            V,              oe,               OE ] };
613     key <AB05> { [            b,            B,      dead_breve,       asciitilde ] };
614     key <AB06> { [            k,            K,  dead_abovering,       asciitilde ] };
615     key <AB07> { [            m,            M,     dead_macron,       asciitilde ] };
616     key <AB08> { [        comma,         less,    dead_cedilla,       asciitilde ] };
617     key <AB09> { [       period,      greater,   dead_abovedot,       asciitilde ] };
618     key <AB10> { [        slash,     question,    questiondown,       asciitilde ] };
619
620     key <CAPS> { [    BackSpace,    BackSpace,       BackSpace,        BackSpace ] };
621     key <LSGT> { [        minus,   underscore,          endash,           emdash ] };
622     key <SPCE> { [        space,        space,           space,     nobreakspace ] };
623
624     include "level3(ralt_switch)"
625 };
626
627 // I do NOT like dead-keys - the International keyboard as defined by Microsoft
628 // doesn't fit my needs. Why use two keystrokes for all simple characters (eg '
629 // and <space> generates a single ') just to have an Ã© (eacute) in two strokes
630 // as well? I type ' more often than Ã© (eacute).
631 //
632 // This file works just like a regular keyboard, BUT has all dead-keys
633 // accessible at level3 (through AltGr). An Ã« (ediaeresis) is now: AltGr+"
634 // followed by an e. In other words, this keyboard is not international as long
635 // as you leave the right Alt key alone.
636 //
637 // The original MS International keyboard was intended for Latin1 (iso8859-1).
638 // With the introduction of iso8859-15, the (important) ligature oe (and OE)
639 // became available. I added them next to ae. Because I write ediaeresis more
640 // often than registered, I moved registered to be next to copyright and added
641 // ediaeresis and idiaeresis. - Adriaan
642
643 partial alphanumeric_keys
644 xkb_symbols "altgr-intl" {
645
646    name[Group1]= "USA - International (AltGr dead keys)";
647
648    include "us(intl)"
649
650 // five dead keys moved into level3:
651
652    key <TLDE> { [    grave, asciitilde,  dead_grave,   dead_tilde      ] };
653    key <AC11> { [apostrophe,quotedbl,    dead_acute,   dead_diaeresis  ] };
654
655 // diversions from the MS Intl keyboard:
656
657    key <AE01> { [        1, exclam,      onesuperior,  exclamdown      ] };
658    key <AD04> { [        r, R,           ediaeresis,   Ediaeresis      ] };
659    key <AC07> { [        j, J,           idiaeresis,   Idiaeresis      ] };
660    key <AB02> { [        x, X,           oe,           OE              ] };
661    key <AB04> { [        v, V,           registered,   registered      ] };
662
663 // onequarter etc (not in iso8859-15) deleted to get three unshifted deadkeys:
664
665    key <AE06> { [        6, asciicircum,       dead_circumflex         ] };
666    key <AE07> { [        7, ampersand,         dead_horn               ] };
667    key <AE08> { [        8, asterisk,          dead_ogonek             ] };
668
669    include "level3(ralt_switch)"
670 };
671
672 // Intel ClassmatePC Keyboard Layout
673 // by Piter PUNK <piterpk@terra.com.br>
674 //
675 // The keyboard layouts below maps the us(basic), us(intl) and us(alt-intl)
676 // to ClassmatePC keyboard. All layouts uses RCTL as level3(switch) since
677 // the keyboard doesn't have AltGr key. The EuroSign is engraved at 5 key.
678
679 // classmate - us(basic)
680 partial alphanumeric_keys
681 xkb_symbols "classmate" {
682     include "us(basic)"
683     name[Group1]= "USA - ClassmatePC";
684
685     key <LSGT> { [ backslash,   bar,            backslash,      bar ] };
686
687     include "eurosign(5)"
688     include "level3(switch)"
689 };
690
691 // classmate-intl - us(intl)
692 // RCTL is generated by Fn+Alt, because that, when trying to access
693 // the level3 symbols at 7,8,9,0,u,i,o,p,j,k,l,;,m,. and / we got
694 // the keypad keycodes. The keypad is changed to make Fn+Alt+<KP_key>
695 // generate the same symbol as the original key.
696 partial alphanumeric_keys
697 xkb_symbols "classmate-intl" {
698     include "us(intl)"
699     name[Group1]= "USA - ClassmatePC (International)";
700     key.type[Group1]="FOUR_LEVEL";
701
702     key <LSGT> { [ backslash,   bar,            backslash,      bar ] };
703
704     key <KP7>  { [      KP_Home,                KP_7,   
705                         onehalf,                dead_horn       ] };
706     key <KP8>  { [      KP_Up,                  KP_8,
707                         threequarters,          dead_ogonek     ] };
708     key <KP9>  { [      KP_Prior,               KP_9,
709                         leftsinglequotemark,    dead_breve      ] };
710     key <KPMU> { [      KP_Multiply,            KP_Multiply,
711                         rightsinglequotemark,   dead_abovering  ] };
712
713     key <KP4>  { [      KP_Left,                KP_4,
714                         uacute,                 Uacute          ] };
715     key <KP5>  { [      KP_Begin,               KP_5,
716                         iacute,                 Iacute          ] };
717     key <KP6>  { [      KP_Right,               KP_6,
718                         oacute,                 Oacute          ] };
719     key <KPSU> { [      KP_Subtract,            KP_Subtract,
720                         odiaeresis,             Odiaeresis      ] };
721
722     key <KP2>  { [      KP_Down,                KP_2,
723                         oe,                     OE              ] };
724     key <KP3>  { [      KP_Next,                KP_3,
725                         oslash,                 Ooblique        ] };
726     key <KPAD> { [      KP_Add,                 KP_Add,
727                         paragraph,              degree          ] };
728    
729     key <KP0>  { [      KP_Insert,              KP_0,
730                         mu,                     mu      ] };
731     key <KPDL> { [      KP_Delete,              KP_Decimal,
732                         dead_abovedot,          dead_caron      ] }; 
733     key <KPDV> { [      KP_Divide,              KP_Divide,
734                         questiondown,           dead_hook       ] };
735
736     include "level3(switch)"
737 };
738
739 // classmate-alt-intl - us(alt-intl)
740 // RCTL is generated by Fn+Alt, because that, when trying to access
741 // the level3 symbols at 7,8,9,0,u,i,o,p,j,k,l,;,m,. and / we got
742 // the keypad keycodes. The keypad is changed to make Fn+Alt+<KP_key>
743 // generate the same symbol as the original key.
744 partial alphanumeric_keys
745 xkb_symbols "classmate-alt-intl" {
746     include "us(alt-intl)"
747     name[Group1]= "USA - ClassmatePC (Alternative international)";
748     key.type[Group1]="FOUR_LEVEL";
749
750     key <LSGT> { [ backslash,   bar,            backslash,      bar ] };
751
752     key <KPSU> { [      KP_Subtract,            KP_Subtract     ] };
753
754     key <KP9>  { [      KP_Prior,               KP_9,
755                         leftsinglequotemark,    dead_breve      ] };
756     key <KPMU> { [      KP_Multiply,            KP_Multiply,
757                         rightsinglequotemark,   dead_abovering  ] };
758
759     key <KPAD> { [      KP_Add,                 KP_Add,
760                         dead_ogonek,            dead_diaeresis   ] };
761     
762     key <KPDL> { [      KP_Delete,              KP_Decimal,
763                         dead_abovedot,          dead_circumflex ] }; 
764     key <KPDV> { [      KP_Divide,              KP_Divide,
765                         dead_hook,              dead_hook       ] };
766
767     include "level3(switch)"
768 };
769
770 // classmate-altgr-intl - us(altgr-intl)
771 // RCTL is generated by Fn+Alt, because that, when trying to access
772 // the level3 symbols at 7,8,9,0,u,i,o,p,j,k,l,;,m,. and / we got
773 // the keypad keycodes. The keypad is changed to make Fn+Alt+<KP_key>
774 // generate the same symbol as the original key.
775 partial alphanumeric_keys
776 xkb_symbols "classmate-altgr-intl" {
777     include "us(altgr-intl)"
778     name[Group1]= "USA - ClassmatePC (International Fn+Alt dead-keys)";
779     key.type[Group1]="FOUR_LEVEL";
780
781     key <LSGT> { [ backslash,   bar,            backslash,      bar ] };
782
783     key <KP7>  { [      KP_Home,                KP_7,   
784                         dead_horn,              dead_horn       ] };
785     key <KP8>  { [      KP_Up,                  KP_8,
786                         dead_ogonek,            dead_ogonek     ] };
787     key <KP9>  { [      KP_Prior,               KP_9,
788                         leftsinglequotemark,    dead_breve      ] };
789     key <KPMU> { [      KP_Multiply,            KP_Multiply,
790                         rightsinglequotemark,   dead_abovering  ] };
791
792     key <KP4>  { [      KP_Left,                KP_4,
793                         uacute,                 Uacute          ] };
794     key <KP5>  { [      KP_Begin,               KP_5,
795                         iacute,                 Iacute          ] };
796     key <KP6>  { [      KP_Right,               KP_6,
797                         oacute,                 Oacute          ] };
798     key <KPSU> { [      KP_Subtract,            KP_Subtract,
799                         odiaeresis,             Odiaeresis      ] };
800
801     key <KP1>  { [      KP_End,                 KP_1,
802                         idiaeresis,             Idiaeresis      ] };
803     key <KP2>  { [      KP_Down,                KP_2,
804                         oe,                     OE              ] };
805     key <KP3>  { [      KP_Next,                KP_3,
806                         oslash,                 Ooblique        ] };
807     key <KPAD> { [      KP_Add,                 KP_Add,
808                         paragraph,              degree          ] };
809    
810     key <KP0>  { [      KP_Insert,              KP_0,
811                         mu,                     mu      ] };
812     key <KPDL> { [      KP_Delete,              KP_Decimal,
813                         dead_abovedot,          dead_caron      ] }; 
814     key <KPDV> { [      KP_Divide,              KP_Divide,
815                         questiondown,           dead_hook       ] };
816
817     include "level3(switch)"
818 };
819
820 partial alphanumeric_keys
821 xkb_symbols "olpc" {
822
823    include "us(basic)"
824    name[Group1]= "USA";
825
826    // OLPC international US English keyboard layout.
827    // It's a little different from the usual international layout.
828    // See: http://wiki.laptop.org/go/Image:Keyboard_english.png
829
830    key <TLDE> { [     grave, asciitilde,    dead_grave, dead_tilde ] };
831    key <AE01> { [         1,     exclam,    exclamdown, exclamdown ] };
832    key <AE02> { [         2,         at,       notsign,    notsign ] };
833    key <AE03> { [         3, numbersign,     0x1000300,  0x1000300 ] }; // combining grave
834    key <AE04> { [         4,     dollar,     0x1000301,  0x1000301 ] }; // combining acute
835    key <AE05> { [         5,    percent,     0x1000306,  0x1000306 ] }; // combining breve above
836    key <AE06> { [         6,asciicircum,     0x100030A,  0x100030A ] }; // combining ring above
837    key <AE07> { [         7,  ampersand,     0x1000302,  0x1000302 ] }; // combining circumflex above
838    key <AE08> { [         8,   asterisk,     0x1000324,  0x1000324 ] }; // combining caron above
839    key <AE09> { [         9,  parenleft,     0x1000307,  0x1000307 ] }; // combining dot above
840    key <AE10> { [         0, parenright,     0x1000308,  0x1000308 ] }; // combining diaeresis above
841    key <AE11> { [     minus, underscore,     0x1000304,  0x1000304 ] }; // combining macron above
842    key <AE12> { [     equal,       plus,     0x1000303,  0x1000303 ] }; // combining tilde above
843
844    key <AD01> { [         q,          Q,  Greek_omega, Greek_OMEGA ] };
845    key <AD02> { [         w,          W,       oslash,      Oslash ] };
846    key <AD03> { [         e,          E,           oe,          OE ] };
847    key <AD04> { [         r,          R,    0x1000327,   0x1000327 ] }; // combining cedilla
848    key <AD05> { [         t,          T,    0x100032E,   0x100032E ] }; // combining breve below
849    key <AD06> { [         y,          Y,    0x1000325,   0x1000325 ] }; // combining ring below
850    key <AD07> { [         u,          U,    0x100032D,   0x100032D ] }; // combining circumflex below
851    key <AD08> { [         i,          I,    0x100032C,   0x100032C ] }; // combining caron below
852    key <AD09> { [         o,          O,    0x1000323,   0x1000323 ] }; // combining dot below
853    key <AD10> { [         p,          P,    0x1000304,   0x1000304 ] }; // combining diaeresis below
854    key <AD11> { [ bracketleft,  braceleft,  0x1000331,   0x1000331 ] }; // combining macron below
855    key <AD12> { [bracketright, braceright,  0x1000330,   0x1000330 ] }; // combining tilde below
856
857    key <AC01>  { [         a,          A,          ae,               AE ] };
858    key <AC02>  { [         s,          S,      ssharp,           ssharp ] };
859    key <AC03>  { [         d,          D,         eth,              ETH ] };
860    key <AC04>  { [         f,          F,       thorn,            THORN ] };
861    key <AC06>  { [         h,          H,    sterling,         sterling ] };
862    key <AC07>  { [         j,          J,    EuroSign,         EuroSign ] };
863    key <AC10>  { [ semicolon,      colon,   masculine,      ordfeminine ] };
864    key <AC11>  { [ apostrophe,  quotedbl,    currency,         currency ] };
865    key <BKSL>  { [ backslash,        bar,      section,         section ] };
866
867    key <AB03>  { [         c,          C,    ccedilla,         Ccedilla ] };
868    key <AB06>  { [         n,          N,      ntilde,           Ntilde ] };
869    key <AB07>  { [         m,          M,          mu,               mu ] };
870    key <AB08>  { [     comma,     less,  guillemotleft,   guillemotleft ] };
871    key <AB09>  { [    period,  greater, guillemotright,  guillemotright ] };
872    key <AB10>  { [     slash,   question, questiondown,    questiondown ] };
873
874    key <I219>  { [  multiply,   division, ISO_Next_Group, ISO_Prev_Group ] };
875
876    include "level3(ralt_switch)"
877 };
878
879 partial alphanumeric_keys
880 xkb_symbols "olpc2" {
881    include "us(olpc)"
882    name[Group1]= "USA - Group toggle on multiply/divide key";
883    key <I219>  { [ ISO_Next_Group, ISO_Prev_Group ] };
884 };