Home | History | Annotate | Line # | Download | only in symbols
cn revision 1.1.1.3
      1 // $XKeyboardConfig$
      2 //
      3 
      4 //
      5 // Default Chinese is the same as American
      6 //
      7 partial default alphanumeric_keys 
      8 xkb_symbols "basic" {
      9     include "us(basic)"
     10 
     11     name[Group1]= "China";
     12 };
     13 
     14 // Tibetan Standard Keyboard map for XKB/X.org
     15 //
     16 // Based on the CNS Tibetan keyboard as supported by Windows Vista
     17 // using information published by Tashi Tsering:
     18 // http://www.yalasoo.com/English/docs/yalasoo_en_MStbKb.html
     19 //
     20 // XKB version by Rich Felker <dalias (a] aerifal.cx>.
     21 //
     22 // The CNS Tibetan keyboard standard specifies 5 keyboards worth of keys,
     23 // but apparently makes no requirements about how each is accessed. Only
     24 // the first 2 are needed for native Tibetan text; the remainder are
     25 // filled with special symbols and letters for transliterating foreign
     26 // text. Further, CNS leaves the level of support of keyboards 2-5 as an
     27 // option to the implementor (despite the fact that #2 is absolutely
     28 // essential...). Windows Vista maps them as follows:
     29 //
     30 // 1. Unshifted
     31 // 2. "m"-key-prefixed
     32 // 3. Shift-modified
     33 // 4. Ctrl+Alt+Shift-modified
     34 // 5. "M"-key-prefixed
     35 //
     36 // I roughly copy the Windows Vista mapping, which was intended by the
     37 // designer of the keyboard, with the following exceptions:
     38 //
     39 // The fifth keyboard is almost empty and contains only precomposed forms
     40 // of subjoined letter characters whose use is strongly discouraged, and
     41 // is not implemented at all in this XKB map. The fourth is implemented,
     42 // but is accessed by an "m"-prefix (or "M"-prefix, for convenience)
     43 // followed by a Shift-modified key. This avoids stealing the Ctrl and Alt
     44 // keys, which belong to applications on *nix and not to the keyboard or
     45 // input method. Aside from enterring rare special symbols and
     46 // foreign-word-transliteration letters, these differences should not
     47 // affect users.
     48 //
     49 // Implementation notes:
     50 //
     51 // A latching ISO Level3 shift is used for the "m"-prefix modifier. In
     52 // principle moving it to other keys (e.g. AltGr) would be possible
     53 // according to user preference, but this is not practical for typing
     54 // Tibetan, since the subjoined consonants, of which Tibetan has 0-2 per
     55 // syllable, are accessed via this mechanism.
     56 //
     57 // One annoyance is that the latching Level3 shift fails to work if the
     58 // previous key is not yet released when "m" is pressed (the key release
     59 // event kills the latch). I consider this a bug in X and don't know an
     60 // easy way to work around it. Complain to the maintainers if it bothers
     61 // you and maybe they'll find a fix. You won't notice it unless you're
     62 // fast at typing Tibetan anyway.
     63 
     64 partial alphanumeric_keys 
     65 xkb_symbols "tib" {
     66 
     67     name[Group1]= "China - Tibetan";
     68 
     69     key <TLDE> { [ 0x1000f68, 0x1000f01, 0x1000fb8, 0x1000f00 ] }; #    
     70     key <AE01> { [ 0x1000f21, 0x1000f2a, 0x1000f04, 0x1000f76 ] }; #    
     71     key <AE02> { [ 0x1000f22, 0x1000f2b, 0x1000f05, 0x1000f77 ] }; #    
     72     key <AE03> { [ 0x1000f23, 0x1000f2c, 0x1000f7e, 0x1000f78 ] }; #    
     73     key <AE04> { [ 0x1000f24, 0x1000f2d, 0x1000f83, 0x1000f79 ] }; #    
     74     key <AE05> { [ 0x1000f25, 0x1000f2e, 0x1000f37, 0x1000f81 ] }; #    
     75     key <AE06> { [ 0x1000f26, 0x1000f2f, 0x1000f35, 0x1000f09 ] }; #    
     76     key <AE07> { [ 0x1000f27, 0x1000f30, 0x1000f7f, 0x1000f0a ] }; #    
     77     key <AE08> { [ 0x1000f28, 0x1000f31, 0x1000f14, 0x1000f0f ] }; #    
     78     key <AE09> { [ 0x1000f29, 0x1000f32, 0x1000f11, 0x1000f10 ] }; #    
     79     key <AE10> { [ 0x1000f20, 0x1000f33, 0x1000f08, 0x1000f12 ] }; #    
     80     key <AE11> { [ 0x1000f67, 0x1000f3c, 0x1000fb7, 0x1000f0c ] }; #    
     81     key <AE12> { [ 0x1000f5d, 0x1000f3d, 0x1000fba, 0x1000f13 ] }; #    
     82 
     83     key <AD01> { [ 0x1000f45, 0x1000f15, 0x1000f95, 0x1000f89 ] }; #    
     84     key <AD02> { [ 0x1000f46, 0x1000f16, 0x1000f96, 0x1000f88 ] }; #    
     85     key <AD03> { [ 0x1000f7a, 0x1000f17, 0x1000f7b, 0x1000fbe ] }; #    
     86     key <AD04> { [ 0x1000f62, 0x1000fbc, 0x1000fb2, 0x1000f6a ] }; #    
     87     key <AD05> { [ 0x1000f4f, 0x1000f4a, 0x1000f9f, 0x1000f9a ] }; #    
     88     key <AD06> { [ 0x1000f61, 0x1000fbb, 0x1000fb1, 0x1000fbf ] }; #    
     89     key <AD07> { [ 0x1000f74, 0x1000f18, 0x1000fad, 0x1000f75 ] }; #    
     90     key <AD08> { [ 0x1000f72, 0x1000f19, 0x1000f80, 0x1000f73 ] }; #    
     91     key <AD09> { [ 0x1000f7c, 0x1000f1a, 0x1000f7d, 0x1000fc0 ] }; #    
     92     key <AD10> { [ 0x1000f55, 0x1000f1b, 0x1000fa5, 0x1000fc1 ] }; #    
     93     key <AD11> { [ 0x1000f59, 0x1000f1c, 0x1000fa9, 0x1000fc2 ] }; #    
     94     key <AD12> { [ 0x1000f5a, 0x1000f1d, 0x1000faa, 0x1000fc3 ] }; #    
     95     key <BKSL> { [ 0x1000f5b, 0x1000f1e, 0x1000fab, 0x1000f5c ] }; #    
     96 
     97     key <AC01> { [ 0x1000f60, 0x1000f71, 0x1000fb0, 0x1000fc4 ] }; #    
     98     key <AC02> { [ 0x1000f66, 0x1000f1f, 0x1000fb6, 0x1000fc5 ] }; #    
     99     key <AC03> { [ 0x1000f51, 0x1000f4c, 0x1000fa1, 0x1000f9c ] }; #    
    100     key <AC04> { [ 0x1000f56, 0x1000f3e, 0x1000fa6, 0x1000f57 ] }; #    
    101     key <AC05> { [ 0x1000f44, 0x1000f3f, 0x1000f94, 0x1000fc6 ] }; #    
    102     key <AC06> { [ 0x1000f58, 0x1000fcf, 0x1000fa8, 0x1000fc7 ] }; #    
    103     key <AC07> { [ 0x1000f0b, 0x1000f02, 0x1000f84, 0x1000fc8 ] }; #    
    104     key <AC08> { [ 0x1000f42, 0x1000f03, 0x1000f92, 0x1000f43 ] }; #    
    105     key <AC09> { [ 0x1000f63, 0x1000f06, 0x1000fb3, 0x1000fc9 ] }; #    
    106     key <AC10> { [ 0x1000f5e, 0x1000f07, 0x1000fae, 0x1000fca ] }; #    
    107     key <AC11> { [ 0x1000f0d, 0x1000f38, 0x1000f0e, 0x1000fcb ] }; #    
    108 
    109     key <AB01> { [ 0x1000f5f, 0x1000f34, 0x1000faf, 0x1000fcc ] }; #    
    110     key <AB02> { [ 0x1000f64, 0x1000f65, 0x1000fb4, 0x1000fb5 ] }; #    
    111     key <AB03> { [ 0x1000f40, 0x1000f69, 0x1000f90, 0x1000fb9 ] }; #    
    112     key <AB04> { [ 0x1000f41, 0x1000f87, 0x1000f91, 0x1000f36 ] }; #    
    113     key <AB05> { [ 0x1000f54, 0x1000f86, 0x1000fa4, 0x1000f82 ] }; #    
    114     key <AB06> { [ 0x1000f53, 0x1000f4e, 0x1000fa3, 0x1000f9e ] }; #    
    115     key <AB07> { [ ISO_Level3_Latch, ISO_Level3_Latch, 0x1000f85, 0x1000f52 ] }; # -  
    116     key <AB08> { [ 0x1000f50, 0x1000f4b, 0x1000fa0, 0x1000f9b ] }; #    
    117     key <AB09> { [ 0x1000f47, 0x1000f3a, 0x1000f97, 0x1000f8b ] }; #    
    118     key <AB10> { [ 0x1000f49, 0x1000f3b, 0x1000f99, 0x1000f8a ] }; #    
    119  
    120 };
    121 
    122 // Tibetan Standard Keyboard with ASCII numerals
    123 //
    124 // Users may prefer that the numeral keys enter ASCII numerals instead of
    125 // Tibetan numerals, since the latter are not in modern use in Tibet.
    126 // This is especially an issue for laptop users who do not have a numeric
    127 // keypad by which to access the ASCII numerals, and who need to type
    128 // numbers to be interpreted by applications.
    129 //
    130 // In this mapping, the Shift-modified numeral keys generate Tibetan
    131 // numerals, since it was unclear to me that the standard Latin punctuation
    132 // keys would be any use without Latin letters. (One can imagine wanting to
    133 // type an email address using the @ sign, but as of present non-ASCII
    134 // email addresses are not possible.) This mapping may change in the future
    135 // if a clearly better use for the shifted numerals is pointed out by users.
    136 
    137 partial alphanumeric_keys 
    138 xkb_symbols "tib_asciinum" {
    139     include "cn(tib)"
    140 
    141     name[Group1]= "China - Tibetan (with ASCII numerals)";
    142 
    143     key <AE01> { [ 1, 0x1000f21, 0x1000f04, 0x1000f76 ] }; # 1   
    144     key <AE02> { [ 2, 0x1000f22, 0x1000f05, 0x1000f77 ] }; # 2   
    145     key <AE03> { [ 3, 0x1000f23, 0x1000f7e, 0x1000f78 ] }; # 3   
    146     key <AE04> { [ 4, 0x1000f24, 0x1000f83, 0x1000f79 ] }; # 4   
    147     key <AE05> { [ 5, 0x1000f25, 0x1000f37, 0x1000f81 ] }; # 5   
    148     key <AE06> { [ 6, 0x1000f26, 0x1000f35, 0x1000f09 ] }; # 6   
    149     key <AE07> { [ 7, 0x1000f27, 0x1000f7f, 0x1000f0a ] }; # 7   
    150     key <AE08> { [ 8, 0x1000f28, 0x1000f14, 0x1000f0f ] }; # 8   
    151     key <AE09> { [ 9, 0x1000f29, 0x1000f11, 0x1000f10 ] }; # 9   
    152     key <AE10> { [ 0, 0x1000f20, 0x1000f08, 0x1000f12 ] }; # 0   
    153 };
    154 
    155 // Uyghur Standard Keyboard map for XKB/X.org
    156 //
    157 // xkb version originally created by
    158 // Abdusalam Abdurahman <Abdusalam.Abdurahman (a] gmail.com>
    159 // slightly corrected according to feedback and submitted by
    160 // Ekrem Tomur <ekrem.tomur (a] gmail.com>
    161 
    162 partial alphanumeric_keys 
    163 xkb_symbols "uig" {
    164 
    165     name[Group1]= "China - Uyghur";
    166 
    167     key <TLDE> { [ grave,            asciitilde           ] };
    168 
    169     key <AE01> { [ 1,                exclam               ] };  // 1 !
    170     key <AE02> { [ 2,                at                   ] };  // 2 @
    171     key <AE03> { [ 3,                numbersign           ] };  // 3 # 
    172     key <AE04> { [ 4,                dollar               ] };  // 4 $
    173     key <AE05> { [ 5,                percent              ] };  // 5 %
    174     key <AE06> { [ 6,                asciicircum          ] };  // 6 ^
    175     key <AE07> { [ 7,                ampersand            ] };  // 7 &
    176     key <AE08> { [ 8,                asterisk             ] };  // 8 *
    177     key <AE09> { [ 9,                parenright           ] };  // 9 )
    178     key <AE10> { [ 0,                parenleft            ] };  // 0 (
    179     key <AE11> { [ minus,            0x1002014            ] };  // - 
    180     key <AE12> { [ equal,            plus                 ] };  // = +
    181 
    182     key <AD01> { [ 0x1000686,        VoidSymbol           ] };  // 
    183     key <AD02> { [ 0x10006cb,        VoidSymbol           ] };  // 
    184     key <AD03> { [ 0x10006d0,        VoidSymbol           ] };  // 
    185     key <AD04> { [ 0x1000631,        VoidSymbol           ] };  // 
    186     key <AD05> { [ 0x100062a,        VoidSymbol           ] };  // 
    187     key <AD06> { [ 0x100064a,        VoidSymbol           ] };  // 
    188     key <AD07> { [ 0x10006c7,        VoidSymbol           ] };  // 
    189     key <AD08> { [ 0x10006ad,        VoidSymbol           ] };  // 
    190     key <AD09> { [ 0x1000648,        VoidSymbol           ] };  // 
    191     key <AD10> { [ 0x100067e,        VoidSymbol           ] };  // 
    192     key <AD11> { [ bracketright,     guillemotright       ] };  // ] 
    193     key <AD12> { [ bracketleft,      guillemotleft        ] };  // [ 
    194 
    195     key <AC01> { [ 0x10006be,        VoidSymbol           ] };  // 
    196     key <AC02> { [ 0x1000633,        VoidSymbol           ] };  // 
    197     key <AC03> { [ 0x100062f,        0x1000698            ] };  //  
    198     key <AC04> { [ 0x1000627,        0x1000641            ] };  //  
    199     key <AC05> { [ 0x10006d5,        0x10006af            ] };  //  
    200     key <AC06> { [ 0x1000649,        0x100062e            ] };  //  
    201     key <AC07> { [ 0x1000642,        0x100062c            ] };  //  
    202     key <AC08> { [ 0x1000643,        0x10006c6            ] };  //  
    203     key <AC09> { [ 0x1000644,        VoidSymbol           ] };  // 
    204     key <AC10> { [ Arabic_semicolon, colon                ] };  //  :
    205     key <AC11> { [ apostrophe,	     quotedbl             ] };  // ' "
    206 
    207     key <AB01> { [ 0x1000632,        VoidSymbol           ] };  // 
    208     key <AB02> { [ 0x1000634,        VoidSymbol           ] };  // 
    209     key <AB03> { [ 0x100063a,        VoidSymbol           ] };  // 
    210     key <AB04> { [ 0x10006c8,        VoidSymbol           ] };  // 
    211     key <AB05> { [ 0x1000628,        VoidSymbol           ] };  // 
    212     key <AB06> { [ 0x1000646,        VoidSymbol           ] };  // 
    213     key <AB07> { [ 0x1000645,        VoidSymbol           ] };  // 
    214     key <AB08> { [ Arabic_comma,     0x100203a            ] };  //  
    215     key <AB09> { [ period,           0x1002039            ] };  // . 
    216     key <AB10> { [ 0x1000626,        Arabic_question_mark ] };  //  
    217 
    218     key <BKSL> { [ backslash,        bar                  ] };  // \ |
    219 };
    220 
    221