1 // New style XKB layout for some widely used Hungarian keyboard layouts
3 // Based on old style 'xkb/symbols/hu"
6 // (C) 2002-2004 Soós Péter <sp@osb.hu>
8 // Permission is granted to anyone to use, distribute and modify
9 // this file in any way, provided that the above copyright notice
10 // is left intact and the author of the modification summarizes
11 // the changes in this header.
13 // This file is distributed without any expressed or implied warranty.
16 // 2004-04-17 - Moved to new style (only Unicode based layouts)
17 // - Added consistent dead key support
20 // - Added EuroSign and cent symbol
26 include "hu(102_qwertz_comma_dead)"
27 name[Group1] = "Hungary";
32 xkb_symbols "standard" {
33 include "hu(102_qwertz_comma_dead)"
34 name[Group1] = "Hungary - Standard";
37 // Standard layout without dead key support
39 xkb_symbols "nodeadkeys" {
40 include "hu(102_qwertz_comma_nodead)"
41 name[Group1] = "Hungary - Eliminate dead keys";
46 xkb_symbols "qwerty" {
47 include "hu(101_qwerty_comma_dead)"
48 name[Group1] = "Hungary - qwerty";
53 // 101_qwertz_comma_dead
54 // 101 key qwertz layout
55 // with decimal comma on keypad
56 // and with dead key support
58 xkb_symbols "101_qwertz_comma_dead" {
59 name[Group1] = "Hungary - 101/qwertz/comma/Dead keys";
62 include "hu(def_qwertz)"
64 include "hu(def_dead)"
65 include "hu(def_common)"
66 include "level3(ralt_switch)"
69 // 101_qwertz_comma_nodead
70 // 101 key qwertz layout
71 // with decimal comma on keypad
72 // and without dead key support
74 xkb_symbols "101_qwertz_comma_nodead" {
75 name[Group1] = "Hungary - 101/qwertz/comma/Eliminate dead keys";
78 include "hu(def_qwertz)"
80 include "hu(def_nodead)"
81 include "hu(def_common)"
82 include "level3(ralt_switch)"
85 // 101_qwertz_dot_dead
86 // 101 key qwertz layout
87 // with decimal dot on keypad
88 // and with dead key support
90 xkb_symbols "101_qwertz_dot_dead" {
91 name[Group1] = "Hungary - 101/qwertz/dot/Dead keys";
94 include "hu(def_qwertz)"
96 include "hu(def_dead)"
97 include "hu(def_common)"
98 include "level3(ralt_switch)"
101 // 101_qwertz_dot_nodead
102 // 101 key qwertz layout
103 // with decimal dot on keypad
104 // and without dead key support
106 xkb_symbols "101_qwertz_dot_nodead" {
107 name[Group1] = "Hungary - 101/qwertz/dot/Eliminate dead keys";
109 include "hu(def_101)"
110 include "hu(def_qwertz)"
111 include "hu(def_dot)"
112 include "hu(def_nodead)"
113 include "hu(def_common)"
114 include "level3(ralt_switch)"
117 // 101_qwerty_comma_dead
118 // 101 key qwerty layout
119 // with decimal comma on keypad
120 // and with dead key support
122 xkb_symbols "101_qwerty_comma_dead" {
123 name[Group1] = "Hungary - 101/qwerty/comma/Dead keys";
125 include "hu(def_101)"
126 include "hu(def_qwerty)"
127 include "kpdl(comma)"
128 include "hu(def_dead)"
129 include "hu(def_common)"
130 include "level3(ralt_switch)"
133 // 101_qwerty_comma_nodead
134 // 101 key qwerty layout
135 // with decimal comma on keypad
136 // and without dead key support
138 xkb_symbols "101_qwerty_comma_nodead" {
139 name[Group1] = "Hungary - 101/qwerty/comma/Eliminate dead keys";
141 include "hu(def_101)"
142 include "hu(def_qwerty)"
143 include "kpdl(comma)"
144 include "hu(def_nodead)"
145 include "hu(def_common)"
146 include "level3(ralt_switch)"
149 // 101_qwerty_dot_dead
150 // 101 key qwerty layout
151 // with decimal dot on keypad
152 // and with dead key support
154 xkb_symbols "101_qwerty_dot_dead" {
155 name[Group1] = "Hungary - 101/qwerty/dot/Dead keys";
157 include "hu(def_101)"
158 include "hu(def_qwerty)"
159 include "hu(def_dot)"
160 include "hu(def_dead)"
161 include "hu(def_common)"
162 include "level3(ralt_switch)"
165 // 101_qwerty_dot_nodead
166 // 101 key qwerty layout
167 // with decimal dot on keypad
168 // and without dead key support
170 xkb_symbols "101_qwerty_dot_nodead" {
171 name[Group1] = "Hungary - 101/qwerty/dot/Eliminate dead keys";
173 include "hu(def_101)"
174 include "hu(def_qwerty)"
175 include "hu(def_dot)"
176 include "hu(def_nodead)"
177 include "hu(def_common)"
178 include "level3(ralt_switch)"
181 // 102_qwertz_comma_dead
182 // 102 key qwertz layout
183 // with decimal comma on keypad
184 // and with dead key support
186 xkb_symbols "102_qwertz_comma_dead" {
187 name[Group1] = "Hungary - 102/qwertz/comma/Dead keys";
189 include "hu(def_102)"
190 include "hu(def_qwertz)"
191 include "kpdl(comma)"
192 include "hu(def_dead)"
193 include "hu(def_common)"
194 include "level3(ralt_switch)"
197 // 102_qwertz_comma_nodead
198 // 102 key qwertz layout
199 // with decimal comma on keypad
200 // and without dead key support
202 xkb_symbols "102_qwertz_comma_nodead" {
203 name[Group1] = "Hungary - 102/qwertz/comma/Eliminate dead keys";
205 include "hu(def_102)"
206 include "hu(def_qwertz)"
207 include "kpdl(comma)"
208 include "hu(def_nodead)"
209 include "hu(def_common)"
210 include "level3(ralt_switch)"
213 // 102_qwertz_dot_dead
214 // 102 key qwertz layout
215 // with decimal dot on keypad
216 // and with dead key support
218 xkb_symbols "102_qwertz_dot_dead" {
219 name[Group1] = "Hungary - 102/qwertz/dot/Dead keys";
221 include "hu(def_102)"
222 include "hu(def_qwertz)"
223 include "hu(def_dot)"
224 include "hu(def_dead)"
225 include "hu(def_common)"
226 include "level3(ralt_switch)"
229 // 102_qwertz_dot_nodead
230 // 102 key qwertz layout
231 // with decimal dot on keypad
232 // and without dead key support
234 xkb_symbols "102_qwertz_dot_nodead" {
235 name[Group1] = "Hungary - 102/qwertz/dot/Eliminate dead keys";
237 include "hu(def_102)"
238 include "hu(def_qwertz)"
239 include "hu(def_dot)"
240 include "hu(def_nodead)"
241 include "hu(def_common)"
242 include "level3(ralt_switch)"
245 // 102_qwerty_comma_dead
246 // 102 key qwerty layout
247 // with decimal comma on keypad
248 // and with dead key support
250 xkb_symbols "102_qwerty_comma_dead" {
251 name[Group1] = "Hungary - 102/qwerty/comma/Dead keys";
253 include "hu(def_102)"
254 include "hu(def_qwerty)"
255 include "kpdl(comma)"
256 include "hu(def_dead)"
257 include "hu(def_common)"
258 include "level3(ralt_switch)"
261 // 102_qwerty_comma_nodead
262 // 102 key qwerty layout
263 // with decimal comma on keypad
264 // and without dead key support
266 xkb_symbols "102_qwerty_comma_nodead" {
267 name[Group1] = "Hungary - 102/qwerty/comma/Eliminate dead keys";
269 include "hu(def_102)"
270 include "hu(def_qwerty)"
271 include "kpdl(comma)"
272 include "hu(def_nodead)"
273 include "hu(def_common)"
274 include "level3(ralt_switch)"
277 // 102_qwerty_dot_dead
278 // 102 key qwerty layout
279 // with decimal dot on keypad
280 // and with dead key support
282 xkb_symbols "102_qwerty_dot_dead" {
283 name[Group1] = "Hungary - 102/qwerty/dot/Dead keys";
285 include "hu(def_102)"
286 include "hu(def_qwerty)"
287 include "hu(def_dot)"
288 include "hu(def_dead)"
289 include "hu(def_common)"
290 include "level3(ralt_switch)"
293 // 102_qwerty_dot_nodead
294 // 102 key qwerty layout
295 // with decimal dot on keypad
296 // and without dead key support
298 xkb_symbols "102_qwerty_dot_nodead" {
299 name[Group1] = "Hungary - 102/qwerty/dot/Eliminate dead keys";
301 include "hu(def_102)"
302 include "hu(def_qwerty)"
303 include "hu(def_dot)"
304 include "hu(def_nodead)"
305 include "hu(def_common)"
306 include "level3(ralt_switch)"
312 // The standard Hungarian 102 key layout
313 hidden partial alphanumeric_keys
314 xkb_symbols "def_102" {
315 key <TLDE> { [ 0, section, notsign ] };
316 key <LSGT> { [ iacute, Iacute, less, greater ] };
321 // An alternative layout for 101 key keyboards
322 hidden partial alphanumeric_keys
323 xkb_symbols "def_101" {
324 key <TLDE> { [ iacute, Iacute, 0, section ] };
325 key <LSGT> { [ less, greater ] };
329 // The standard Hungaryan qwertz layout
330 hidden partial alphanumeric_keys
331 xkb_symbols "def_qwertz" {
332 key <AD06> { [ z, Z, endash ] };
333 key <AB01> { [ y, Y, greater ] };
338 // The qwerty layout for people who familiar with the standard US layout
339 hidden partial alphanumeric_keys
340 xkb_symbols "def_qwerty" {
341 key <AD06> { [ y, Y, endash ] };
342 key <AB01> { [ z, Z, greater ] };
346 // The Hungarian standard is the comma on the keypad not decimal dot,
347 // but programmers hate it
348 hidden partial keypad_keys
349 xkb_symbols "def_dot" {
350 key <KPDL> { [ KP_Delete, KP_Decimal ] };
355 // Dead keys support part
356 hidden partial alphanumeric_keys
357 xkb_symbols "def_dead" {
358 key <AE01> { [ 1, apostrophe, asciitilde, dead_tilde ] };
359 key <AE02> { [ 2, quotedbl, dead_caron, caron ] };
360 key <AE03> { [ 3, plus, asciicircum, dead_circumflex ] };
361 key <AE04> { [ 4, exclam, dead_breve, breve ] };
362 key <AE05> { [ 5, percent, dead_abovering, degree ] };
363 key <AE06> { [ 6, slash, dead_ogonek, ogonek ] };
364 key <AE07> { [ 7, equal, grave, dead_grave ] };
365 key <AE08> { [ 8, parenleft, dead_abovedot, abovedot ] };
366 key <AE09> { [ 9, parenright, dead_acute, acute ] };
367 key <AE10> { [ odiaeresis, Odiaeresis, dead_doubleacute, doubleacute ] };
368 key <AE11> { [ udiaeresis, Udiaeresis, dead_diaeresis, diaeresis ] };
369 key <AE12> { [ oacute, Oacute, dead_cedilla, cedilla ] };
373 // Without dead keys support
374 hidden partial alphanumeric_keys
375 xkb_symbols "def_nodead" {
376 key <AE01> { [ 1, apostrophe, asciitilde ] };
377 key <AE02> { [ 2, quotedbl, caron ] };
378 key <AE03> { [ 3, plus, asciicircum ] };
379 key <AE04> { [ 4, exclam, breve ] };
380 key <AE05> { [ 5, percent, degree ] };
381 key <AE06> { [ 6, slash, ogonek ] };
382 key <AE07> { [ 7, equal, grave ] };
383 key <AE08> { [ 8, parenleft, abovedot ] };
384 key <AE09> { [ 9, parenright, acute ] };
385 key <AE10> { [ odiaeresis, Odiaeresis, doubleacute ] };
386 key <AE11> { [ udiaeresis, Udiaeresis, diaeresis ] };
387 key <AE12> { [ oacute, Oacute, cedilla ] };
392 // The common part of all Hungarian layout above
393 hidden partial alphanumeric_keys
394 xkb_symbols "def_common" {
395 key <AD01> { [ q, Q, backslash ] };
396 key <AD02> { [ w, W, bar ] };
397 key <AD07> { [ u, U, EuroSign ] };
398 key <AD08> { [ i, I, Iacute, iacute ] };
399 key <AD09> { [ o, O, doublelowquotemark ] };
400 key <AD10> { [ p, P, rightdoublequotemark ] };
401 key <AD11> { [ odoubleacute, Odoubleacute, division ] };
402 key <AD12> { [ uacute, Uacute, multiply ] };
404 key <AC01> { [ a, A, adiaeresis, Adiaeresis ] };
405 key <AC02> { [ s, S, dstroke ] };
406 key <AC03> { [ d, D, Dstroke ] };
407 key <AC04> { [ f, F, bracketleft ] };
408 key <AC05> { [ g, G, bracketright ] };
409 key <AC07> { [ j, J, iacute, Iacute ] };
410 key <AC08> { [ k, K, lstroke ] };
411 key <AC09> { [ l, L, Lstroke ] };
412 key <AC10> { [ eacute, Eacute, dollar, cent ] };
413 key <AC11> { [ aacute, Aacute, ssharp ] };
415 key <BKSL> { [ udoubleacute, Udoubleacute, currency ] };
417 key <AB02> { [ x, X, numbersign ] };
418 key <AB03> { [ c, C, ampersand ] };
419 key <AB04> { [ v, V, at ] };
420 key <AB05> { [ b, B, braceleft ] };
421 key <AB06> { [ n, N, braceright ] };
422 key <AB07> { [ m, M, less ] };
423 key <AB08> { [ comma, question, semicolon ] };
424 key <AB09> { [ period, colon, greater ] };
425 key <AB10> { [ minus, underscore, asterisk ] };