Remove extant reference to the `symbols/extras' directory
[xorg/xkeyboard-config] / symbols / lk
1 // X Keyboard Extension file for Sinhala (Sri Lanka) (2004-04-22)
2 // Maintainer  : Harshula Jayasuriya <harshula@gmail.com>
3 // Last Updated: 2011-05-25
4 // This is a phonetic static mapping for a standard US-English keyboard
5 // (qwerty)
6 // http://www.nongnu.org/sinhala/doc/keymaps/sinhala-keyboard_3.html
7
8 // Repaya, Rakaransaya and Yansaya aren't inserted with A-r, R and Y,
9 // respectively. The problem lies with the XKB infrastructure which
10 // only allows a one-to-one mapping of keycodes to Unicode codepoints.
11 // Unfortunately, the 3 mentioned glyphs actually consists of 3
12 // Unicode codepoints each. The result is that the user must
13 // manually construct the glyph by typing each of the 3 codepoints.
14 // ALT-, represents the 'JOIN' key, it requires
15 // two codepoints, hence it also has to be manually constructed.
16 // Similarly, ALT-/ representing the 'TOUCH' key requires
17 // two codepoints.
18
19 // Repaya = rayanna,AL,ZWJ
20 // Rakaransaya = AL,ZWJ,rayanna
21 // Yansaya = AL,ZWJ,yayanna
22 // JOIN = AL,ZWJ
23 // TOUCH = ZWJ,AL
24
25 // Where,
26 // AL = Al Lakuna = ALT-a
27 // ZWJ = Zero Width Joiner = ALT-/
28 // rayanna = r
29 // yayanna = y
30
31 partial default alphanumeric_keys
32 xkb_symbols "sin_phonetic" {
33
34   include "us"
35   name[Group1] = "Sinhala (phonetic)";
36   key.type[Group1] = "FOUR_LEVEL";
37
38   // q - p
39   key <AD01> { [ Sinh_ri, Sinh_rii, Sinh_ru2, Sinh_ruu2 ] };
40   key <AD02> { [ Sinh_ae, Sinh_aee, Sinh_ae2, Sinh_aee2 ] };
41   key <AD03> { [ Sinh_e, Sinh_ee, Sinh_e2, Sinh_ee2 ] };
42   key <AD04> { [ Sinh_ra, Sinh_al, Sinh_ra, NoSymbol ] };
43   key <AD05> { [ Sinh_tha, Sinh_thha, Sinh_tta, Sinh_ttha ] };
44   key <AD06> { [ Sinh_ya, Sinh_al, NoSymbol, NoSymbol ] };
45   key <AD07> { [ Sinh_u, Sinh_uu, Sinh_u2, Sinh_uu2 ] };
46   key <AD08> { [ Sinh_i, Sinh_ii, Sinh_i2, Sinh_ii2 ] };
47   key <AD09> { [ Sinh_o, Sinh_oo, Sinh_o2, Sinh_oo2 ] };
48   key <AD10> { [ Sinh_pa, Sinh_pha, NoSymbol, NoSymbol ] };
49
50   // a - l
51   key <AC01> { [ Sinh_a, Sinh_aa, Sinh_al, Sinh_aa2 ] };
52   key <AC02> { [ Sinh_sa, Sinh_sha, Sinh_ssha, NoSymbol ] };
53   key <AC03> { [ Sinh_dha, Sinh_dhha, Sinh_dda, Sinh_ddha ] };
54   key <AC04> { [ Sinh_fa, NoSymbol, Sinh_ai2, Sinh_ai ] };
55   key <AC05> { [ Sinh_ga, Sinh_gha, Sinh_nga, NoSymbol ] };
56   key <AC06> { [ Sinh_ha, Sinh_h2, Sinh_au2, Sinh_au ] };
57   key <AC07> { [ Sinh_ja, Sinh_jha, Sinh_nja, NoSymbol ] };
58   key <AC08> { [ Sinh_ka, Sinh_kha, Sinh_lu, Sinh_luu ] };
59   key <AC09> { [ Sinh_la, Sinh_lla, Sinh_lu2, Sinh_luu2 ] };
60
61   // z - ?
62   key <AB01> { [ Sinh_nya, Sinh_jnya, NoSymbol, NoSymbol ] };
63   key <AB02> { [ Sinh_ndha, Sinh_ndda, NoSymbol, NoSymbol ] };
64   key <AB03> { [ Sinh_ca, Sinh_cha, NoSymbol, NoSymbol ] };
65   key <AB04> { [ Sinh_va, NoSymbol, NoSymbol, NoSymbol ] };
66   key <AB05> { [ Sinh_ba, Sinh_bha, NoSymbol, NoSymbol ] };
67   key <AB06> { [ Sinh_na, Sinh_nna, Sinh_ng, Sinh_ng2 ] };
68   key <AB07> { [ Sinh_ma, Sinh_mba, NoSymbol, NoSymbol ] };
69   key <AB08> { [ any, any, Sinh_al, NoSymbol ] };
70   key <AB09> { [ any, any, Sinh_kunddaliya, NoSymbol ] };
71   key <AB10> { [ any, any, 0x100200d, NoSymbol ] };
72
73   // Space
74   include "nbsp(nb2zwnj3s)"
75
76   include "level3(ralt_switch)"
77 };
78
79 partial alphanumeric_keys
80 xkb_symbols "tam_unicode" {
81     include "in(tam_unicode)"
82     name[Group1]= "Tamil (Sri Lanka, Unicode)";
83 };
84
85 partial alphanumeric_keys
86 xkb_symbols "tam_TAB" {
87     include "in(tam_TAB)"
88     name[Group1]= "Tamil (Sri Lanka, TAB Typewriter)";
89 };
90