summaryrefslogtreecommitdiff
path: root/data/xkbdata/symbols/hu
blob: b7765264da60c1b0abe8aa93eac09908734321ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
// Hungarian keyboard symbols for XKB and PC keyboard
//
// (C) 2002 Peter Soos <sp@osb.hu>
//
// Permission is granted to anyone to use, distribute and modify
// this file in any way, provided that the above copyright notice
// is left intact and the author of the modification summarizes
// the changes in this header.
//
// This file is distributed without any expressed or implied warranty.
//
// It describes the differences between a very simple US/ASCII keyboard
// layout and some widely used Hungarian keyboard layouts.
// Tested on Linux with XFree86 3.3.6
//
// $XFree86: xc/programs/xkbcomp/symbols/hu,v 1.7 2002/12/13 04:18:03 dawes Exp $


// Default layout
default partial
xkb_symbols "default" {
    include "hu(102_qwertz_comma)"
};

// Standard layout
partial
xkb_symbols "standard" {
    include "hu(102_qwertz_comma)"
};

// Main layouts

// 101_qwertz_comma:
// Unicode based 101 key qwertz layout with decimal comma on keypad
// You have to set your locale settings (at least LC_CTYPE) to hu_HU.
partial
xkb_symbols "101_qwertz_comma" {
    name[Group1] = "Hungarian";
    include "hu(def_uni)"
    include "hu(def_101)"
    include "hu(def_qwertz)"
    include "hu(def_comma)"
    include "hu(def_common)"
};

// 101_qwertz_dot:
// Unicode based 101 key qwertz layout with decimal dot on keypad
// You have to set your locale settings (at least LC_CTYPE) to hu_HU.
partial
xkb_symbols "101_qwertz_dot" {
    name[Group1] = "Hungarian";
    include "hu(def_uni)"
    include "hu(def_101)"
    include "hu(def_qwertz)"
    include "hu(def_dot)"
    include "hu(def_common)"
};

// 101_qwerty_comma:
// Unicode based 101 key qwerty layout with decimal comma on keypad
// You have to set your locale settings (at least LC_CTYPE) to hu_HU.
partial
xkb_symbols "101_qwerty_comma" {
    name[Group1] = "Hungarian";
    include "hu(def_uni)"
    include "hu(def_101)"
    include "hu(def_qwerty)"
    include "hu(def_comma)"
    include "hu(def_common)"
};

// 101_qwerty_dot:
// Unicode based 101 key qwerty layout with decimal dot on keypad
// You have to set your locale settings (at least LC_CTYPE) to hu_HU.
partial
xkb_symbols "101_qwerty_dot" {
    name[Group1] = "Hungarian";
    include "hu(def_uni)"
    include "hu(def_101)"
    include "hu(def_qwerty)"
    include "hu(def_dot)"
    include "hu(def_common)"
};

// 102_qwertz_comma:
// Unicode based 102 key qwertz layout with decimal comma on keypad
// You have to set your locale settings (at least LC_CTYPE) to hu_HU.
partial
xkb_symbols "102_qwertz_comma" {
    name[Group1] = "Hungarian";
    include "hu(def_uni)"
    include "hu(def_102)"
    include "hu(def_qwertz)"
    include "hu(def_comma)"
    include "hu(def_common)"
};

// 102_qwertz_dot:
// Unicode based 102 key qwertz layout with decimal dot on keypad
// You have to set your locale settings (at least LC_CTYPE) to hu_HU.
partial
xkb_symbols "102_qwertz_dot" {
    name[Group1] = "Hungarian";
    include "hu(def_uni)"
    include "hu(def_102)"
    include "hu(def_qwertz)"
    include "hu(def_dot)"
    include "hu(def_common)"
};

// 102_qwerty_comma:
// Unicode based 102 key qwerty layout with decimal comma on keypad
// You have to set your locale settings (at least LC_CTYPE) to hu_HU.
partial
xkb_symbols "102_qwerty_comma" {
    name[Group1] = "Hungarian";
    include "hu(def_uni)"
    include "hu(def_102)"
    include "hu(def_qwerty)"
    include "hu(def_comma)"
    include "hu(def_common)"
};

