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