3 // X Keyboard Extension file for Sinhala (Sri Lanka) (2004-04-22)
4 // Maintainer : Harshula Jayasuriya <harshula@gmail.com>
5 // Last Updated: 2007-06-29
6 // This is a static phonetic mapping for a standard US-English keyboard
8 // http://www.nongnu.org/sinhala/doc/keymaps/sinhala-keyboard_3.html
10 // Repaya, Rakaransaya and Yansaya aren't inserted with A-r, R and Y,
11 // respectively. The problem lies with the XKB infrastructure which
12 // only allows a one-to-one mapping of keycodes to Unicode codepoints.
13 // Unfortunately, the 3 mentioned glyphs actually consists of 3
14 // Unicode codepoints each. The result is that the user must
15 // manually construct the glyph by typing each of the 3 codepoints.
16 // ALT-, represents the 'JOIN' key, it requires
17 // two codepoints, hence it also has to be manually constructed.
18 // Similarly, ALT-/ representing the 'TOUCH' key requires
21 // Repaya = rayanna,AL,ZWJ
22 // Rakaransaya = AL,ZWJ,rayanna
23 // Yansaya = AL,ZWJ,yayanna
28 // AL = Al Lakuna = ALT-a
29 // ZWJ = Zero Width Joiner = ALT-/
33 partial default alphanumeric_keys
34 xkb_symbols "sin_phonetic" {
37 // it is default - no details in the name
38 name[Group1] = "Sri Lanka";
39 key.type[Group1] = "FOUR_LEVEL";
42 key <AD01> { [ 0x01000d8d, 0x01000d8e, 0x01000dd8, 0x01000df2 ] };
43 key <AD02> { [ 0x01000d87, 0x01000d88, 0x01000dd0, 0x01000dd1 ] };
44 key <AD03> { [ 0x01000d91, 0x01000d92, 0x01000dd9, 0x01000dda ] };
45 key <AD04> { [ 0x01000dbb, 0x01000dca, 0x01000dbb, NoSymbol ] };
46 key <AD05> { [ 0x01000dad, 0x01000dae, 0x01000da7, 0x01000da8 ] };
47 key <AD06> { [ 0x01000dba, 0x01000dca, NoSymbol, NoSymbol ] };
48 key <AD07> { [ 0x01000d8b, 0x01000d8c, 0x01000dd4, 0x01000dd6 ] };
49 key <AD08> { [ 0x01000d89, 0x01000d8a, 0x01000dd2, 0x01000dd3 ] };
50 key <AD09> { [ 0x01000d94, 0x01000d95, 0x01000ddc, 0x01000ddd ] };
51 key <AD10> { [ 0x01000db4, 0x01000db5, NoSymbol, NoSymbol ] };
54 key <AC01> { [ 0x01000d85, 0x01000d86, 0x01000dca, 0x01000dcf ] };
55 key <AC02> { [ 0x01000dc3, 0x01000dc1, 0x01000dc2, NoSymbol ] };
56 key <AC03> { [ 0x01000daf, 0x01000db0, 0x01000da9, 0x01000daa ] };
57 key <AC04> { [ 0x01000dc6, NoSymbol, 0x01000ddb, 0x01000d93 ] };
58 key <AC05> { [ 0x01000d9c, 0x01000d9d, 0x01000d9f, NoSymbol ] };
59 key <AC06> { [ 0x01000dc4, 0x01000d83, 0x01000dde, 0x01000d96 ] };
60 key <AC07> { [ 0x01000da2, 0x01000da3, 0x01000da6, NoSymbol ] };
61 key <AC08> { [ 0x01000d9a, 0x01000d9b, 0x01000d8f, 0x01000d90 ] };
62 key <AC09> { [ 0x01000dbd, 0x01000dc5, 0x01000ddf, 0x01000df3 ] };
65 key <AB01> { [ 0x01000da4, 0x01000da5, NoSymbol, NoSymbol ] };
66 key <AB02> { [ 0x01000db3, 0x01000dac, NoSymbol, NoSymbol ] };
67 key <AB03> { [ 0x01000da0, 0x01000da1, NoSymbol, NoSymbol ] };
68 key <AB04> { [ 0x01000dc0, NoSymbol, NoSymbol, NoSymbol ] };
69 key <AB05> { [ 0x01000db6, 0x01000db7, NoSymbol, NoSymbol ] };
70 key <AB06> { [ 0x01000db1, 0x01000dab, 0x01000d82, 0x01000d9e ] };
71 key <AB07> { [ 0x01000db8, 0x01000db9, NoSymbol, NoSymbol ] };
72 key <AB08> { [ any, any, 0x01000dca, NoSymbol ] };
73 key <AB09> { [ any, any, 0x01000df4, NoSymbol ] };
74 key <AB10> { [ any, any, 0x0100200d, NoSymbol ] };
77 include "nbsp(zwnj2nb3s)";
79 include "level3(ralt_switch)"
82 partial alphanumeric_keys
83 xkb_symbols "tam_unicode" {
84 include "in(tam_unicode)"
85 name[Group1]= "Sri Lanka - Tamil Unicode";
88 partial alphanumeric_keys
89 xkb_symbols "tam_TAB" {
91 name[Group1]= "Sri Lanka - Tamil TAB Typewriter";