Debian Codegraph @

symbols/lk

raw
1 // Keyboard layouts for Sri Lanka.
2
3 // Phonetic mapping of Sinhala for a standard US Qwerty keyboard.
4 // Maintainer: Harshula Jayasuriya <[email protected]>
5 // https://www.nongnu.org/sinhala/doc/keymaps/sinhala-keyboard_3.html
6
7 // Repaya, Rakaransaya and Yansaya aren't inserted with AltGr+r, R and Y,
8 // respectively. The problem lies with the XKB infrastructure which
9 // only allows a one-to-one mapping of keycodes to Unicode codepoints.
10 // Unfortunately, the 3 mentioned glyphs actually consists of 3
11 // Unicode codepoints each. The result is that the user must
12 // manually construct the glyph by typing each of the 3 codepoints.
13 // AltGr+, represents the 'JOIN' key, it requires
14 // two codepoints, hence it also has to be manually constructed.
15 // Similarly, AltGr+/ representing the 'TOUCH' key requires
16 // two codepoints.
17
18 // Repaya = rayanna,AL,ZWJ
19 // Rakaransaya = AL,ZWJ,rayanna
20 // Yansaya = AL,ZWJ,yayanna
21 // JOIN = AL,ZWJ
22 // TOUCH = ZWJ,AL
23
24 // Where,
25 // AL = Al Lakuna = AltGr+a
26 // ZWJ = Zero Width Joiner = AltGr+/
27
28 default partial alphanumeric_keys
29 xkb_symbols "sin_phonetic" {
30
31 include "us"
32 name[Group1] = "Sinhala (phonetic)";
33 key.type[Group1] = "FOUR_LEVEL";
34
35 // q - p
36 key <AD01> { [ Sinh_ri, Sinh_rii, Sinh_ru2, Sinh_ruu2 ] };
37 key <AD02> { [ Sinh_ae, Sinh_aee, Sinh_ae2, Sinh_aee2 ] };
38 key <AD03> { [ Sinh_e, Sinh_ee, Sinh_e2, Sinh_ee2 ] };
39 key <AD04> { [ Sinh_ra, Sinh_al, Sinh_ra, none ] };
40 key <AD05> { [ Sinh_tha, Sinh_thha, Sinh_tta, Sinh_ttha ] };
41 key <AD06> { [ Sinh_ya, Sinh_al, none, none ] };
42 key <AD07> { [ Sinh_u, Sinh_uu, Sinh_u2, Sinh_uu2 ] };
43 key <AD08> { [ Sinh_i, Sinh_ii, Sinh_i2, Sinh_ii2 ] };
44 key <AD09> { [ Sinh_o, Sinh_oo, Sinh_o2, Sinh_oo2 ] };
45 key <AD10> { [ Sinh_pa, Sinh_pha, none, none ] };
46
47 // a - l
48 key <AC01> { [ Sinh_a, Sinh_aa, Sinh_al, Sinh_aa2 ] };
49 key <AC02> { [ Sinh_sa, Sinh_sha, Sinh_ssha, none ] };
50 key <AC03> { [ Sinh_dha, Sinh_dhha, Sinh_dda, Sinh_ddha ] };
51 key <AC04> { [ Sinh_fa, none, Sinh_ai2, Sinh_ai ] };
52 key <AC05> { [ Sinh_ga, Sinh_gha, Sinh_nga, none ] };
53 key <AC06> { [ Sinh_ha, Sinh_h2, Sinh_au2, Sinh_au ] };
54 key <AC07> { [ Sinh_ja, Sinh_jha, Sinh_nja, none ] };
55 key <AC08> { [ Sinh_ka, Sinh_kha, Sinh_lu, Sinh_luu ] };
56 key <AC09> { [ Sinh_la, Sinh_lla, Sinh_lu2, Sinh_luu2 ] };
57
58 // z - ?
59 key <AB01> { [ Sinh_nya, Sinh_jnya, none, none ] };
60 key <AB02> { [ Sinh_ndha, Sinh_ndda, none, none ] };
61 key <AB03> { [ Sinh_ca, Sinh_cha, none, none ] };
62 key <AB04> { [ Sinh_va, none, none, none ] };
63 key <AB05> { [ Sinh_ba, Sinh_bha, none, none ] };
64 key <AB06> { [ Sinh_na, Sinh_nna, Sinh_ng, Sinh_ng2 ] };
65 key <AB07> { [ Sinh_ma, Sinh_mba, none, none ] };
66 key <AB08> { [ any, any, Sinh_al, none ] };
67 key <AB09> { [ any, any, Sinh_kunddaliya, none ] };
68 key <AB10> { [ any, any, U200d, none ] }; // ZWJ
69
70 key <SPCE> { [ space, nobreakspace, U200c, any ] }; // ZWNJ
71
72 include "level3(ralt_switch)"
73 };
74
75 partial alphanumeric_keys
76 xkb_symbols "tam_unicode" {
77 include "in(tamilnet)"
78 name[Group1]= "Tamil (Sri Lanka, TamilNet '99)";
79 };
80
81 partial alphanumeric_keys
82 xkb_symbols "tam_TAB" {
83 include "in(tamilnet_TAB)"
84 name[Group1]= "Tamil (Sri Lanka, TamilNet '99, TAB encoding)";
85 };
86
87 // SINHALA - US, SUBSTITUTES SOME AND ADDS SOME
88 // =============================================
89 //
90 // This started as an upgrade to the first romanized version of
91 // Sinhala called PTS Pali created in the 1860s. PTS requires
92 // dots and bars on letters that are rare in fonts, and impossible
93 // to type. Its singular purpose was to print Tripitaka, the
94 // collection of Buddhist discourses.
95 //
96 // This version covers the entire newer Sinhala phoneme chart
97 // (Hodiya) that became standard just before the end of the 19th
98 // century. All the phonemes map to the SBCS. It is easy and
99 // faster than English to type. It overcomes the setback of
100 // Unicode Sinhala that it is not compatible with Pali and
101 // Sanskrit because it encodes two ligatures as base letters and
102 // the SLS1134 specification matching shape and morpheme sets
103 // violating Sanskrit orthography.
104 //
105 // Most importantly, this romanized version of Sinhala has a
106 // companion orthographic font that displays the text in the
107 // native script and a JavaScript converts it to Unicode Sinhala
108 // and back, dramatically increasing Sinhala seen on the web due
109 // to its ease of use.
110 //
111 // Dedication:
112 // Thomas William Rhys Davids, Ven. Udagama Sumangala
113 // Rev. Fr. A. M. Gunasekara, Rev. Fr. Theodore G. Perera
114 // Ven. Mettavihari
115 //
116 // Maintainer:
117 // JC Ahangama - [email protected]
118 //
119 partial alphanumeric_keys modifier_keys
120 xkb_symbols "us" {
121 include "us(basic)"
122 name[Group1]= "Sinhala (US)";
123
124 // plain, Shift, AltGr
125 // -----------------------------------------
126 key <TLDE> {[ grave, asciitilde, none ]};
127 key <AE01> {[ 1, exclam, dead_macron ]};
128 key <AE02> {[ 2, at, dead_belowdot ]};
129 key <AE03> {[ 3, numbersign, dead_abovedot ]};
130 key <AE04> {[ 4, dollar, currency ]};
131 key <AE05> {[ 5, percent, degree ]};
132 key <AE06> {[ 6, asciicircum, onequarter ]};
133 key <AE07> {[ 7, ampersand, onehalf ]};
134 key <AE08> {[ 8, asterisk, threequarters ]};
135 key <AE09> {[ 9, parenleft, none ]};
136 key <AE10> {[ 0, parenright, none ]};
137 key <AE11> {[ minus, underscore, emdash ]};
138 key <AE12> {[ equal, plus, none ]};
139
140 key <AD01> {[ d, D, q ]};
141 key <AD02> {[ ae, acute, none ]};
142 key <AD03> {[ e, eacute, ediaeresis ]};
143 key <AD04> {[ r, ucircumflex, none ]};
144 key <AD05> {[ t, none, none ]};
145 key <AD06> {[ y, none, none ]};
146 key <AD07> {[ u, uacute, udiaeresis ]};
147 key <AD08> {[ i, iacute, idiaeresis ]};
148 key <AD09> {[ o, oacute, odiaeresis ]};
149 key <AD10> {[ p, none, none ]};
150 key <AD11> {[ bracketleft, braceleft, none ]};
151 key <AD12> {[ bracketright, braceright, none ]};
152 key <BKSL> {[ backslash, bar, none ]};
153
154 key <AC01> {[ a, aacute, adiaeresis ]};
155 key <AC02> {[ s, none, none ]};
156 key <AC03> {[ eth, ETH, none ]};
157 key <AC04> {[ thorn, f, none ]};
158 key <AC05> {[ g, G, none ]};
159 key <AC06> {[ h, none, none ]};
160 key <AC07> {[ j, ccedilla, none ]};
161 key <AC08> {[ k, none, none ]};
162 key <AC09> {[ l, L, ocircumflex ]};
163 key <AC10> {[ semicolon, colon, none ]};
164 key <AC11> {[ apostrophe, quotedbl, none ]};
165
166 key <AB01> {[ z, none, none ]};
167 key <AB02> {[ x, none, none ]};
168 key <AB03> {[ c, ccedilla, none ]};
169 key <AB04> {[ v, none, none ]};
170 key <AB05> {[ b, B, none ]};
171 key <AB06> {[ n, N, ntilde ]};
172 key <AB07> {[ m, none, none ]};
173 key <AB08> {[ comma, less, guillemotleft ]};
174 key <AB09> {[ period, greater,guillemotright ]};
175 key <AB10> {[ slash, question, U200C ]}; // ZWJ
176
177 key <SPCE> {[ space, nobreakspace, none ]};
178
179 include "level3(alt_switch)"
180 };