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