// 102_qwerty_dot:
// Unicode based 102 key qwerty layout with decimal dot on keypad
// You have to set your locale settings (at least LC_CTYPE) to hu_HU.
partial
xkb_symbols "102_qwerty_dot" {
    name[Group1] = "Hungarian";
    include "hu(def_uni)"
    include "hu(def_102)"
    include "hu(def_qwerty)"
    include "hu(def_dot)"
    include "hu(def_common)"
};

// Partial layouts

// def_uni:
// Unicode based Hungarian keybaord.

hidden partial alphanumeric_keys
xkb_symbols "def_uni" {

    key <AD07> {        [                u, U                ],
                        [         EuroSign                   ]       };
    key <AC02> {        [                s, S                ],
                        [          dstroke                   ]       };
    key <AC03> {        [                d, D                ],
                        [          Dstroke                   ]       };
    key <AC08> {        [                k, K                ],
                        [          lstroke                   ]       };
    key <AC09> {        [                l, L                ],
                        [          Lstroke                   ]       };
    key <AD11> {        [     odoubleacute, Odoubleacute     ],
                        [         division                   ]       };
    key <BKSL> {        [     udoubleacute, Udoubleacute     ],
                        [         currency                   ]       };
};

// def_102:
// The standard Hungarian 102 key layout

hidden partial alphanumeric_keys
xkb_symbols "def_102" {
    key <TLDE> {        [                0, section          ],
                        [          notsign                   ]       };
};

// def_101:
// An alternative layout for 101 key keyboards

hidden partial alphanumeric_keys
xkb_symbols "def_101" {
    key <TLDE> {        [           iacute, Iacute           ],
                        [                0, section          ]       };
};

// def_qwertz:
// The standard Hungaryan qwertz layout

hidden partial alphanumeric_keys
xkb_symbols "def_qwertz" {
    key <AB01> {        [                y, Y                ],
                        [          greater                   ]       };
    key <AD06> {        [                z, Z                ]       };
};

// def_qwerty:
// The qwerty layout for people who familiar with the standard US layout

hidden partial alphanumeric_keys
xkb_symbols "def_qwerty" {
    key <AB01> {        [                z, Z                ],
                        [          greater                   ]       };
    key <AD06> {        [                y, Y                ]       };
};

// def_comma:
// The Hungarian standard is the comma on the keypad not decimal dot
hidden partial keypad_keys
xkb_symbols "def_comma" {
   key  <KPDL> {        [        KP_Delete, KP_Separator     ]       };
};

// def_dot:
// The Hungarian standard is the comma on the keypad not decimal dot,
// but programmers hate it
hidden partial keypad_keys
xkb_symbols "def_dot" {
   key  <KPDL> {        [        KP_Delete, KP_Decimal       ]       };
};

