hu revision 1.1.1.3 1 1.1 mrg // New style XKB layout for some widely used Hungarian keyboard layouts
2 1.1 mrg //
3 1.1 mrg // Based on old style 'xkb/symbols/hu"
4 1.1 mrg //
5 1.1.1.2 mrg // $XKeyboardConfig$
6 1.1.1.2 mrg // (C) 2002-2004 Sos Pter <sp (a] osb.hu>
7 1.1.1.3 ghen // (C) 2010 Andras Timar <timar (a] fsf.hu>
8 1.1 mrg //
9 1.1 mrg // Permission is granted to anyone to use, distribute and modify
10 1.1 mrg // this file in any way, provided that the above copyright notice
11 1.1 mrg // is left intact and the author of the modification summarizes
12 1.1 mrg // the changes in this header.
13 1.1 mrg //
14 1.1 mrg // This file is distributed without any expressed or implied warranty.
15 1.1 mrg //
16 1.1 mrg // Changes:
17 1.1 mrg // 2004-04-17 - Moved to new style (only Unicode based layouts)
18 1.1 mrg // - Added consistent dead key support
19 1.1 mrg // - Fixed abovedot
20 1.1 mrg // - Added adiaeresis
21 1.1 mrg // - Added EuroSign and cent symbol
22 1.1.1.3 ghen // 2010-04-23 - Added doublelowquotemark
23 1.1.1.3 ghen // - Added rightdoublequotemark
24 1.1.1.3 ghen // - Added endash
25 1.1.1.3 ghen // 2010-05-13 - Added ellipsis
26 1.1 mrg
27 1.1 mrg
28 1.1 mrg // Default layout
29 1.1 mrg default partial
30 1.1 mrg xkb_symbols "basic" {
31 1.1 mrg include "hu(102_qwertz_comma_dead)"
32 1.1 mrg name[Group1] = "Hungary";
33 1.1 mrg };
34 1.1 mrg
35 1.1 mrg // Standard layout
36 1.1 mrg partial
37 1.1 mrg xkb_symbols "standard" {
38 1.1 mrg include "hu(102_qwertz_comma_dead)"
39 1.1 mrg name[Group1] = "Hungary - Standard";
40 1.1 mrg };
41 1.1 mrg
42 1.1 mrg // Standard layout without dead key support
43 1.1 mrg partial
44 1.1 mrg xkb_symbols "nodeadkeys" {
45 1.1 mrg include "hu(102_qwertz_comma_nodead)"
46 1.1 mrg name[Group1] = "Hungary - Eliminate dead keys";
47 1.1 mrg };
48 1.1 mrg
49 1.1 mrg // Qwerty layout
50 1.1 mrg partial
51 1.1 mrg xkb_symbols "qwerty" {
52 1.1 mrg include "hu(101_qwerty_comma_dead)"
53 1.1 mrg name[Group1] = "Hungary - qwerty";
54 1.1 mrg };
55 1.1 mrg
56 1.1 mrg // Main layouts
57 1.1 mrg
58 1.1 mrg // 101_qwertz_comma_dead
59 1.1 mrg // 101 key qwertz layout
60 1.1 mrg // with decimal comma on keypad
61 1.1 mrg // and with dead key support
62 1.1 mrg partial
63 1.1 mrg xkb_symbols "101_qwertz_comma_dead" {
64 1.1 mrg name[Group1] = "Hungary - 101/qwertz/comma/Dead keys";
65 1.1 mrg include "latin"
66 1.1 mrg include "hu(def_101)"
67 1.1 mrg include "hu(def_qwertz)"
68 1.1 mrg include "kpdl(comma)"
69 1.1 mrg include "hu(def_dead)"
70 1.1 mrg include "hu(def_common)"
71 1.1 mrg include "level3(ralt_switch)"
72 1.1 mrg };
73 1.1 mrg
74 1.1 mrg // 101_qwertz_comma_nodead
75 1.1 mrg // 101 key qwertz layout
76 1.1 mrg // with decimal comma on keypad
77 1.1 mrg // and without dead key support
78 1.1 mrg partial
79 1.1 mrg xkb_symbols "101_qwertz_comma_nodead" {
80 1.1 mrg name[Group1] = "Hungary - 101/qwertz/comma/Eliminate dead keys";
81 1.1 mrg include "latin"
82 1.1 mrg include "hu(def_101)"
83 1.1 mrg include "hu(def_qwertz)"
84 1.1 mrg include "kpdl(comma)"
85 1.1 mrg include "hu(def_nodead)"
86 1.1 mrg include "hu(def_common)"
87 1.1 mrg include "level3(ralt_switch)"
88 1.1 mrg };
89 1.1 mrg
90 1.1 mrg // 101_qwertz_dot_dead
91 1.1 mrg // 101 key qwertz layout
92 1.1 mrg // with decimal dot on keypad
93 1.1 mrg // and with dead key support
94 1.1 mrg partial
95 1.1 mrg xkb_symbols "101_qwertz_dot_dead" {
96 1.1 mrg name[Group1] = "Hungary - 101/qwertz/dot/Dead keys";
97 1.1 mrg include "latin"
98 1.1 mrg include "hu(def_101)"
99 1.1 mrg include "hu(def_qwertz)"
100 1.1 mrg include "hu(def_dot)"
101 1.1 mrg include "hu(def_dead)"
102 1.1 mrg include "hu(def_common)"
103 1.1 mrg include "level3(ralt_switch)"
104 1.1 mrg };
105 1.1 mrg
106 1.1 mrg // 101_qwertz_dot_nodead
107 1.1 mrg // 101 key qwertz layout
108 1.1 mrg // with decimal dot on keypad
109 1.1 mrg // and without dead key support
110 1.1 mrg partial
111 1.1 mrg xkb_symbols "101_qwertz_dot_nodead" {
112 1.1 mrg name[Group1] = "Hungary - 101/qwertz/dot/Eliminate dead keys";
113 1.1 mrg include "latin"
114 1.1 mrg include "hu(def_101)"
115 1.1 mrg include "hu(def_qwertz)"
116 1.1 mrg include "hu(def_dot)"
117 1.1 mrg include "hu(def_nodead)"
118 1.1 mrg include "hu(def_common)"
119 1.1 mrg include "level3(ralt_switch)"
120 1.1 mrg };
121 1.1 mrg
122 1.1 mrg // 101_qwerty_comma_dead
123 1.1 mrg // 101 key qwerty layout
124 1.1 mrg // with decimal comma on keypad
125 1.1 mrg // and with dead key support
126 1.1 mrg partial
127 1.1 mrg xkb_symbols "101_qwerty_comma_dead" {
128 1.1 mrg name[Group1] = "Hungary - 101/qwerty/comma/Dead keys";
129 1.1 mrg include "latin"
130 1.1 mrg include "hu(def_101)"
131 1.1 mrg include "hu(def_qwerty)"
132 1.1 mrg include "kpdl(comma)"
133 1.1 mrg include "hu(def_dead)"
134 1.1 mrg include "hu(def_common)"
135 1.1 mrg include "level3(ralt_switch)"
136 1.1 mrg };
137 1.1 mrg
138 1.1 mrg // 101_qwerty_comma_nodead
139 1.1 mrg // 101 key qwerty layout
140 1.1 mrg // with decimal comma on keypad
141 1.1 mrg // and without dead key support
142 1.1 mrg partial
143 1.1 mrg xkb_symbols "101_qwerty_comma_nodead" {
144 1.1 mrg name[Group1] = "Hungary - 101/qwerty/comma/Eliminate dead keys";
145 1.1 mrg include "latin"
146 1.1 mrg include "hu(def_101)"
147 1.1 mrg include "hu(def_qwerty)"
148 1.1 mrg include "kpdl(comma)"
149 1.1 mrg include "hu(def_nodead)"
150 1.1 mrg include "hu(def_common)"
151 1.1 mrg include "level3(ralt_switch)"
152 1.1 mrg };
153 1.1 mrg
154 1.1 mrg // 101_qwerty_dot_dead
155 1.1 mrg // 101 key qwerty layout
156 1.1 mrg // with decimal dot on keypad
157 1.1 mrg // and with dead key support
158 1.1 mrg partial
159 1.1 mrg xkb_symbols "101_qwerty_dot_dead" {
160 1.1 mrg name[Group1] = "Hungary - 101/qwerty/dot/Dead keys";
161 1.1 mrg include "latin"
162 1.1 mrg include "hu(def_101)"
163 1.1 mrg include "hu(def_qwerty)"
164 1.1 mrg include "hu(def_dot)"
165 1.1 mrg include "hu(def_dead)"
166 1.1 mrg include "hu(def_common)"
167 1.1 mrg include "level3(ralt_switch)"
168 1.1 mrg };
169 1.1 mrg
170 1.1 mrg // 101_qwerty_dot_nodead
171 1.1 mrg // 101 key qwerty layout
172 1.1 mrg // with decimal dot on keypad
173 1.1 mrg // and without dead key support
174 1.1 mrg partial
175 1.1 mrg xkb_symbols "101_qwerty_dot_nodead" {
176 1.1 mrg name[Group1] = "Hungary - 101/qwerty/dot/Eliminate dead keys";
177 1.1 mrg include "latin"
178 1.1 mrg include "hu(def_101)"
179 1.1 mrg include "hu(def_qwerty)"
180 1.1 mrg include "hu(def_dot)"
181 1.1 mrg include "hu(def_nodead)"
182 1.1 mrg include "hu(def_common)"
183 1.1 mrg include "level3(ralt_switch)"
184 1.1 mrg };
185 1.1 mrg
186 1.1 mrg // 102_qwertz_comma_dead
187 1.1 mrg // 102 key qwertz layout
188 1.1 mrg // with decimal comma on keypad
189 1.1 mrg // and with dead key support
190 1.1 mrg partial
191 1.1 mrg xkb_symbols "102_qwertz_comma_dead" {
192 1.1 mrg name[Group1] = "Hungary - 102/qwertz/comma/Dead keys";
193 1.1 mrg include "latin"
194 1.1 mrg include "hu(def_102)"
195 1.1 mrg include "hu(def_qwertz)"
196 1.1 mrg include "kpdl(comma)"
197 1.1 mrg include "hu(def_dead)"
198 1.1 mrg include "hu(def_common)"
199 1.1 mrg include "level3(ralt_switch)"
200 1.1 mrg };
201 1.1 mrg
202 1.1 mrg // 102_qwertz_comma_nodead
203 1.1 mrg // 102 key qwertz layout
204 1.1 mrg // with decimal comma on keypad
205 1.1 mrg // and without dead key support
206 1.1 mrg partial
207 1.1 mrg xkb_symbols "102_qwertz_comma_nodead" {
208 1.1 mrg name[Group1] = "Hungary - 102/qwertz/comma/Eliminate dead keys";
209 1.1 mrg include "latin"
210 1.1 mrg include "hu(def_102)"
211 1.1 mrg include "hu(def_qwertz)"
212 1.1 mrg include "kpdl(comma)"
213 1.1 mrg include "hu(def_nodead)"
214 1.1 mrg include "hu(def_common)"
215 1.1 mrg include "level3(ralt_switch)"
216 1.1 mrg };
217 1.1 mrg
218 1.1 mrg // 102_qwertz_dot_dead
219 1.1 mrg // 102 key qwertz layout
220 1.1 mrg // with decimal dot on keypad
221 1.1 mrg // and with dead key support
222 1.1 mrg partial
223 1.1 mrg xkb_symbols "102_qwertz_dot_dead" {
224 1.1 mrg name[Group1] = "Hungary - 102/qwertz/dot/Dead keys";
225 1.1 mrg include "latin"
226 1.1 mrg include "hu(def_102)"
227 1.1 mrg include "hu(def_qwertz)"
228 1.1 mrg include "hu(def_dot)"
229 1.1 mrg include "hu(def_dead)"
230 1.1 mrg include "hu(def_common)"
231 1.1 mrg include "level3(ralt_switch)"
232 1.1 mrg };
233 1.1 mrg
234 1.1 mrg // 102_qwertz_dot_nodead
235 1.1 mrg // 102 key qwertz layout
236 1.1 mrg // with decimal dot on keypad
237 1.1 mrg // and without dead key support
238 1.1 mrg partial
239 1.1 mrg xkb_symbols "102_qwertz_dot_nodead" {
240 1.1 mrg name[Group1] = "Hungary - 102/qwertz/dot/Eliminate dead keys";
241 1.1 mrg include "latin"
242 1.1 mrg include "hu(def_102)"
243 1.1 mrg include "hu(def_qwertz)"
244 1.1 mrg include "hu(def_dot)"
245 1.1 mrg include "hu(def_nodead)"
246 1.1 mrg include "hu(def_common)"
247 1.1 mrg include "level3(ralt_switch)"
248 1.1 mrg };
249 1.1 mrg
250 1.1 mrg // 102_qwerty_comma_dead
251 1.1 mrg // 102 key qwerty layout
252 1.1 mrg // with decimal comma on keypad
253 1.1 mrg // and with dead key support
254 1.1 mrg partial
255 1.1 mrg xkb_symbols "102_qwerty_comma_dead" {
256 1.1 mrg name[Group1] = "Hungary - 102/qwerty/comma/Dead keys";
257 1.1 mrg include "latin"
258 1.1 mrg include "hu(def_102)"
259 1.1 mrg include "hu(def_qwerty)"
260 1.1 mrg include "kpdl(comma)"
261 1.1 mrg include "hu(def_dead)"
262 1.1 mrg include "hu(def_common)"
263 1.1 mrg include "level3(ralt_switch)"
264 1.1 mrg };
265 1.1 mrg
266 1.1 mrg // 102_qwerty_comma_nodead
267 1.1 mrg // 102 key qwerty layout
268 1.1 mrg // with decimal comma on keypad
269 1.1 mrg // and without dead key support
270 1.1 mrg partial
271 1.1 mrg xkb_symbols "102_qwerty_comma_nodead" {
272 1.1 mrg name[Group1] = "Hungary - 102/qwerty/comma/Eliminate dead keys";
273 1.1 mrg include "latin"
274 1.1 mrg include "hu(def_102)"
275 1.1 mrg include "hu(def_qwerty)"
276 1.1 mrg include "kpdl(comma)"
277 1.1 mrg include "hu(def_nodead)"
278 1.1 mrg include "hu(def_common)"
279 1.1 mrg include "level3(ralt_switch)"
280 1.1 mrg };
281 1.1 mrg
282 1.1 mrg // 102_qwerty_dot_dead
283 1.1 mrg // 102 key qwerty layout
284 1.1 mrg // with decimal dot on keypad
285 1.1 mrg // and with dead key support
286 1.1 mrg partial
287 1.1 mrg xkb_symbols "102_qwerty_dot_dead" {
288 1.1 mrg name[Group1] = "Hungary - 102/qwerty/dot/Dead keys";
289 1.1 mrg include "latin"
290 1.1 mrg include "hu(def_102)"
291 1.1 mrg include "hu(def_qwerty)"
292 1.1 mrg include "hu(def_dot)"
293 1.1 mrg include "hu(def_dead)"
294 1.1 mrg include "hu(def_common)"
295 1.1 mrg include "level3(ralt_switch)"
296 1.1 mrg };
297 1.1 mrg
298 1.1 mrg // 102_qwerty_dot_nodead
299 1.1 mrg // 102 key qwerty layout
300 1.1 mrg // with decimal dot on keypad
301 1.1 mrg // and without dead key support
302 1.1 mrg partial
303 1.1 mrg xkb_symbols "102_qwerty_dot_nodead" {
304 1.1 mrg name[Group1] = "Hungary - 102/qwerty/dot/Eliminate dead keys";
305 1.1 mrg include "latin"
306 1.1 mrg include "hu(def_102)"
307 1.1 mrg include "hu(def_qwerty)"
308 1.1 mrg include "hu(def_dot)"
309 1.1 mrg include "hu(def_nodead)"
310 1.1 mrg include "hu(def_common)"
311 1.1 mrg include "level3(ralt_switch)"
312 1.1 mrg };
313 1.1 mrg
314 1.1 mrg // Partial layouts
315 1.1 mrg
316 1.1 mrg // def_102:
317 1.1 mrg // The standard Hungarian 102 key layout
318 1.1 mrg hidden partial alphanumeric_keys
319 1.1 mrg xkb_symbols "def_102" {
320 1.1 mrg key <TLDE> { [ 0, section, notsign ] };
321 1.1 mrg key <LSGT> { [ iacute, Iacute, less, greater ] };
322 1.1 mrg
323 1.1 mrg };
324 1.1 mrg
325 1.1 mrg // def_101:
326 1.1 mrg // An alternative layout for 101 key keyboards
327 1.1 mrg hidden partial alphanumeric_keys
328 1.1 mrg xkb_symbols "def_101" {
329 1.1 mrg key <TLDE> { [ iacute, Iacute, 0, section ] };
330 1.1 mrg key <LSGT> { [ less, greater ] };
331 1.1 mrg };
332 1.1 mrg
333 1.1 mrg // def_qwertz:
334 1.1 mrg // The standard Hungaryan qwertz layout
335 1.1 mrg hidden partial alphanumeric_keys
336 1.1 mrg xkb_symbols "def_qwertz" {
337 1.1.1.3 ghen key <AD06> { [ z, Z, endash ] };
338 1.1 mrg key <AB01> { [ y, Y, greater ] };
339 1.1 mrg };
340 1.1 mrg
341 1.1 mrg
342 1.1 mrg // def_qwerty:
343 1.1 mrg // The qwerty layout for people who familiar with the standard US layout
344 1.1 mrg hidden partial alphanumeric_keys
345 1.1 mrg xkb_symbols "def_qwerty" {
346 1.1.1.3 ghen key <AD06> { [ y, Y, endash ] };
347 1.1 mrg key <AB01> { [ z, Z, greater ] };
348 1.1 mrg };
349 1.1 mrg
350 1.1 mrg // def_dot:
351 1.1 mrg // The Hungarian standard is the comma on the keypad not decimal dot,
352 1.1 mrg // but programmers hate it
353 1.1 mrg hidden partial keypad_keys
354 1.1 mrg xkb_symbols "def_dot" {
355 1.1 mrg key <KPDL> { [ KP_Delete, KP_Decimal ] };
356 1.1 mrg };
357 1.1 mrg
358 1.1 mrg
359 1.1 mrg // def_dead:
360 1.1 mrg // Dead keys support part
361 1.1 mrg hidden partial alphanumeric_keys
362 1.1 mrg xkb_symbols "def_dead" {
363 1.1 mrg key <AE01> { [ 1, apostrophe, asciitilde, dead_tilde ] };
364 1.1 mrg key <AE02> { [ 2, quotedbl, dead_caron, caron ] };
365 1.1 mrg key <AE03> { [ 3, plus, asciicircum, dead_circumflex ] };
366 1.1 mrg key <AE04> { [ 4, exclam, dead_breve, breve ] };
367 1.1 mrg key <AE05> { [ 5, percent, dead_abovering, degree ] };
368 1.1 mrg key <AE06> { [ 6, slash, dead_ogonek, ogonek ] };
369 1.1 mrg key <AE07> { [ 7, equal, grave, dead_grave ] };
370 1.1 mrg key <AE08> { [ 8, parenleft, dead_abovedot, abovedot ] };
371 1.1 mrg key <AE09> { [ 9, parenright, dead_acute, acute ] };
372 1.1 mrg key <AE10> { [ odiaeresis, Odiaeresis, dead_doubleacute, doubleacute ] };
373 1.1 mrg key <AE11> { [ udiaeresis, Udiaeresis, dead_diaeresis, diaeresis ] };
374 1.1 mrg key <AE12> { [ oacute, Oacute, dead_cedilla, cedilla ] };
375 1.1 mrg };
376 1.1 mrg
377 1.1 mrg // def_nodead:
378 1.1 mrg // Without dead keys support
379 1.1 mrg hidden partial alphanumeric_keys
380 1.1 mrg xkb_symbols "def_nodead" {
381 1.1 mrg key <AE01> { [ 1, apostrophe, asciitilde ] };
382 1.1 mrg key <AE02> { [ 2, quotedbl, caron ] };
383 1.1 mrg key <AE03> { [ 3, plus, asciicircum ] };
384 1.1 mrg key <AE04> { [ 4, exclam, breve ] };
385 1.1 mrg key <AE05> { [ 5, percent, degree ] };
386 1.1 mrg key <AE06> { [ 6, slash, ogonek ] };
387 1.1 mrg key <AE07> { [ 7, equal, grave ] };
388 1.1 mrg key <AE08> { [ 8, parenleft, abovedot ] };
389 1.1 mrg key <AE09> { [ 9, parenright, acute ] };
390 1.1 mrg key <AE10> { [ odiaeresis, Odiaeresis, doubleacute ] };
391 1.1 mrg key <AE11> { [ udiaeresis, Udiaeresis, diaeresis ] };
392 1.1 mrg key <AE12> { [ oacute, Oacute, cedilla ] };
393 1.1 mrg };
394 1.1 mrg
395 1.1 mrg
396 1.1 mrg // def_common:
397 1.1 mrg // The common part of all Hungarian layout above
398 1.1 mrg hidden partial alphanumeric_keys
399 1.1 mrg xkb_symbols "def_common" {
400 1.1 mrg key <AD01> { [ q, Q, backslash ] };
401 1.1 mrg key <AD02> { [ w, W, bar ] };
402 1.1 mrg key <AD07> { [ u, U, EuroSign ] };
403 1.1 mrg key <AD08> { [ i, I, Iacute, iacute ] };
404 1.1.1.3 ghen key <AD09> { [ o, O, doublelowquotemark ] };
405 1.1.1.3 ghen key <AD10> { [ p, P, rightdoublequotemark ] };
406 1.1 mrg key <AD11> { [ odoubleacute, Odoubleacute, division ] };
407 1.1 mrg key <AD12> { [ uacute, Uacute, multiply ] };
408 1.1 mrg
409 1.1 mrg key <AC01> { [ a, A, adiaeresis, Adiaeresis ] };
410 1.1 mrg key <AC02> { [ s, S, dstroke ] };
411 1.1 mrg key <AC03> { [ d, D, Dstroke ] };
412 1.1 mrg key <AC04> { [ f, F, bracketleft ] };
413 1.1 mrg key <AC05> { [ g, G, bracketright ] };
414 1.1 mrg key <AC07> { [ j, J, iacute, Iacute ] };
415 1.1 mrg key <AC08> { [ k, K, lstroke ] };
416 1.1 mrg key <AC09> { [ l, L, Lstroke ] };
417 1.1 mrg key <AC10> { [ eacute, Eacute, dollar, cent ] };
418 1.1 mrg key <AC11> { [ aacute, Aacute, ssharp ] };
419 1.1 mrg
420 1.1 mrg key <BKSL> { [ udoubleacute, Udoubleacute, currency ] };
421 1.1 mrg
422 1.1 mrg key <AB02> { [ x, X, numbersign ] };
423 1.1 mrg key <AB03> { [ c, C, ampersand ] };
424 1.1 mrg key <AB04> { [ v, V, at ] };
425 1.1 mrg key <AB05> { [ b, B, braceleft ] };
426 1.1 mrg key <AB06> { [ n, N, braceright ] };
427 1.1 mrg key <AB07> { [ m, M, less ] };
428 1.1 mrg key <AB08> { [ comma, question, semicolon ] };
429 1.1.1.3 ghen key <AB09> { [ period, colon, ellipsis ] };
430 1.1 mrg key <AB10> { [ minus, underscore, asterisk ] };
431 1.1 mrg
432 1.1 mrg };
433