Debian Codegraph @

symbols/bg

raw
1 // Keyboard layouts for Bulgaria.
2
3 //////////////////////////////////////////////////////////////////////////
4 // Copyright (C) 1999, 2000, 2007, 2009 by Anton Zinoviev <[email protected]>
5 //
6 // This software may be used, modified, copied, distributed, and sold,
7 // both in source and binary form provided that the above copyright
8 // notice and these terms are retained. The name of the author may not
9 // be used to endorse or promote products derived from this software
10 // without prior permission. THIS SOFTWARE IS PROVIDED "AS IS" AND
11 // ANY EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED. IN NO EVENT
12 // SHALL THE AUTHOR BE LIABLE FOR ANY DAMAGES ARISING IN ANY WAY OUT
13 // OF THE USE OF THIS SOFTWARE.
14 //
15 //////////////////////////////////////////////////////////////////////////
16 // Version 2.0
17
18 // The following variants are defined in this file:
19
20 // "bds" - the BDS keyboard layout compliant with the proposed
21 // Bulgarian state standard BDS 5237:2006
22
23 // "bekl" - the „enhanced“ variant of the Bulgarian BDS keyboard,
24 // proposed in May 2020.
25
26 // "phonetic" - the phonetic Bulgarian layout with the traditional position
27 // of the letters
28
29 // "bas_phonetic" - the phonetic keyboard layout compliant with the
30 // proposed Bulgarian state standard BDS 5237:2006
31
32 // "latin" - an extended variant of the QWERTY layout with symbols that
33 // Bulgarian users will type while the keyboard is in Latin mode
34
35 // The reasons behind the layout of the symbols in levels 3 and 4 are
36 // explained in http://arxiv.org/abs/0905.0484 (in Bulgarian).
37
38 // Two notes for the maintainers of xkeyboard-config:
39
40 // 1. Please do not use key names such as <LatQ> for the Bulgarian
41 // phonetic layouts. The placement of the symbols must stay always
42 // the same regardless of which one of the alias sets in
43 // xkb/keycodes/aliases is used.
44
45 // 2. The layouts should not include level3(ralt_switch).
46
47 //////////////////////////////////////////////////////////////////////////
48
49 // Describes Bulgarian keyboard "BDS" according to the new state standard
50 // BDS 5237:2006 and extended with symbols in levels 3 and 4.
51 default partial alphanumeric_keys
52 xkb_symbols "bds" {
53
54 name[Group1]= "Bulgarian";
55
56 key <TLDE> {[ parenleft, parenright, bracketleft, bracketright ]};
57 key <AE01> {[ 1, exclam ]};
58 key <AE02> {[ 2, question ]};
59 key <AE03> {[ 3, plus, dagger, dagger ]};
60 key <AE04> {[ 4, quotedbl ]};
61 key <AE05> {[ 5, percent, U2329, U232A ]};
62 key <AE06> {[ 6, equal, emdash, emdash ]};
63 key <AE07> {[ 7, colon, ellipsis, ellipsis ]};
64 key <AE08> {[ 8, slash, U0300, U0301 ]};
65 key <AE09> {[ 9, endash ]};
66 key <AE10> {[ 0, numerosign ]};
67 key <AE11> {[ minus, dollar, U2011, EuroSign ]};
68 key <AE12> {[ period, EuroSign ]};
69
70 key <AD01> {[ comma, Cyrillic_yeru, rightsinglequotemark, leftsinglequotemark ]};
71 key <AD02> {[ Cyrillic_u, Cyrillic_U ]};
72 key <AD03> {[ Cyrillic_ie, Cyrillic_IE, Cyrillic_e, Cyrillic_E ]};
73 key <AD04> {[ Cyrillic_i, Cyrillic_I, U045D, U040D ]};
74 key <AD05> {[ Cyrillic_sha, Cyrillic_SHA ]};
75 key <AD06> {[ Cyrillic_shcha, Cyrillic_SHCHA ]};
76 key <AD07> {[ Cyrillic_ka, Cyrillic_KA, copyright, copyright ]};
77 key <AD08> {[ Cyrillic_es, Cyrillic_ES, copyright, copyright ]};
78 key <AD09> {[ Cyrillic_de, Cyrillic_DE ]};
79 key <AD10> {[ Cyrillic_ze, Cyrillic_ZE ]};
80 key <AD11> {[ Cyrillic_tse, Cyrillic_TSE ]};
81 key <AD12> {[ semicolon, section ]};
82
83 key <AC01> {[ Cyrillic_softsign, U045D, Cyrillic_yeru, Cyrillic_YERU ]};
84 key <AC02> {[ Cyrillic_ya, Cyrillic_YA, U0463, U0462 ]};
85 key <AC03> {[ Cyrillic_a, Cyrillic_A ]};
86 key <AC04> {[ Cyrillic_o, Cyrillic_O ]};
87 key <AC05> {[ Cyrillic_zhe, Cyrillic_ZHE ]};
88 key <AC06> {[ Cyrillic_ghe, Cyrillic_GHE ]};
89 key <AC07> {[ Cyrillic_te, Cyrillic_TE, trademark, trademark ]};
90 key <AC08> {[ Cyrillic_en, Cyrillic_EN ]};
91 key <AC09> {[ Cyrillic_ve, Cyrillic_VE ]};
92 key <AC10> {[ Cyrillic_em, Cyrillic_EM ]};
93 key <AC11> {[ Cyrillic_che, Cyrillic_CHE ]};
94 key <BKSL> {[ doublelowquotemark, leftdoublequotemark, guillemotleft, guillemotright ]};
95
96 key <LSGT> {[ U045D, U040D ]};
97 key <AB01> {[ Cyrillic_yu, Cyrillic_YU ]};
98 key <AB02> {[ Cyrillic_shorti, Cyrillic_SHORTI, U046D, U046C ]};
99 key <AB03> {[ Cyrillic_hardsign, Cyrillic_HARDSIGN, U046B, U046A ]};
100 key <AB04> {[ Cyrillic_e, Cyrillic_E ]};
101 key <AB05> {[ Cyrillic_ef, Cyrillic_EF ]};
102 key <AB06> {[ Cyrillic_ha, Cyrillic_HA ]};
103 key <AB07> {[ Cyrillic_pe, Cyrillic_PE ]};
104 key <AB08> {[ Cyrillic_er, Cyrillic_ER, registered, registered ]};
105 key <AB09> {[ Cyrillic_el, Cyrillic_EL ]};
106 key <AB10> {[ Cyrillic_be, Cyrillic_BE ]};
107
108 key <SPCE> {[ space, space, nobreakspace, nobreakspace ]};
109
110 key <KPDL> { type[Group1] = "KEYPAD", [ KP_Delete, KP_Separator ]};
111 };
112
113 // This is a slightly enhanced variant of the Bulgarian BDS keyboard,
114 // proposed in May 2020 by a group of more than 500 linguists, teachers,
115 // writers, translators, IT specialists, professors and many more.
116 partial alphanumeric_keys
117 xkb_symbols "bekl" {
118
119 include "bg(bds)"
120
121 name[Group1]= "Bulgarian (enhanced)";
122
123 key <AE02> {[ 2, question, at, at ]};
124 key <AD01> {[ comma, U02BC, rightsinglequotemark, leftsinglequotemark ]};
125 key <AB04> {[ U0463, U0462 ]};
126 };
127
128
129 // This is an improved variant of the traditional Bulgarian phonetic
130 // keyboard. Some unnecessary symbols in levels 1 and 2 are replaced
131 // by more useful ones (similar as in "bas_phonetic") and additional
132 // symbols are added in levels 3 and 4.
133 partial alphanumeric_keys
134 xkb_symbols "phonetic" {
135 name[Group1]= "Bulgarian (traditional phonetic)";
136
137 key <TLDE> {[ Cyrillic_che, Cyrillic_CHE ]};
138 key <AE01> {[ 1, exclam ]};
139 key <AE02> {[ 2, at ]};
140 key <AE03> {[ 3, numerosign ]};
141 key <AE04> {[ 4, dollar, EuroSign, EuroSign ]};
142 key <AE05> {[ 5, percent ]};
143 key <AE06> {[ 6, EuroSign ]};
144 key <AE07> {[ 7, section ]};
145 key <AE08> {[ 8, asterisk ]};
146 key <AE09> {[ 9, parenleft, bracketleft, U2329 ]};
147 key <AE10> {[ 0, parenright, bracketright, U232A ]};
148 key <AE11> {[ minus, endash, U2011, U2011 ]};
149 key <AE12> {[ equal, plus, emdash, dagger ]};
150
151 key <AD01> {[ Cyrillic_ya, Cyrillic_YA, U0463, U0462 ]};
152 key <AD02> {[ Cyrillic_ve, Cyrillic_VE ]};
153 key <AD03> {[ Cyrillic_ie, Cyrillic_IE, Cyrillic_e, Cyrillic_E ]};
154 key <AD04> {[ Cyrillic_er, Cyrillic_ER, registered, registered ]};
155 key <AD05> {[ Cyrillic_te, Cyrillic_TE, trademark, trademark ]};
156 key <AD06> {[ Cyrillic_hardsign, Cyrillic_HARDSIGN, U046B, U046A ]};
157 key <AD07> {[ Cyrillic_u, Cyrillic_U ]};
158 key <AD08> {[ Cyrillic_i, Cyrillic_I, U045D, U040D ]};
159 key <AD09> {[ Cyrillic_o, Cyrillic_O ]};
160 key <AD10> {[ Cyrillic_pe, Cyrillic_PE ]};
161 key <AD11> {[ Cyrillic_sha, Cyrillic_SHA ]};
162 key <AD12> {[ Cyrillic_shcha, Cyrillic_SHCHA ]};
163
164 key <AC01> {[ Cyrillic_a, Cyrillic_A ]};
165 key <AC02> {[ Cyrillic_es, Cyrillic_ES, copyright, copyright ]};
166 key <AC03> {[ Cyrillic_de, Cyrillic_DE ]};
167 key <AC04> {[ Cyrillic_ef, Cyrillic_EF ]};
168 key <AC05> {[ Cyrillic_ghe, Cyrillic_GHE ]};
169 key <AC06> {[ Cyrillic_ha, Cyrillic_HA ]};
170 key <AC07> {[ Cyrillic_shorti, Cyrillic_SHORTI, U046D, U046C ]};
171 key <AC08> {[ Cyrillic_ka, Cyrillic_KA ]};
172 key <AC09> {[ Cyrillic_el, Cyrillic_EL ]};
173 key <AC10> {[ semicolon, colon, ellipsis, ellipsis ]};
174 key <AC11> {[ apostrophe, quotedbl, rightsinglequotemark, leftsinglequotemark ]};
175 key <BKSL> {[ Cyrillic_yu, Cyrillic_YU ]};
176
177 key <LSGT> {[ U045D, U040D ]};
178 key <AB01> {[ Cyrillic_ze, Cyrillic_ZE ]};
179 key <AB02> {[ Cyrillic_softsign, U045D, Cyrillic_yeru, Cyrillic_YERU ]};
180 key <AB03> {[ Cyrillic_tse, Cyrillic_TSE, copyright, copyright ]};
181 key <AB04> {[ Cyrillic_zhe, Cyrillic_ZHE ]};
182 key <AB05> {[ Cyrillic_be, Cyrillic_BE ]};
183 key <AB06> {[ Cyrillic_en, Cyrillic_EN ]};
184 key <AB07> {[ Cyrillic_em, Cyrillic_EM ]};
185 key <AB08> {[ comma, doublelowquotemark, guillemotleft, guillemotleft ]};
186 key <AB09> {[ period, leftdoublequotemark, guillemotright, guillemotright ]};
187 key <AB10> {[ slash, question, U0300, U0301 ]};
188
189 key <SPCE> {[ space, space, nobreakspace, nobreakspace ]};
190
191 key <KPDL> { type[Group1] = "KEYPAD", [ KP_Delete, KP_Separator ]};
192 };
193
194 // This is the Bulgarian phonetic keyboard according to the proposed
195 // state standard BDS 5237:2006 with additional symbols in levels 3 and 4.
196 partial alphanumeric_keys
197 xkb_symbols "bas_phonetic" {
198 include "bg(phonetic)"
199 name[Group1]= "Bulgarian (new phonetic)";
200
201 key <TLDE> {[ Cyrillic_yu, Cyrillic_YU ]};
202 key <AD01> {[ Cyrillic_che, Cyrillic_CHE ]};
203 key <AD02> {[ Cyrillic_sha, Cyrillic_SHA ]};
204 key <AD11> {[ Cyrillic_ya, Cyrillic_YA, U0463, U0462 ]};
205 key <BKSL> {[ Cyrillic_softsign, U045D, Cyrillic_yeru, Cyrillic_YERU ]};
206 key <AB02> {[ Cyrillic_zhe, Cyrillic_ZHE ]};
207 key <AB04> {[ Cyrillic_ve, Cyrillic_VE ]};
208 };
209
210
211 // This is an extended variant of the standard Latin QWERTY layout with
212 // additional symbols in levels 3 and 4.
213 hidden partial alphanumeric_keys
214 xkb_symbols "latin" {
215
216 key <TLDE> {[ grave, asciitilde, U2248, U2245 ]};
217 key <AE01> {[ 1, exclam, notsign, notsign ]};
218 key <AE02> {[ 2, at, twosuperior, enfilledcircbullet ]};
219 key <AE03> {[ 3, numbersign, threesuperior, notequal ]};
220 key <AE04> {[ 4, dollar, EuroSign, sterling ]};
221 key <AE05> {[ 5, percent, permille, permille ]};
222 key <AE06> {[ 6, asciicircum, logicaland, logicalor ]};
223 key <AE07> {[ 7, ampersand, section, section ]};
224 key <AE08> {[ 8, asterisk, infinity, multiply ]};
225 key <AE09> {[ 9, parenleft, U2202, nabla ]};
226 key <AE10> {[ 0, parenright, U2300, U2300 ]};
227 key <AE11> {[ minus, underscore, U2011, endash ]};
228 key <AE12> {[ equal, plus, emdash, plusminus ]};
229
230 key <AD01> {[ q, Q, Greek_THETA, Greek_theta ]};
231 key <AD02> {[ w, W, Greek_OMEGA, Greek_omega ]};
232 key <AD03> {[ e, E, U2203, Greek_epsilon ]};
233 key <AD04> {[ r, R, registered, Greek_rho ]};
234 key <AD05> {[ t, T, trademark, Greek_tau ]};
235 key <AD06> {[ y, Y, yen, Greek_upsilon ]};
236 key <AD07> {[ u, U, intersection, union ]};
237 key <AD08> {[ i, I, integral, Greek_iota ]};
238 key <AD09> {[ o, O, degree, U222E ]};
239 key <AD10> {[ p, P, Greek_PI, Greek_pi ]};
240 key <AD11> {[ bracketleft, braceleft, U2286, includedin ]};
241 key <AD12> {[ bracketright, braceright, U2208, U2209 ]};
242
243 key <AC01> {[ a, A, U2200, Greek_alpha ]};
244 key <AC02> {[ s, S, Greek_SIGMA, Greek_sigma ]};
245 key <AC03> {[ d, D, Greek_DELTA, Greek_delta ]};
246 key <AC04> {[ f, F, Greek_PHI, Greek_phi ]};
247 key <AC05> {[ g, G, Greek_GAMMA, Greek_gamma ]};
248 key <AC06> {[ h, H, U2225, Greek_eta ]};
249 key <AC07> {[ j, J ]};
250 key <AC08> {[ k, K, U03F0, Greek_kappa ]};
251 key <AC09> {[ l, L, Greek_LAMBDA, Greek_lambda ]};
252 key <AC10> {[ semicolon, colon, division, division ]};
253 key <AC11> {[ apostrophe, quotedbl, leftdoublequotemark, rightdoublequotemark]};
254 key <BKSL> {[ backslash, bar, identical, downtack ]};
255
256 key <LSGT> {[ less, greater, U2266, U2267 ]};
257 key <AB01> {[ z, Z, U2220, Greek_zeta ]};
258 key <AB02> {[ x, X, Greek_XI, Greek_xi ]};
259 key <AB03> {[ c, C, copyright, Greek_chi ]};
260 key <AB04> {[ v, V, Greek_PSI, Greek_psi ]};
261 key <AB05> {[ b, B, U03D1, Greek_beta ]};
262 key <AB06> {[ n, N, U207F, Greek_nu ]};
263 key <AB07> {[ m, M, Greek_mu, Greek_mu ]};
264 key <AB08> {[ comma, less, U2266, U21D4 ]};
265 key <AB09> {[ period, greater, U2267, U21D2 ]};
266 key <AB10> {[ slash, question, leftsinglequotemark, rightsinglequotemark]};
267
268 key <SPCE> {[ space, space, nobreakspace, nobreakspace ]};
269
270 key <KPDL> { type[Group1] = "KEYPAD", [ KP_Delete, KP_Decimal ]};
271 };