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