Added option to use RAlt as RCtrl
[xorg/xkeyboard-config] / symbols / us
1 default
2 partial alphanumeric_keys modifier_keys 
3 xkb_symbols "basic" {
4
5     name[Group1]= "English (US)";
6
7     // Alphanumeric section
8     key <TLDE> {        [     grave,    asciitilde      ]       };
9     key <AE01> {        [         1,    exclam          ]       };
10     key <AE02> {        [         2,    at              ]       };
11     key <AE03> {        [         3,    numbersign      ]       };
12     key <AE04> {        [         4,    dollar          ]       };
13     key <AE05> {        [         5,    percent         ]       };
14     key <AE06> {        [         6,    asciicircum     ]       };
15     key <AE07> {        [         7,    ampersand       ]       };
16     key <AE08> {        [         8,    asterisk        ]       };
17     key <AE09> {        [         9,    parenleft       ]       };
18     key <AE10> {        [         0,    parenright      ]       };
19     key <AE11> {        [     minus,    underscore      ]       };
20     key <AE12> {        [     equal,    plus            ]       };
21
22     key <AD01> {        [         q,    Q               ]       };
23     key <AD02> {        [         w,    W               ]       };
24     key <AD03> {        [         e,    E               ]       };
25     key <AD04> {        [         r,    R               ]       };
26     key <AD05> {        [         t,    T               ]       };
27     key <AD06> {        [         y,    Y               ]       };
28     key <AD07> {        [         u,    U               ]       };
29     key <AD08> {        [         i,    I               ]       };
30     key <AD09> {        [         o,    O               ]       };
31     key <AD10> {        [         p,    P               ]       };
32     key <AD11> {        [ bracketleft,  braceleft       ]       };
33     key <AD12> {        [ bracketright, braceright      ]       };
34
35     key <AC01> {        [         a,    A               ]       };
36     key <AC02> {        [         s,    S               ]       };
37     key <AC03> {        [         d,    D               ]       };
38     key <AC04> {        [         f,    F               ]       };
39     key <AC05> {        [         g,    G               ]       };
40     key <AC06> {        [         h,    H               ]       };
41     key <AC07> {        [         j,    J               ]       };
42     key <AC08> {        [         k,    K               ]       };
43     key <AC09> {        [         l,    L               ]       };
44     key <AC10> {        [ semicolon,    colon           ]       };
45     key <AC11> {        [ apostrophe,   quotedbl        ]       };
46
47     key <AB01> {        [         z,    Z               ]       };
48     key <AB02> {        [         x,    X               ]       };
49     key <AB03> {        [         c,    C               ]       };
50     key <AB04> {        [         v,    V               ]       };
51     key <AB05> {        [         b,    B               ]       };
52     key <AB06> {        [         n,    N               ]       };
53     key <AB07> {        [         m,    M               ]       };
54     key <AB08> {        [     comma,    less            ]       };
55     key <AB09> {        [    period,    greater         ]       };
56     key <AB10> {        [     slash,    question        ]       };
57
58     key <BKSL> {        [ backslash,         bar        ]       };
59     // End alphanumeric section
60 };
61
62 partial alphanumeric_keys
63 xkb_symbols "euro" {
64
65     name[Group1]= "English (US, with euro on 5)";
66
67     include "us(basic)"
68
69     include "eurosign(5)"
70
71     include "level3(ralt_switch)"
72 };
73
74
75 partial alphanumeric_keys
76 xkb_symbols "intl" {
77
78     name[Group1]= "English (US, international with dead keys)";
79
80     include "us(basic)"
81
82     // Alphanumeric section
83     key <TLDE> { [dead_grave, dead_tilde,         grave,       asciitilde ] };
84     key <AE01> { [         1,     exclam,    exclamdown,      onesuperior ] };
85     key <AE02> { [         2,         at,   twosuperior, dead_doubleacute ] };
86     key <AE03> { [         3, numbersign, threesuperior,      dead_macron ] };
87     key <AE04> { [         4,     dollar,      currency,         sterling ] };
88     key <AE05> { [         5,    percent,      EuroSign,     dead_cedilla ] };
89     key <AE06> { [    6, dead_circumflex,    onequarter,      asciicircum ] };
90     key <AE07> { [         7,  ampersand,       onehalf,        dead_horn ] };
91     key <AE08> { [         8,   asterisk, threequarters,      dead_ogonek ] };
92     key <AE09> { [         9,  parenleft, leftsinglequotemark, dead_breve ] };
93     key <AE10> { [         0, parenright, rightsinglequotemark, dead_abovering ] };
94     key <AE11> { [     minus, underscore,           yen,    dead_belowdot ] };
95     key <AE12> { [     equal,       plus,      multiply,         division ] };
96
97     key <AD01> { [         q,          Q,    adiaeresis,       Adiaeresis ] };
98     key <AD02> { [         w,          W,         aring,            Aring ] };
99     key <AD03> { [         e,          E,        eacute,           Eacute ] };
100     key <AD04> { [         r,          R,    registered,       registered ] };
101     key <AD05> { [         t,          T,         thorn,            THORN ] };
102     key <AD06> { [         y,          Y,    udiaeresis,       Udiaeresis ] };
103     key <AD07> { [         u,          U,        uacute,           Uacute ] };
104     key <AD08> { [         i,          I,        iacute,           Iacute ] };
105     key <AD09> { [         o,          O,        oacute,           Oacute ] };
106     key <AD10> { [         p,          P,    odiaeresis,       Odiaeresis ] };
107     key <AD11> { [ bracketleft,  braceleft,  guillemotleft, leftdoublequotemark ] };
108     key <AD12> { [bracketright, braceright, guillemotright, rightdoublequotemark ] };
109
110     key <AC01> { [         a,          A,        aacute,           Aacute ] };
111     key <AC02> { [         s,          S,        ssharp,          section ] };
112     key <AC03> { [         d,          D,           eth,              ETH ] };
113     key <AC04> { [         f,          F,             f,                F ] };
114     key <AC05> { [         g,          G,             g,                G ] };
115     key <AC06> { [         h,          H,             h,                H ] };
116     key <AC07> { [         j,          J,             j,                J ] };
117     key <AC08> { [         k,          K,            oe,               OE ] };
118
119     key <AC09> { [         l,          L,        oslash,         Ooblique ] };
120     key <AC10> { [ semicolon,      colon,     paragraph,           degree ] };
121     key <AC11> { [dead_acute, dead_diaeresis, apostrophe,        quotedbl ] };
122
123     key <AB01> { [         z,          Z,            ae,               AE ] };
124     key <AB02> { [         x,          X,             x,                X ] };
125     key <AB03> { [         c,          C,     copyright,             cent ] };
126     key <AB04> { [         v,          V,             v,                V ] };
127     key <AB05> { [         b,          B,             b,                B ] };
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]= "English (US, alternative international)";
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 partial alphanumeric_keys
195 xkb_symbols "dvorak" {
196
197     name[Group1]= "English (Dvorak)";
198
199     // Alphanumeric section
200
201     key <TLDE> { [       grave, asciitilde, dead_grave, dead_tilde      ] };
202
203     key <AE01> { [          1,  exclam          ]       };
204     key <AE02> { [          2,  at              ]       };
205     key <AE03> { [          3,  numbersign      ]       };
206     key <AE04> { [          4,  dollar          ]       };
207     key <AE05> { [          5,  percent         ]       };
208     key <AE06> { [          6,  asciicircum, dead_circumflex, dead_circumflex ] };
209     key <AE07> { [          7,  ampersand       ]       };
210     key <AE08> { [          8,  asterisk        ]       };
211     key <AE09> { [          9,  parenleft,  dead_grave] };
212     key <AE10> { [          0,  parenright      ]       };
213     key <AE11> { [ bracketleft, braceleft       ]       };
214     key <AE12> { [ bracketright, braceright,  dead_tilde] };
215
216     key <AD01> { [  apostrophe, quotedbl, dead_acute, dead_diaeresis    ] };
217     key <AD02> { [      comma,  less,   dead_cedilla, dead_caron        ] };
218     key <AD03> { [      period, greater, dead_abovedot, periodcentered  ] };
219     key <AD04> { [          p,  P               ]       };
220     key <AD05> { [          y,  Y               ]       };
221     key <AD06> { [          f,  F               ]       };
222     key <AD07> { [          g,  G               ]       };
223     key <AD08> { [          c,  C               ]       };
224     key <AD09> { [          r,  R               ]       };
225     key <AD10> { [          l,  L               ]       };
226     key <AD11> { [      slash,  question        ]       };
227     key <AD12> { [      equal,  plus            ]       };
228
229     key <AC01> { [          a,  A               ]       };
230     key <AC02> { [          o,  O               ]       };
231     key <AC03> { [          e,  E               ]       };
232     key <AC04> { [          u,  U               ]       };
233     key <AC05> { [          i,  I               ]       };
234     key <AC06> { [          d,  D               ]       };
235     key <AC07> { [          h,  H               ]       };
236     key <AC08> { [          t,  T               ]       };
237     key <AC09> { [          n,  N               ]       };
238     key <AC10> { [          s,  S               ]       };
239     key <AC11> { [      minus,  underscore      ]       };
240
241     key <AB01> { [   semicolon, colon, dead_ogonek, dead_doubleacute ] };
242     key <AB02> { [          q,  Q               ]       };
243     key <AB03> { [          j,  J               ]       };
244     key <AB04> { [          k,  K               ]       };
245     key <AB05> { [          x,  X               ]       };
246     key <AB06> { [          b,  B               ]       };
247     key <AB07> { [          m,  M               ]       };
248     key <AB08> { [          w,  W               ]       };
249     key <AB09> { [          v,  V               ]       };
250     key <AB10> { [          z,  Z               ]       };
251
252     key <BKSL> { [  backslash,  bar             ]       };
253 };
254
255 // Dvorak international with dead keys
256 // Olivier Mehani (shtrom-xorg@ssji.net)
257 // Reproduce the per-key mapping of us(intl) for the dvorak layout
258 // aka "I just swapped my keys over"
259 partial alphanumeric_keys
260 xkb_symbols "dvorak-intl" {
261
262     name[Group1]= "English (Dvorak international with dead keys)";
263
264     include "us(dvorak)"
265
266     key <TLDE> { [dead_grave, dead_tilde,         grave,       asciitilde ] };
267
268     key <AE01> { [         1,     exclam,    exclamdown,      onesuperior ] };
269     key <AE02> { [         2,         at,   twosuperior, dead_doubleacute ] };
270     key <AE03> { [         3, numbersign, threesuperior,      dead_macron ] };
271     key <AE04> { [         4,     dollar,      currency,         sterling ] };
272     key <AE05> { [         5,    percent,      EuroSign,     dead_cedilla ] };
273     key <AE06> { [    6, dead_circumflex,    onequarter,      asciicircum ] };
274     key <AE07> { [         7,  ampersand,       onehalf,        dead_horn ] };
275     key <AE08> { [         8,   asterisk, threequarters,      dead_ogonek ] };
276     key <AE09> { [         9,  parenleft, leftsinglequotemark, dead_breve ] };
277     key <AE10> { [         0, parenright, rightsinglequotemark, dead_abovering ] };
278     key <AE11> { [ bracketleft,  braceleft,  guillemotleft, leftdoublequotemark ] };
279     key <AE12> { [bracketright, braceright, guillemotright, rightdoublequotemark ] };
280
281     key <AD01> { [dead_acute, dead_diaeresis, apostrophe,        quotedbl ] };
282     key <AD02> { [     comma,       less,      ccedilla,         Ccedilla ] };
283     key <AD03> { [    period,    greater, dead_abovedot,       dead_caron ] };
284     key <AD04> { [         p,          P,    odiaeresis,       Odiaeresis ] };
285     key <AD05> { [         y,          Y,    udiaeresis,       Udiaeresis ] };
286     // key <AD06> { [      f,   F               ]       };
287     // key <AD07> { [      g,   G               ]       };
288     key <AD08> { [         c,          C,     copyright,             cent ] };
289     key <AD09> { [         r,          R,    registered,       registered ] };
290     key <AD10> { [         l,          L,        oslash,         Ooblique ] };
291     key <AD11> { [     slash,   question,  questiondown,        dead_hook ] };
292     // key <AD12> { [     equal,       plus,      multiply,         division ] };
293
294     key <AC01> { [         a,          A,        aacute,           Aacute ] };
295     key <AC02> { [         o,          O,        oacute,           Oacute ] };
296     key <AC03> { [         e,          E,        eacute,           Eacute ] };
297     key <AC04> { [         u,          U,        uacute,           Uacute ] };
298     key <AC05> { [         i,          I,        iacute,           Iacute ] };
299     key <AC06> { [         d,          D,           eth,              ETH ] };
300     // key <AC07> { [      h,   H               ]       };
301     key <AC08> { [         t,          T,         thorn,            THORN ] };
302     key <AC09> { [         n,          N,        ntilde,           Ntilde ] };
303     key <AC10> { [         s,          S,        ssharp,          section ] };
304     // key <AC11> { [     minus, underscore,           yen,    dead_belowdot ] };
305
306     key <AB01> { [ semicolon,      colon,     paragraph,           degree ] };
307     key <AB02> { [         q,          Q,    adiaeresis,       Adiaeresis ] };
308     // key <AB03> { [      j,   J               ]       };
309     key <AB04> { [         k,          K,            oe,               OE ] };
310     // key <AB05> { [      x,   X               ]       };
311     // key <AB06> { [      b,   B               ]       };
312     key <AB07> { [         m,          M,            mu,               mu ] };
313     key <AB08> { [         w,          W,         aring,            Aring ] };
314     // key <AB09> { [      v,   V               ]       };
315     key <AB10> { [         z,          Z,            ae,               AE ] };
316
317     key <BKSL> { [ backslash,        bar,       notsign,        brokenbar ] };
318
319     include "level3(ralt_switch)"
320 };
321
322 // Dvorak international without dead keys
323 // Stephane Magnenat (stephane at magnenat dot net, http://stephane.magnenat.net)
324 // Based on information from http://www.poupinou.org/dvorak/index.html
325 //
326 //  `   1   2   3   4   5   6   7   8   9   0   [   ]   \
327 //                  €
328 //
329 //      '   ,   .   p   y   f   g   c   r   l   /   =
330 //          ä   ê   ë   ü           ç
331 //
332 //      a   o   e   u   i   d   h   t   n   s   -
333 //      à   ô   é   û   î                   ß
334 //
335 //      ;   q   j   k   x   b   m   w   v   z
336 //      â   ö   è   ù   ï
337
338 partial alphanumeric_keys
339 xkb_symbols "dvorak-alt-intl" {
340
341     name[Group1]= "English (Dvorak alternative international no dead keys)";
342
343     include "us(dvorak)"
344
345     key <AE04> { [         4,  dollar,    EuroSign ] };
346
347     key <AD02> { [     comma,    less,  adiaeresis,       dead_caron ] };
348     key <AD03> { [    period, greater, ecircumflex,   periodcentered    ] };
349     key <AD04> { [         p,       P,  ediaeresis,     dead_cedilla ] };
350     key <AD05> { [         y,       Y,  udiaeresis ] };
351     key <AD08> { [         c,       C,    ccedilla,    dead_abovedot ] };
352
353     key <AC01> { [         a,       A,      agrave ] };
354     key <AC02> { [         o,       O, ocircumflex ] };
355     key <AC03> { [         e,       E,      eacute ] };
356     key <AC04> { [         u,       U, ucircumflex ] };
357     key <AC05> { [         i,       I, icircumflex ] };
358     key <AC10> { [         s,       S,      ssharp ] };
359
360     key <AB01> { [ semicolon,   colon, acircumflex ] };
361     key <AB02> { [         q,       Q,  odiaeresis,      dead_ogonek ] };
362     key <AB03> { [         j,       J,      egrave, dead_doubleacute ] };
363     key <AB04> { [         k,       K,      ugrave ] };
364     key <AB05> { [         x,       X,  idiaeresis ] };
365
366     include "level3(ralt_switch)"
367 };
368
369 // Left and right handed dvorak layouts
370 // by sqweek <sqweek@gmail.com> 2006-01-30
371 // Based on the corresponding layouts in the console-tools package.
372 partial alphanumeric_keys
373 xkb_symbols "dvorak-l" {
374
375     include "us(dvorak)"
376     name[Group1]= "English (left handed Dvorak)";
377
378     key <AE01> {        [ bracketleft,  braceleft       ]       };
379     key <AE02> {        [ bracketright, braceright      ]       };
380     key <AE03> {        [       slash,  question        ]       };
381     key <AE04> {        [           p,  P               ]       };
382     key <AE05> {        [           f,  F               ]       };
383     key <AE06> {        [           m,  M               ]       };
384     key <AE07> {        [           l,  L               ]       };
385     key <AE08> {        [           j,  J               ]       };
386     key <AE09> {        [           4,  dollar          ]       };
387     key <AE10> {        [           3,  numbersign      ]       };
388     key <AE11> {        [           2,  at              ]       };
389     key <AE12> {        [           1,  exclam          ]       };
390
391     key <AD01> {        [   semicolon,  colon           ]       };
392     key <AD02> {        [           q,  Q               ]       };
393     key <AD03> {        [           b,  B               ]       };
394     key <AD04> {        [           y,  Y               ]       };
395     key <AD05> {        [           u,  U               ]       };
396     key <AD06> {        [           r,  R               ]       };
397     key <AD07> {        [           s,  S               ]       };
398     key <AD08> {        [           o,  O               ]       };
399     key <AD09> {        [      period,  greater         ]       };
400     key <AD10> {        [           6,  asciicircum     ]       };
401     key <AD11> {        [           5,  percent         ]       };
402     key <AD12> {        [       equal,  plus            ]       };
403
404     key <AC01> {        [       minus,  underscore      ]       };
405     key <AC02> {        [           k,  K               ]       };
406     key <AC03> {        [           c,  C               ]       };
407     key <AC04> {        [           d,  D               ]       };
408     key <AC05> {        [           t,  T               ]       };
409     key <AC06> {        [           h,  H               ]       };
410     key <AC07> {        [           e,  E               ]       };
411     key <AC08> {        [           a,  A               ]       };
412     key <AC09> {        [           z,  Z               ]       };
413     key <AC10> {        [           8,  asterisk        ]       };
414     key <AC11> {        [           7,  ampersand       ]       };
415
416     key <AB01> {        [  apostrophe,  quotedbl        ]       };
417     key <AB02> {        [           x,  X               ]       };
418     key <AB03> {        [           g,  G               ]       };
419     key <AB04> {        [           v,  V               ]       };
420     key <AB05> {        [           w,  W               ]       };
421     key <AB06> {        [           n,  N               ]       };
422     key <AB07> {        [           i,  I               ]       };
423     key <AB08> {        [       comma,  less            ]       };
424     key <AB09> {        [           0,  parenright      ]       };
425     key <AB10> {        [           9,  parenleft       ]       };
426 };
427
428 partial alphanumeric_keys
429 xkb_symbols "dvorak-r" {
430     
431     include "us(dvorak)"
432     name[Group1]= "English (right handed Dvorak)";
433
434     key <AE01> {        [           1,  exclam          ]       };
435     key <AE02> {        [           2,  at              ]       };
436     key <AE03> {        [           3,  numbersign      ]       };
437     key <AE04> {        [           4,  dollar          ]       };
438     key <AE05> {        [           j,  J               ]       };
439     key <AE06> {        [           l,  L               ]       };
440     key <AE07> {        [           m,  M               ]       };
441     key <AE08> {        [           f,  F               ]       };
442     key <AE09> {        [           p,  P               ]       };
443     key <AE10> {        [       slash,  question        ]       };
444     key <AE11> {        [ bracketleft,  braceleft       ]       };
445     key <AE12> {        [ bracketright, braceright      ]       };
446
447     key <AD01> {        [           5,  percent         ]       };
448     key <AD02> {        [           6,  asciicircum ]   };
449     key <AD03> {        [           q,  Q               ]       };
450     key <AD04> {        [      period,  greater         ]       };
451     key <AD05> {        [           o,  O               ]       };
452     key <AD06> {        [           r,  R               ]       };
453     key <AD07> {        [           s,  S               ]       };
454     key <AD08> {        [           u,  U               ]       };
455     key <AD09> {        [           y,  Y               ]       };
456     key <AD10> {        [           b,  B               ]       };
457     key <AD11> {        [   semicolon,  colon           ]       };
458     key <AD12> {        [       equal,  plus            ]       };
459
460     key <AC01> {        [           7,  ampersand       ]       };
461     key <AC02> {        [           8,  asterisk        ]       };
462     key <AC03> {        [           z,  Z               ]       };
463     key <AC04> {        [           a,  A               ]       };
464     key <AC05> {        [           e,  E               ]       };
465     key <AC06> {        [           h,  H               ]       };
466     key <AC07> {        [           t,  T               ]       };
467     key <AC08> {        [           d,  D               ]       };
468     key <AC09> {        [           c,  C               ]       };
469     key <AC10> {        [           k,  K               ]       };
470     key <AC11> {        [       minus,  underscore      ]       };
471
472     key <AB01> {        [           9,  parenleft       ]       };
473     key <AB02> {        [           0,  parenright      ]       };
474     key <AB03> {        [           x,  X               ]       };
475     key <AB04> {        [       comma,  less            ]       };
476     key <AB05> {        [           i,  I               ]       };
477     key <AB06> {        [           n,  N               ]       };
478     key <AB07> {        [           w,  W               ]       };
479     key <AB08> {        [           v,  V               ]       };
480     key <AB09> {        [           g,  G               ]       };
481     key <AB10> {        [  apostrophe,  quotedbl        ]       };
482 };
483
484 // Classic dvorak layout
485 // by Piter Punk <piterpk@terra.com.br> - 2006-07-06 
486 // Based on dvorak layout and e-mail from Russel L. Harris rlharris@oplink.net 
487 // on xorg list.
488 partial alphanumeric_keys
489 xkb_symbols "dvorak-classic" {
490
491     name[Group1]= "English (classic Dvorak)";
492
493     // Alphanumeric section
494
495     key <TLDE> { [       grave, asciitilde, dead_grave, dead_tilde      ] };
496
497     key <AE01> { [ bracketleft, braceleft       ]       };
498     key <AE02> { [          7,  ampersand       ]       };
499     key <AE03> { [          5,  percent         ]       };
500     key <AE04> { [          3,  numbersign      ]       };
501     key <AE05> { [          1,  exclam          ]       };
502     key <AE06> { [          9,  parenleft,  dead_grave] };
503     key <AE07> { [          0,  parenright      ]       };
504     key <AE08> { [          2,  at              ]       };
505     key <AE09> { [          4,  dollar          ]       };
506     key <AE10> { [          6,  asciicircum, dead_circumflex, dead_circumflex ] };
507     key <AE11> { [          8,  asterisk        ]       };
508     key <AE12> { [ bracketright, braceright,  dead_tilde] };
509
510     key <AD01> { [      slash,  question        ]       };
511     key <AD02> { [      comma,  less,   dead_cedilla, dead_caron        ] };
512     key <AD03> { [      period, greater, dead_abovedot, periodcentered  ] };
513     key <AD04> { [          p,  P               ]       };
514     key <AD05> { [          y,  Y               ]       };
515     key <AD06> { [          f,  F               ]       };
516     key <AD07> { [          g,  G               ]       };
517     key <AD08> { [          c,  C               ]       };
518     key <AD09> { [          r,  R               ]       };
519     key <AD10> { [          l,  L               ]       };
520     key <AD11> { [  apostrophe, quotedbl, dead_acute, dead_diaeresis    ] };
521     key <AD12> { [      equal,  plus            ]       };
522
523     key <AC01> { [          a,  A               ]       };
524     key <AC02> { [          o,  O               ]       };
525     key <AC03> { [          e,  E               ]       };
526     key <AC04> { [          u,  U               ]       };
527     key <AC05> { [          i,  I               ]       };
528     key <AC06> { [          d,  D               ]       };
529     key <AC07> { [          h,  H               ]       };
530     key <AC08> { [          t,  T               ]       };
531     key <AC09> { [          n,  N               ]       };
532     key <AC10> { [          s,  S               ]       };
533     key <AC11> { [      minus,  underscore      ]       };
534
535     key <AB01> { [   semicolon, colon, dead_ogonek, dead_doubleacute ] };
536     key <AB02> { [          q,  Q               ]       };
537     key <AB03> { [          j,  J               ]       };
538     key <AB04> { [          k,  K               ]       };
539     key <AB05> { [          x,  X               ]       };
540     key <AB06> { [          b,  B               ]       };
541     key <AB07> { [          m,  M               ]       };
542     key <AB08> { [          w,  W               ]       };
543     key <AB09> { [          v,  V               ]       };
544     key <AB10> { [          z,  Z               ]       };
545     key <BKSL> { [  backslash,  bar             ]       };
546 };
547
548 // Programmer Dvorak, by Roland Kaufmann <rlndkfmn at gmail dot com>
549 // License: BSD, available at <http://www.kaufmann.no/roland/dvorak/license.html>
550 // Main features: Numbers are in shift position (like French), symbols have been
551 // placed in locations that give good hand-alternation and finger rolling with
552 // symbols that usually follows, accented characters are possible for I18N.
553 partial alphanumeric_keys
554 xkb_symbols "dvp" {
555     include "us(dvorak)"
556
557     name[Group1] = "English (programmer Dvorak)";
558
559     //             Unmodified       Shift           AltGr            Shift+AltGr
560     // symbols row, left side
561     key <TLDE> { [ dollar,          asciitilde,     dead_tilde                  ] };
562     key <AE01> { [ ampersand,       percent                                     ] };
563     key <AE02> { [ bracketleft,     7,              currency                    ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
564     key <AE03> { [ braceleft,       5,              cent                        ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
565     key <AE04> { [ braceright,      3,              yen                         ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
566     key <AE05> { [ parenleft,       1,              EuroSign                    ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
567     key <AE06> { [ equal,           9,              sterling                    ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
568
569     // symbols row, right side
570     key <AE07> { [ asterisk,        0                                           ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
571     key <AE08> { [ parenright,      2,              onehalf                     ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
572     key <AE09> { [ plus,            4                                           ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
573     key <AE10> { [ bracketright,    6                                           ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
574     key <AE11> { [ exclam,          8,              exclamdown                  ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
575     key <AE12> { [ numbersign,      grave,          dead_grave                  ] };
576     key <BKSP> { [ BackSpace                                                    ] };
577
578     // upper row, left side
579     key <AD01> { [ semicolon,       colon,          dead_diaeresis              ] };
580     key <AD02> { [ comma,           less,           guillemotleft               ] };
581     key <AD03> { [ period,          greater,        guillemotright              ] };
582     key <AD04> { [ p,               P,              paragraph,       section    ] };
583     key <AD05> { [ y,               Y,              udiaeresis,      Udiaeresis ] };
584
585     // upper row, right side
586     key <AD08> { [ c,               C,              ccedilla,        Ccedilla   ] };
587     key <AD09> { [ r,               R,              registered,      trademark  ] };
588     key <AD11> { [ slash,           question,       questiondown                ] };
589     key <AD12> { [ at,              asciicircum,    dead_circumflex, dead_caron ] };
590
591     // home row, left side
592     key <AC01> { [ a,               A,              aring,           Aring      ] };
593     key <AC02> { [ o,               O,              oslash,          Ooblique   ] };
594     key <AC03> { [ e,               E,              ae,              AE         ] };
595     key <AC04> { [ u,               U,              eacute,          Eacute     ] };
596
597     // home row, right side
598     key <AC06> { [ d,               D,              eth,             ETH        ] };
599     key <AC07> { [ h,               H,              dead_acute                  ] };
600     key <AC08> { [ t,               T,              thorn,           THORN      ] };
601     key <AC09> { [ n,               N,              ntilde,          Ntilde     ] };
602     key <AC10> { [ s,               S,              ssharp                      ] };
603     key <AC11> { [ minus,           underscore,     hyphen                      ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
604     key <BKSL> { [ backslash,       bar                                         ] };
605
606     // lower row, left side
607     key <AB01> { [ apostrophe,      quotedbl,       dead_acute                  ] };
608 };
609
610 // phonetic layout for Russian letters on an US keyboard
611 // by Ivan Popov <pin@konvalo.org> 2005-07-17
612
613 // level3 modifier is a shortcut to the "us" meaning of the keys where
614 // we place cyrillic letters, handy for accessing the corresponding
615 // punctuation marks.
616 // It is important to have access to punctuation marks, and the rest of
617 // alphabetical keys are added for being consequent so that the users
618 // can expect the level3 modifier to give what the key label shows.
619
620 partial alphanumeric_keys
621 xkb_symbols "rus" {
622
623     name[Group1]= "Russian (US, phonetic)";
624
625     include "us(basic)"
626
627 key.type[group1]="FOUR_LEVEL_ALPHABETIC";
628
629     key <LatA> {        [ Cyrillic_a, Cyrillic_A ]      };
630     key <LatB> {        [ Cyrillic_be, Cyrillic_BE ]    };
631     key <LatW> {        [ Cyrillic_ve, Cyrillic_VE ]    };
632     key <LatG> {        [ Cyrillic_ghe, Cyrillic_GHE ]  };
633     key <LatD> {        [ Cyrillic_de, Cyrillic_DE ]    };
634     key <LatE> {        [ Cyrillic_ie, Cyrillic_IE ]    };
635     key <TLDE> {        [ Cyrillic_io, Cyrillic_IO, grave, asciitilde ] };
636     key <LatV> {        [ Cyrillic_zhe, Cyrillic_ZHE ]  };
637     key <LatZ> {        [ Cyrillic_ze, Cyrillic_ZE ]    };
638     key <LatI> {        [ Cyrillic_i, Cyrillic_I ]      };
639     key <LatJ> {        [ Cyrillic_shorti, Cyrillic_SHORTI ]    };
640     key <LatK> {        [ Cyrillic_ka, Cyrillic_KA ]    };
641     key <LatL> {        [ Cyrillic_el, Cyrillic_EL ]    };
642     key <LatM> {        [ Cyrillic_em, Cyrillic_EM ]    };
643     key <LatN> {        [ Cyrillic_en, Cyrillic_EN ]    };
644     key <LatO> {        [ Cyrillic_o, Cyrillic_O ]      };
645     key <LatP> {        [ Cyrillic_pe, Cyrillic_PE ]    };
646     key <LatR> {        [ Cyrillic_er, Cyrillic_ER ]    };
647     key <LatS> {        [ Cyrillic_es, Cyrillic_ES ]    };
648     key <LatT> {        [ Cyrillic_te, Cyrillic_TE ]    };
649     key <LatU> {        [ Cyrillic_u, Cyrillic_U ]      };
650     key <LatF> {        [ Cyrillic_ef, Cyrillic_EF ]    };
651     key <LatH> {        [ Cyrillic_ha, Cyrillic_HA ]    };
652     key <LatC> {        [ Cyrillic_tse, Cyrillic_TSE ]  };
653     key <AC10> {        [ Cyrillic_che, Cyrillic_CHE, semicolon, colon ] };
654     key <AD11> {        [ Cyrillic_sha, Cyrillic_SHA, bracketleft, braceleft] };
655     key <AD12> {        [ Cyrillic_shcha, Cyrillic_SHCHA, bracketright, braceright ]    };
656     key <AE12> {        [ Cyrillic_hardsign, Cyrillic_HARDSIGN, equal, plus ] };
657     key <LatY> {        [ Cyrillic_yeru, Cyrillic_YERU ]        };
658     key <LatX> {        [ Cyrillic_softsign, Cyrillic_SOFTSIGN ]        };
659     key <BKSL> {        [ Cyrillic_e, Cyrillic_E, backslash, bar ]      };
660     key <AC11> {        [ Cyrillic_yu, Cyrillic_YU, apostrophe, quotedbl ] };
661     key <LatQ> {        [ Cyrillic_ya, Cyrillic_YA ]    };
662
663     include "level3(ralt_switch)"
664 };
665
666 partial alphanumeric_keys
667 xkb_symbols "mac" {
668
669     include "us(basic)"
670     name[Group1]= "English (Macintosh)";
671     key.type[group1]="FOUR_LEVEL";
672
673     // Slightly improvised from http://homepage.mac.com/thgewecke/kblayout.jpg
674     key <LSGT> { [   section,  plusminus,       section,        plusminus ] };
675     key <TLDE> { [     grave, asciitilde,    dead_grave,        dead_horn ] };
676     key <AE01> { [         1,     exclam,    exclamdown,            U2044 ] };
677     key <AE02> { [         2,         at,     trademark,         EuroSign ] };
678     key <AE03> { [         3, numbersign,      sterling,            U2039 ] };
679     key <AE04> { [         4,     dollar,          cent,            U203A ] };
680     key <AE05> { [         5,    percent,      infinity,            UFB01 ] };
681     key <AE06> { [         6,asciicircum,       section,            UFB02 ] };
682     key <AE07> { [         7,  ampersand,     paragraph,     doubledagger ] };
683     key <AE08> { [         8,   asterisk, enfilledcircbullet,      degree ] };
684     key <AE09> { [         9,  parenleft,   ordfeminine,   periodcentered ] };
685     key <AE10> { [         0, parenright,     masculine,singlelowquotemark] };
686     key <AE11> { [     minus, underscore,        endash,           emdash ] };
687     key <AE12> { [     equal,       plus,      notequal,        plusminus ] };
688
689     key <AD01> { [         q,          Q,            oe,               OE ] };
690     key <AD02> { [         w,          W,         U2211,doublelowquotemark] };
691     key <AD03> { [         e,          E,    dead_acute,            acute ] };
692     key <AD04> { [         r,          R,    registered,            U2030 ] };
693     key <AD05> { [         t,          T,        dagger,       dead_caron ] };
694     key <AD06> { [         y,          Y,           yen,       onequarter ] };
695     key <AD07> { [         u,        U,  dead_diaeresis,        diaeresis ] };
696     key <AD08> { [         i,        I, dead_circumflex,            U02C6 ] };
697     key <AD09> { [         o,          O,        oslash,         Ooblique ] };
698     key <AD10> { [         p,          P,      Greek_pi,            U220F ] };
699     key <AD11> { [ bracketleft,  braceleft, leftdoublequotemark, rightdoublequotemark ] };
700     key <AD12> { [bracketright, braceright, leftsinglequotemark, rightsinglequotemark ] };
701     key <BKSL> { [ backslash,        bar, guillemotleft,   guillemotright ] };
702
703     key <AC01> { [         a,          A,         aring,            Aring ] };
704     key <AC02> { [         s,          S,        ssharp,      dead_stroke ] };
705     key <AC03> { [         d,          D, partialderivative,          eth ] };
706     key <AC04> { [         f,          F,      function,        dead_hook ] };
707     key <AC05> { [         g,          G,     copyright, dead_doubleacute ] };
708     key <AC06> { [         h,          H, dead_abovedot,    dead_belowdot ] };
709     key <AC07> { [         j,          J,         U2206,          onehalf ] };
710     key <AC08> { [         k,          K,dead_abovering,            UF8FF ] };
711
712     key <AC09> { [         l,          L,       notsign,            THORN ] };
713     key <AC10> { [ semicolon,      colon,         U2026,            thorn ] };
714     key <AC11> { [apostrophe,   quotedbl,            ae,               AE ] };
715
716     key <AB01> { [         z,          Z,   Greek_OMEGA,     dead_cedilla ] };
717     key <AB02> { [         x,          X,         U2248,      dead_ogonek ] };
718                                 // unclear whether "approxeq" is 2248 or 2245
719     key <AB03> { [         c,          C,      ccedilla,         Ccedilla ] };
720     key <AB04> { [         v,          V,    squareroot,            U25CA ] };
721     key <AB05> { [         b,          B,      integral,         idotless ] };
722     key <AB06> { [         n,          N,    dead_tilde,            U02DC ] };
723     key <AB07> { [         m,          M,            mu,    threequarters ] };
724     key <AB08> { [     comma,       less, lessthanequal,      dead_macron ] };
725     key <AB09> { [    period,    greater, greaterthanequal,    dead_breve ] };
726     key <AB10> { [     slash,   question,      division,     questiondown ] };
727
728     include "level3(ralt_switch)"
729 };
730  
731 // Colemak symbols for xkb on X.Org Server 7.x
732 // 2006-01-01 Shai Coleman, http://colemak.com/ . Public domain.
733
734 partial alphanumeric_keys
735 xkb_symbols "colemak" {
736     include "us"
737     name[Group1]= "English (Colemak)";
738
739     // Alphanumeric section
740     key <TLDE> { [        grave,   asciitilde,      dead_tilde,       asciitilde ] };
741     key <AE01> { [            1,       exclam,      exclamdown,      onesuperior ] };
742     key <AE02> { [            2,           at,       masculine,      twosuperior ] };
743     key <AE03> { [            3,   numbersign,     ordfeminine,    threesuperior ] };
744     key <AE04> { [            4,       dollar,            cent,         sterling ] };
745     key <AE05> { [            5,      percent,        EuroSign,              yen ] };
746     key <AE06> { [            6,  asciicircum,         hstroke,          Hstroke ] };
747     key <AE07> { [            7,    ampersand,             eth,              ETH ] };
748     key <AE08> { [            8,     asterisk,           thorn,            THORN ] };
749     key <AE09> { [            9,    parenleft,  leftsinglequotemark,  leftdoublequotemark ] };
750     key <AE10> { [            0,   parenright, rightsinglequotemark,  rightdoublequotemark ] };
751     key <AE11> { [        minus,   underscore,          endash,           emdash ] };
752     key <AE12> { [        equal,         plus,        multiply,         division ] };
753
754     key <AD01> { [            q,            Q,      adiaeresis,       Adiaeresis ] };
755     key <AD02> { [            w,            W,           aring,            Aring ] };
756     key <AD03> { [            f,            F,          atilde,           Atilde ] };
757     key <AD04> { [            p,            P,          oslash,         Ooblique ] };
758     key <AD05> { [            g,            G,     dead_ogonek,       asciitilde ] };
759     key <AD06> { [            j,            J,         dstroke,          Dstroke ] };
760     key <AD07> { [            l,            L,         lstroke,          Lstroke ] };
761     key <AD08> { [            u,            U,          uacute,           Uacute ] };
762     key <AD09> { [            y,            Y,      udiaeresis,       Udiaeresis ] };
763     key <AD10> { [    semicolon,        colon,      odiaeresis,       Odiaeresis ] };
764     key <AD11> { [  bracketleft,    braceleft,   guillemotleft,        0x1002039 ] };
765     key <AD12> { [ bracketright,   braceright,  guillemotright,        0x100203a ] };
766     key <BKSL> { [    backslash,          bar,      asciitilde,       asciitilde ] };
767
768     key <AC01> { [            a,            A,          aacute,           Aacute ] };
769     key <AC02> { [            r,            R,      dead_grave,       asciitilde ] };
770     key <AC03> { [            s,            S,          ssharp,       asciitilde ] };
771     key <AC04> { [            t,            T,      dead_acute, dead_doubleacute ] };
772     key <AC05> { [            d,            D,  dead_diaeresis,       asciitilde ] };
773     key <AC06> { [            h,            H,      dead_caron,       asciitilde ] };
774     key <AC07> { [            n,            N,          ntilde,           Ntilde ] };
775     key <AC08> { [            e,            E,          eacute,           Eacute ] };
776     key <AC09> { [            i,            I,          iacute,           Iacute ] };
777     key <AC10> { [            o,            O,          oacute,           Oacute ] };
778     key <AC11> { [   apostrophe,     quotedbl,          otilde,           Otilde ] };
779
780     key <AB01> { [            z,            Z,              ae,               AE ] };
781     key <AB02> { [            x,            X, dead_circumflex,       asciitilde ] };
782     key <AB03> { [            c,            C,        ccedilla,         Ccedilla ] };
783     key <AB04> { [            v,            V,              oe,               OE ] };
784     key <AB05> { [            b,            B,      dead_breve,       asciitilde ] };
785     key <AB06> { [            k,            K,  dead_abovering,       asciitilde ] };
786     key <AB07> { [            m,            M,     dead_macron,       asciitilde ] };
787     key <AB08> { [        comma,         less,    dead_cedilla,       asciitilde ] };
788     key <AB09> { [       period,      greater,   dead_abovedot,       asciitilde ] };
789     key <AB10> { [        slash,     question,    questiondown,       asciitilde ] };
790
791     key <CAPS> { [    BackSpace,    BackSpace,       BackSpace,        BackSpace ] };
792     key <LSGT> { [        minus,   underscore,          endash,           emdash ] };
793     key <SPCE> { [        space,        space,           space,     nobreakspace ] };
794
795     include "level3(ralt_switch)"
796 };
797
798 // I do NOT like dead-keys - the International keyboard as defined by Microsoft
799 // doesn't fit my needs. Why use two keystrokes for all simple characters (eg '
800 // and <space> generates a single ') just to have an é (eacute) in two strokes
801 // as well? I type ' more often than é (eacute).
802 //
803 // This file works just like a regular keyboard, BUT has all dead-keys
804 // accessible at level3 (through AltGr). An ë (ediaeresis) is now: AltGr+"
805 // followed by an e. In other words, this keyboard is not international as long
806 // as you leave the right Alt key alone.
807 //
808 // The original MS International keyboard was intended for Latin1 (iso8859-1).
809 // With the introduction of iso8859-15, the (important) ligature oe (and OE)
810 // became available. I added them next to ae. Because I write ediaeresis more
811 // often than registered, I moved registered to be next to copyright and added
812 // ediaeresis and idiaeresis. - Adriaan
813
814 partial alphanumeric_keys
815 xkb_symbols "altgr-intl" {
816
817    name[Group1]= "English (international AltGr dead keys)";
818
819    include "us(intl)"
820
821 // five dead keys moved into level3:
822
823    key <TLDE> { [    grave, asciitilde,  dead_grave,   dead_tilde      ] };
824    key <AC11> { [apostrophe,quotedbl,    dead_acute,   dead_diaeresis  ] };
825
826 // diversions from the MS Intl keyboard:
827
828    key <AE01> { [        1, exclam,      onesuperior,  exclamdown      ] };
829    key <AD04> { [        r, R,           ediaeresis,   Ediaeresis      ] };
830    key <AC07> { [        j, J,           idiaeresis,   Idiaeresis      ] };
831    key <AB02> { [        x, X,           oe,           OE              ] };
832    key <AB04> { [        v, V,           registered,   registered      ] };
833
834 // onequarter etc (not in iso8859-15) moved to get three unshifted deadkeys:
835
836    key <AE06> { [        6, asciicircum, dead_circumflex, onequarter    ] };
837    key <AE07> { [        7, ampersand,   dead_horn,       onehalf       ] };
838    key <AE08> { [        8, asterisk,    dead_ogonek,     threequarters ] };
839
840    include "level3(ralt_switch)"
841 };
842
843 // Intel ClassmatePC Keyboard Layout
844 // by Piter PUNK <piterpk@terra.com.br>
845 //
846 // The keyboard layouts below maps the us(basic), us(intl) and us(alt-intl)
847 // to ClassmatePC keyboard. All layouts uses RCTL as level3(switch) since
848 // the keyboard doesn't have AltGr key. The EuroSign is engraved at 5 key.
849
850 // classmate - us(basic)
851 partial alphanumeric_keys
852 xkb_symbols "classmate" {
853     include "us(basic)"
854     name[Group1]= "USA - ClassmatePC";
855
856     key <LSGT> { [ backslash,   bar,            backslash,      bar ] };
857
858     include "eurosign(5)"
859     include "level3(switch)"
860 };
861
862 // classmate-intl - us(intl)
863 // RCTL is generated by Fn+Alt, because that, when trying to access
864 // the level3 symbols at 7,8,9,0,u,i,o,p,j,k,l,;,m,. and / we got
865 // the keypad keycodes. The keypad is changed to make Fn+Alt+<KP_key>
866 // generate the same symbol as the original key.
867 partial alphanumeric_keys
868 xkb_symbols "classmate-intl" {
869     include "us(intl)"
870     name[Group1]= "USA - ClassmatePC (International)";
871     key.type[Group1]="FOUR_LEVEL";
872
873     key <LSGT> { [ backslash,   bar,            backslash,      bar ] };
874
875     key <KP7>  { [      KP_Home,                KP_7,   
876                         onehalf,                dead_horn       ] };
877     key <KP8>  { [      KP_Up,                  KP_8,
878                         threequarters,          dead_ogonek     ] };
879     key <KP9>  { [      KP_Prior,               KP_9,
880                         leftsinglequotemark,    dead_breve      ] };
881     key <KPMU> { [      KP_Multiply,            KP_Multiply,
882                         rightsinglequotemark,   dead_abovering  ] };
883
884     key <KP4>  { [      KP_Left,                KP_4,
885                         uacute,                 Uacute          ] };
886     key <KP5>  { [      KP_Begin,               KP_5,
887                         iacute,                 Iacute          ] };
888     key <KP6>  { [      KP_Right,               KP_6,
889                         oacute,                 Oacute          ] };
890     key <KPSU> { [      KP_Subtract,            KP_Subtract,
891                         odiaeresis,             Odiaeresis      ] };
892
893     key <KP2>  { [      KP_Down,                KP_2,
894                         oe,                     OE              ] };
895     key <KP3>  { [      KP_Next,                KP_3,
896                         oslash,                 Ooblique        ] };
897     key <KPAD> { [      KP_Add,                 KP_Add,
898                         paragraph,              degree          ] };
899    
900     key <KP0>  { [      KP_Insert,              KP_0,
901                         mu,                     mu      ] };
902     key <KPDL> { [      KP_Delete,              KP_Decimal,
903                         dead_abovedot,          dead_caron      ] }; 
904     key <KPDV> { [      KP_Divide,              KP_Divide,
905                         questiondown,           dead_hook       ] };
906
907     include "level3(switch)"
908 };
909
910 // classmate-alt-intl - us(alt-intl)
911 // RCTL is generated by Fn+Alt, because that, when trying to access
912 // the level3 symbols at 7,8,9,0,u,i,o,p,j,k,l,;,m,. and / we got
913 // the keypad keycodes. The keypad is changed to make Fn+Alt+<KP_key>
914 // generate the same symbol as the original key.
915 partial alphanumeric_keys
916 xkb_symbols "classmate-alt-intl" {
917     include "us(alt-intl)"
918     name[Group1]= "USA - ClassmatePC (Alternative international)";
919     key.type[Group1]="FOUR_LEVEL";
920
921     key <LSGT> { [ backslash,   bar,            backslash,      bar ] };
922
923     key <KPSU> { [      KP_Subtract,            KP_Subtract     ] };
924
925     key <KP9>  { [      KP_Prior,               KP_9,
926                         leftsinglequotemark,    dead_breve      ] };
927     key <KPMU> { [      KP_Multiply,            KP_Multiply,
928                         rightsinglequotemark,   dead_abovering  ] };
929
930     key <KPAD> { [      KP_Add,                 KP_Add,
931                         dead_ogonek,            dead_diaeresis   ] };
932     
933     key <KPDL> { [      KP_Delete,              KP_Decimal,
934                         dead_abovedot,          dead_circumflex ] }; 
935     key <KPDV> { [      KP_Divide,              KP_Divide,
936                         dead_hook,              dead_hook       ] };
937
938     include "level3(switch)"
939 };
940
941 // classmate-altgr-intl - us(altgr-intl)
942 // RCTL is generated by Fn+Alt, because that, when trying to access
943 // the level3 symbols at 7,8,9,0,u,i,o,p,j,k,l,;,m,. and / we got
944 // the keypad keycodes. The keypad is changed to make Fn+Alt+<KP_key>
945 // generate the same symbol as the original key.
946 partial alphanumeric_keys
947 xkb_symbols "classmate-altgr-intl" {
948     include "us(altgr-intl)"
949     name[Group1]= "USA - ClassmatePC (International Fn+Alt dead-keys)";
950     key.type[Group1]="FOUR_LEVEL";
951
952     key <LSGT> { [ backslash,   bar,            backslash,      bar ] };
953
954     key <KP7>  { [      KP_Home,                KP_7,   
955                         dead_horn,              dead_horn       ] };
956     key <KP8>  { [      KP_Up,                  KP_8,
957                         dead_ogonek,            dead_ogonek     ] };
958     key <KP9>  { [      KP_Prior,               KP_9,
959                         leftsinglequotemark,    dead_breve      ] };
960     key <KPMU> { [      KP_Multiply,            KP_Multiply,
961                         rightsinglequotemark,   dead_abovering  ] };
962
963     key <KP4>  { [      KP_Left,                KP_4,
964                         uacute,                 Uacute          ] };
965     key <KP5>  { [      KP_Begin,               KP_5,
966                         iacute,                 Iacute          ] };
967     key <KP6>  { [      KP_Right,               KP_6,
968                         oacute,                 Oacute          ] };
969     key <KPSU> { [      KP_Subtract,            KP_Subtract,
970                         odiaeresis,             Odiaeresis      ] };
971
972     key <KP1>  { [      KP_End,                 KP_1,
973                         idiaeresis,             Idiaeresis      ] };
974     key <KP2>  { [      KP_Down,                KP_2,
975                         oe,                     OE              ] };
976     key <KP3>  { [      KP_Next,                KP_3,
977                         oslash,                 Ooblique        ] };
978     key <KPAD> { [      KP_Add,                 KP_Add,
979                         paragraph,              degree          ] };
980    
981     key <KP0>  { [      KP_Insert,              KP_0,
982                         mu,                     mu      ] };
983     key <KPDL> { [      KP_Delete,              KP_Decimal,
984                         dead_abovedot,          dead_caron      ] }; 
985     key <KPDV> { [      KP_Divide,              KP_Divide,
986                         questiondown,           dead_hook       ] };
987
988     include "level3(switch)"
989 };
990
991 partial alphanumeric_keys
992 xkb_symbols "olpc" {
993
994    include "us(basic)"
995    name[Group1]= "English (US)";
996
997    // OLPC international US English keyboard layout.
998    // It's a little different from the usual international layout.
999    // See: http://wiki.laptop.org/go/Image:Keyboard_english.png
1000
1001    key <TLDE> { [     grave, asciitilde,    dead_grave, dead_tilde ] };
1002    key <AE01> { [         1,     exclam,    exclamdown, exclamdown ] };
1003    key <AE02> { [         2,         at,       notsign,    notsign ] };
1004    key <AE03> { [         3, numbersign,     0x1000300,  0x1000300 ] }; // combining grave
1005    key <AE04> { [         4,     dollar,     0x1000301,  0x1000301 ] }; // combining acute
1006    key <AE05> { [         5,    percent,     0x1000306,  0x1000306 ] }; // combining breve above
1007    key <AE06> { [         6,asciicircum,     0x100030A,  0x100030A ] }; // combining ring above
1008    key <AE07> { [         7,  ampersand,     0x1000302,  0x1000302 ] }; // combining circumflex above
1009    key <AE08> { [         8,   asterisk,     0x100030C,  0x100030C ] }; // combining caron above
1010    key <AE09> { [         9,  parenleft,     0x1000307,  0x1000307 ] }; // combining dot above
1011    key <AE10> { [         0, parenright,     0x1000308,  0x1000308 ] }; // combining diaeresis above
1012    key <AE11> { [     minus, underscore,     0x1000304,  0x1000304 ] }; // combining macron above
1013    key <AE12> { [     equal,       plus,     0x1000303,  0x1000303 ] }; // combining tilde above
1014
1015    key <AD01> { [         q,          Q,  Greek_omega, Greek_OMEGA ] };
1016    key <AD02> { [         w,          W,       oslash,      Oslash ] };
1017    key <AD03> { [         e,          E,           oe,          OE ] };
1018    key <AD04> { [         r,          R,    0x1000327,   0x1000327 ] }; // combining cedilla
1019    key <AD05> { [         t,          T,    0x100032E,   0x100032E ] }; // combining breve below
1020    key <AD06> { [         y,          Y,    0x1000325,   0x1000325 ] }; // combining ring below
1021    key <AD07> { [         u,          U,    0x100032D,   0x100032D ] }; // combining circumflex below
1022    key <AD08> { [         i,          I,    0x100032C,   0x100032C ] }; // combining caron below
1023    key <AD09> { [         o,          O,    0x1000323,   0x1000323 ] }; // combining dot below
1024    key <AD10> { [         p,          P,    0x1000324,   0x1000324 ] }; // combining diaeresis below
1025    key <AD11> { [ bracketleft,  braceleft,  0x1000331,   0x1000331 ] }; // combining macron below
1026    key <AD12> { [bracketright, braceright,  0x1000330,   0x1000330 ] }; // combining tilde below
1027
1028    key <AC01>  { [         a,          A,          ae,               AE ] };
1029    key <AC02>  { [         s,          S,      ssharp,        0x1001E9C ] }; // uppercase S sharp
1030    key <AC03>  { [         d,          D,         eth,              ETH ] };
1031    key <AC04>  { [         f,          F,       thorn,            THORN ] };
1032    key <AC06>  { [         h,          H,    sterling,         sterling ] };
1033    key <AC07>  { [         j,          J,    EuroSign,         EuroSign ] };
1034    key <AC10>  { [ semicolon,      colon,   masculine,      ordfeminine ] };
1035    key <AC11>  { [ apostrophe,  quotedbl,    currency,         currency ] };
1036    key <BKSL>  { [ backslash,        bar,      section,         section ] };
1037
1038    key <AB03>  { [         c,          C,    ccedilla,         Ccedilla ] };
1039    key <AB06>  { [         n,          N,      ntilde,           Ntilde ] };
1040    key <AB07>  { [         m,          M,          mu,               mu ] };
1041    key <AB08>  { [     comma,     less,  guillemotleft,   guillemotleft ] };
1042    key <AB09>  { [    period,  greater, guillemotright,  guillemotright ] };
1043    key <AB10>  { [     slash,   question, questiondown,    questiondown ] };
1044
1045    key <I219>  { [  multiply,   division, ISO_Next_Group, ISO_Prev_Group ] };
1046
1047    include "level3(ralt_switch)"
1048 };
1049
1050 partial alphanumeric_keys
1051 xkb_symbols "olpc2" {
1052    include "us(olpc)"
1053    name[Group1]= "English (layout toggle on multiply/divide key)";
1054    include "group(olpc)"
1055 };
1056
1057 // Based on Cherokee Nation Official Layout
1058 // http://www.cherokee.org/extras/downloads/font/Keyboard.htm
1059
1060 partial alphanumeric_keys modifier_keys
1061 xkb_symbols "chr" {
1062
1063     name[Group1]= "Cherokee";
1064     key.type[group1]="ALPHABETIC";
1065
1066     // Alphanumeric section
1067     key <TLDE> { [      grave,      U13CA ] };
1068     key <AE01> { [          1,      U13B1 ] };
1069     key <AE02> { [          2,      U13C7 ] };
1070     key <AE03> { [          3,      U13E7 ] };
1071     key <AE04> { [      U13D9,      U13B0 ] };
1072     key <AE05> { [      U13E6,      U13B9 ] };
1073     key <AE06> { [      U13DC,      U13DD ] };
1074     key <AE07> { [      U13CB,      U13E1 ] };
1075     key <AE08> { [      U13D6,      U13BA ] };
1076     key <AE09> { [      U13D2,  parenleft ] };
1077     key <AE10> { [      U13C4, parenright ] };
1078     key <AE11> { [      U13BF,      U13BC ] };
1079     key <AE12> { [      U13F3,      U13BD ] };
1080
1081     key <AD01> { [      U13AA,      U13C6 ] };
1082     key <AD02> { [      U13B3,      U13EB ] };
1083     key <AD03> { [      U13A1,      U13E3 ] };
1084     key <AD04> { [      U13DB,      U13CF ] };
1085     key <AD05> { [      U13D4,      U13D8 ] };
1086     key <AD06> { [      U13EF,      U13F2 ] };
1087     key <AD07> { [      U13A4,      U13AD ] };
1088     key <AD08> { [      U13A2,      U13F1 ] };
1089     key <AD09> { [      U13A3,      U13EC ] };
1090     key <AD10> { [      U13C1,      U13EA ] };
1091     key <AD11> { [      U13D5,      U13D1 ] };
1092     key <AD12> { [      U13B6,      U13E4 ] };
1093     key <BKSL> { [      U13E9,      U13EE ] };
1094
1095     key <AC01> { [      U13A0,      U13CC ] };
1096     key <AC02> { [      U13CD,      U13CE ] };
1097     key <AC03> { [      U13D7,      U13D0 ] };
1098     key <AC04> { [      U13A9,      U13C8 ] };
1099     key <AC05> { [      U13A6,      U13E5 ] };
1100     key <AC06> { [      U13AF,      U13B2 ] };
1101     key <AC07> { [      U13DA,      U13AB ] };
1102     key <AC08> { [      U13B8,      U13A7 ] };
1103     key <AC09> { [      U13B5,      U13AE ] };
1104     key <AC10> { [      U13E8,      U13E0 ] };
1105     key <AC11> { [ apostrophe,   quotedbl ] };
1106
1107     key <AB01> { [      U13AC,      U13C3 ] };
1108     key <AB02> { [      U13F4,      U13ED ] };
1109     key <AB03> { [      U13D3,      U13DF ] };
1110     key <AB04> { [      U13A5,      U13DE ] };
1111     key <AB05> { [      U13A8,      U13F0 ] };
1112     key <AB06> { [      U13BE,      U13BB ] };
1113     key <AB07> { [      U13C5,      U13B7 ] };
1114     key <AB08> { [      comma,      U13E2 ] };
1115     key <AB09> { [     period,      U13B4 ] };
1116     key <AB10> { [      U13C2,      U13C9 ] };
1117
1118     // End alphanumeric section
1119 };
1120
1121 // Serbian charecters added as third level symbols to US keyboard layout.
1122
1123 partial alphanumeric_keys
1124 xkb_symbols "hbs" {
1125
1126   name[Group1]= "Serbo-Croatian (US)";
1127
1128   include "us"
1129
1130   key <TLDE> { [ grave, asciitilde ] };
1131   key <AE06> { [ 6, dead_caron, asciicircum, asciicircum ] };
1132   key <AC09> { [ l, L, U1C9, U1C8 ] };
1133   key <AB06> { [ n, N, U1CC, U1CB ] };
1134   key <AB01> { [ z, Z, U1C6, U1C5 ] };
1135   key <AD03> { [ e, E, EuroSign, cent ] };
1136   key <AC03> { [ d, D, dstroke, Dstroke ] };
1137   key <AC11> { [ dead_acute, quotedbl, apostrophe, apostrophe ] };
1138   key <SPCE> { [ space, space, nobreakspace, nobreakspace ] };
1139   key <AB08> { [ comma, less, NoSymbol, guillemotright ] };
1140   key <AB09> { [ period, greater, NoSymbol, guillemotleft ] };
1141
1142   include "level3(ralt_switch)"
1143 };
1144
1145 //based on http://upload.wikimedia.org/wikipedia/commons/1/18/T-Mobile_G1_launch_event_2.jpg
1146 partial alphanumeric_keys
1147 xkb_symbols "htcdream" {
1148         include "inet(htcdream)"
1149         name[Group1]= "English (US)";
1150
1151         //second row
1152         key <AD01> { [ q, Q, Tab, Tab ] };
1153         key <AD02> { [ w, W, grave, grave ] };
1154         key <AD03> { [ e, E, underscore, underscore ] };
1155         key <AD04> { [ r, R, sterling, sterling ] };
1156         key <AD05> { [ t, T, EuroSign, EuroSign ] };
1157         key <AD06> { [ y, Y, division, division ] };
1158         key <AD07> { [ u, U, multiply, multiply ] };
1159         key <AD08> { [ i, I, minus, minus ] };
1160         key <AD09> { [ o, O, plus, plus ] };
1161         key <AD10> { [ p, P, equal, equal ] };
1162
1163         //third row
1164         key <AC01> { [ a, A, NoSymbol, NoSymbol ] };
1165         key <AC02> { [ s, S, bar, bar ] };
1166         key <AC03> { [ d ,D, backslash, backslash ] };
1167         key <AC04> { [ f, F, braceleft, braceleft ] };
1168         key <AC05> { [ g, G, braceright, braceright ] };
1169         key <AC06> { [ h, H, colon, colon ] };
1170         key <AC07> { [ j, J, semicolon, semicolon ] };
1171         key <AC08> { [ k, K, quotedbl, quotedbl ] };
1172         key <AC09> { [ l, L, apostrophe, apostrophe ] };
1173
1174         //forth row
1175         key <AB01> { [ z, Z, NoSymbol, NoSymbol ] };
1176         key <AB02> { [ x, X, NoSymbol, NoSymbol ] };
1177         key <AB03> { [ c, C, NoSymbol, NoSymbol ] };
1178         key <AB04> { [ v, V, bracketleft, bracketleft ] };
1179         key <AB05> { [ b, B, bracketright, bracketright ] };
1180         key <AB06> { [ n, N, less, less ] };
1181         key <AB07> { [ m, M, greater, greater ] };
1182         key <AB08> { [ comma, comma, question, question ] };
1183
1184         //fifth row
1185         key <FK15> { [ at, at, asciitilde, asciitilde ] };
1186
1187         include "level3(alt_switch)"
1188 };
1189
1190 // EXTRAS:
1191
1192 // XCompose is out! Unicode combining is in!  For those of us who live
1193 // on the edge: A keymap using Unicode combining characters instead of
1194 // deadkeys.  This variation does not deviate from the lame MS-style
1195 // US-intl layout; but it uses AltGr for combining, like altgr-intl.
1196 //
1197 // This might break your font layout layout systems (because they
1198 // suck), caveat emptor.  Also, most of today's software will count
1199 // individual combining marks for selection, deletion, character
1200 // counting &c., and won't be smart enough to do canonical equivalence
1201 // when searching, &c.
1202 //
1203 // With Unicode combining you use "handwriting order", not
1204 // "typewriting order" as with deadkeys.  That is, you first type the
1205 // base character, then the diacritics/accents/modifiers.  This has
1206 // the advantage of avoiding hidden states --- each keypress changes
1207 // something on screen.
1208 //
1209 // TODO: as of now, this duplicates all us(intl) functionality with
1210 // combining.  With care, perhaps we could add more combining marks
1211 // not present in intl, and support all major languages.
1212 partial alphanumeric_keys
1213 xkb_symbols "intl-unicode" {
1214
1215  name[Group1]= "English (US, international AltGr Unicode combining)";
1216
1217  include "us(intl)"
1218  include "level3(ralt_switch)"
1219
1220  // grave, tilde
1221  key <TLDE> { [grave, asciitilde, U0300, U0303 ] };
1222  // double acute
1223  key <AE02> { [ 2, at, twosuperior, U030B ] };
1224  // macron
1225  key <AE03> { [ 3, numbersign, threesuperior, U0304 ] };
1226  // circumflex
1227  key <AE06> { [ 6, asciicircum, onequarter, U0302 ] };
1228  // horn
1229  key <AE07> { [ 7, ampersand, onehalf, U031B ] };
1230  // ogonek
1231  key <AE08> { [ 8, asterisk, threequarters, U0328 ] };
1232  // breve
1233  key <AE09> { [  9, parenleft, leftsinglequotemark, U0306 ] };
1234  // abovering
1235  key <AE10> { [  0, parenright, rightsinglequotemark, U030A ] };
1236
1237  // belowdot
1238  key <AE11> { [ minus, underscore, yen, U0323 ] };
1239  // acute, diaeresis
1240  key <AC11> { [apostrophe, quotedbl, U0301, U0308 ] };
1241  // abovedot, caron
1242  key <AB09> { [ period, greater, U0307, U030C ] };
1243  // hook
1244  key <AB10> { [ slash, question, questiondown, 0309 ] };
1245
1246  // alt-intl compatibility
1247  // cedilla, caron
1248  key <AB08> { [ comma, less,     U0327, U030C ] };
1249  // ogonek, diaeresis
1250  key <AC10> { [ semicolon, colon,        U0328, U0308 ] };
1251  // doubleacute, horn
1252  key <AE12> { [ equal, plus,     U030B, U031B ] };
1253
1254  // we don't do combining latin letters and combining enclosures
1255  // because support for those is very rare.
1256 };
1257
1258 // XCompose is out! Unicode combining is in! For those of us who live
1259 // on the edge: A keymap using Unicode combining characters instead of
1260 // deadkeys. This variation does break compatibility with us-intl,
1261 // whenever I thought it would be more mnemonic or Unicodeish.
1262 partial alphanumeric_keys
1263 xkb_symbols "alt-intl-unicode" {
1264
1265  name[Group1]= "English (US, international AltGr Unicode combining, alternative)";
1266
1267  include "extras/us(intl-unicode)"
1268  include "level3(ralt_switch)"
1269
1270  // easier macron; em-dash.
1271  // em-dash is available via compose, but I added here since it's such
1272  // an important typographic character.
1273  key <AE11> { [ minus, underscore, U0304, U2014 ] };
1274
1275  // belowdot, abovedot (caron at coma/less key, per above)
1276  key <AB09> { [ period, greater, U0323, U0307 ] };
1277
1278 };
1279
1280 partial alphanumeric_keys  
1281 xkb_symbols "ats" {
1282
1283     include "us"
1284
1285     name[Group1]= "Atsina";
1286
1287     //Using Dead key to get COMBINING COMMA ABOVE for ejectives on
1288     //q, l, t, s, m, g, k, p, w, y, r
1289     //XCompose key is used for the other accute and grave.
1290
1291     key <AD03> { [ e, E, eacute, Eacute  ] };
1292     key <AD07> { [ u, U, uacute, Uacute  ] };
1293     key <AD08> { [ i, I, iacute, Iacute  ] };
1294     key <AD09> { [ o, O, oacute, Oacute  ] };
1295     key <AD11> { [ bracketleft, braceleft, U03B8 ] };
1296     key <AD12> { [ bracketright, braceright, U010D, U010C ] };
1297     //U+010C (uppercase Č) and U+010D (lowercase č).
1298
1299     key <AC01> { [ a, A, aacute, Aacute  ] };
1300
1301
1302     //Small letter Open use compose to key get acute accent
1303     key <AB03> { [ c,   C, U0254, U0186           ] };
1304     key <AB08> { [ comma,     less, U0313 ] };
1305     key <AB10> { [ slash, question, U0294 ] };
1306
1307     include "level3(ralt_switch)"
1308     include "compose(rctrl)"
1309 };
1310
1311 partial alphanumeric_keys
1312 xkb_symbols "crd" {
1313
1314   include "us"
1315
1316   name[Group1]= "Couer D'alene Salish";
1317
1318   // Alphanumeric section
1319   key <AD02> { [         w,           W, U02B7, U02B7 ] }; 
1320   key <AE07> { [         7,   ampersand, U0294        ] }; 
1321   key <AD01> { [         q,           Q, U221A        ] }; 
1322   key <AB04> { [         v,           V, U0259        ] }; 
1323   key <BKSL> { [ backslash,         bar, U026B        ] }; 
1324   key <AD03> { [         e,           E, U025B        ] }; 
1325   key <AD08> { [         i,           I, U026A        ] }; 
1326   key <AC07> { [         j,           J, U01F0        ] }; 
1327   key <AE06> { [         6, asciicircum, U0295        ] }; 
1328   key <AC02> { [         s,           S, U0161        ] }; 
1329   key <AB03> { [         c,           C, U010D        ] }; 
1330   key <AD09> { [         o,           O, U0254        ] }; 
1331   key <AB09> { [    period,     greater, U0323        ] }; 
1332
1333   include "level3(ralt_switch)"
1334   include "compose(rctrl)"
1335
1336   // End alphanumeric section
1337 };