// def_common:
// The common part of all Hungarian layout above
hidden partial alphanumeric_keys modifier_keys
xkb_symbols "def_common" {

    // Alphanumeric section
    key <AE01> {        [                1, apostrophe       ],
                        [       asciitilde, dead_tilde       ]       };
    key <AE02> {        [                2, quotedbl         ],
                        [       dead_caron, caron            ]       };
    key <AE03> {        [                3, plus             ],
                        [      asciicircum, dead_circumflex  ]       };
    key <AE04> {        [                4, exclam           ],
                        [       dead_breve, breve            ]       };
    key <AE05> {        [                5, percent          ],
                        [   dead_abovering, degree           ]       };
    key <AE06> {        [                6, slash            ],
                        [      dead_ogonek, ogonek           ]       };
    key <AE07> {        [                7, equal            ],
                        [            grave, dead_grave       ]       };
    key <AE08> {        [                8, parenleft        ],
                        [    dead_abovedot, degree           ]       };
    key <AE09> {        [                9, parenright       ],
                        [       dead_acute, acute            ]       };
    key <AE10> {        [       odiaeresis, Odiaeresis       ],
                        [ dead_doubleacute, doubleacute      ]       };
    key <AE11> {        [       udiaeresis, Udiaeresis       ],
                        [   dead_diaeresis, diaeresis        ]       };
    key <AE12> {        [           oacute, Oacute           ],
                        [     dead_cedilla, cedilla          ]       };

    key <AD01> {        [                q, Q                ],
                        [        backslash                   ]       };
    key <AD02> {        [                w, W                ],
                        [              bar                   ]       };
    key <AD08> {        [                i, I                ],
                        [           Iacute                   ]       };
    key <AD12> {        [           uacute, Uacute           ],
                        [         multiply                   ]       };

    key <AC04> {        [                f, F                ],
                        [      bracketleft                   ]       };
    key <AC05> {        [                g, G                ],
                        [     bracketright                   ]       };
    key <AC07> {        [                j, J                ],
                        [           iacute                   ]       };
    key <AC10> {        [           eacute, Eacute           ],
                        [           dollar                   ]       };
    key <AC11> {        [           aacute, Aacute           ],
                        [           ssharp                   ]       };

    key <LSGT> {        [           iacute, Iacute           ],
                        [             less                   ]       };
    key <AB02> {        [                x, X                ],
                        [       numbersign                   ]       };
    key <AB03> {        [                c, C                ],
                        [        ampersand                   ]       };
    key <AB04> {        [                v, V                ],
                        [               at                   ]       };
    key <AB05> {        [                b, B                ],
                        [        braceleft                   ]       };
    key <AB06> {        [                n, N                ],
                        [       braceright                   ]       };
    key <AB07> {        [                m, M                ],
                        [             less                   ]       };
    key <AB08> {        [            comma, question         ],
                        [        semicolon                   ]       };
    key <AB09> {        [           period, colon            ],
                        [          greater                   ]       };
    key <AB10> {        [            minus, underscore       ],
                        [         asterisk                   ]       };
    key <RALT> {        [      Mode_switch, Multi_key        ]       };
    key <LALT> {        [            Alt_L, Meta_L           ]       };

    // End alphanumeric section

    // begin modifier mappings
    modifier_map Shift  { Shift_L };
    modifier_map Lock   { Caps_Lock };
    modifier_map Control{ Control_L };
    modifier_map Mod3   { Mode_switch };
};

partial
xkb_symbols "Sundeadkeys" {
    include "hu(default)" // for consistent naming
};

partial
xkb_symbols "sundeadkeys" {
    include "hu(Sundeadkeys)" // for consistent naming
};

partial
xkb_symbols "nodeadkeys" {
    // modify the default Hungarian layout to not have any dead keys
    include "hu(default)"
    key <AE01> {        [                1, apostrophe       ],
                        [       asciitilde                   ]       };
    key <AE02> {        [                2, quotedbl         ],
                        [            caron                   ]       };
    key <AE03> {        [                3, plus             ],
                        [      asciicircum                   ]       };
    key <AE04> {        [                4, exclam           ],
                        [            breve                   ]       };
    key <AE05> {        [                5, percent          ],
                        [           degree                   ]       };
    key <AE06> {        [                6, slash            ],
                        [           ogonek                   ]       };
    key <AE07> {        [                7, equal            ],
                        [            grave                   ]       };
    key <AE08> {        [                8, parenleft        ],
                        [         abovedot                   ]       };
    key <AE09> {        [                9, parenright       ],
                        [            acute                   ]       };
    key <AE10> {        [       odiaeresis, Odiaeresis       ],
                        [      doubleacute                   ]       };
    key <AE11> {        [       udiaeresis, Udiaeresis       ],
                        [        diaeresis                   ]       };
    key <AE12> {        [           oacute, Oacute           ],
                        [          cedilla                   ]       };

};