xref: /openbsd-src/sys/dev/usb/ukbdmap.c (revision 99fd087599a8791921855f21bd7e36130f39aadc)
1 /*	$OpenBSD: ukbdmap.c,v 1.44 2019/05/11 14:20:17 abieber Exp $	*/
2 
3 /*
4  * THIS FILE IS AUTOMAGICALLY GENERATED.  DO NOT EDIT.
5  *
6  * generated by:
7  *	OpenBSD: makemap.awk,v 1.14 2013/11/20 17:27:32 miod Exp
8  * generated from:
9  */
10 /*	OpenBSD: wskbdmap_mfii.c,v 1.46 2019/05/11 14:19:16 abieber Exp  */
11 /*	$NetBSD: wskbdmap_mfii.c,v 1.15 2000/05/19 16:40:04 drochner Exp $	*/
12 
13 /*
14  * PLEASE DO NOT FORGET TO REGEN
15  *	sys/dev/usb/ukbdmap.c
16  *	sys/arch/sgi/hpc/wskbdmap_sgi.c
17  * AFTER ANY CHANGES TO THIS FILE!
18  */
19 
20 /*-
21  * Copyright (c) 1997 The NetBSD Foundation, Inc.
22  * All rights reserved.
23  *
24  * This code is derived from software contributed to The NetBSD Foundation
25  * by Juergen Hannken-Illjes.
26  *
27  * Redistribution and use in source and binary forms, with or without
28  * modification, are permitted provided that the following conditions
29  * are met:
30  * 1. Redistributions of source code must retain the above copyright
31  *    notice, this list of conditions and the following disclaimer.
32  * 2. Redistributions in binary form must reproduce the above copyright
33  *    notice, this list of conditions and the following disclaimer in the
34  *    documentation and/or other materials provided with the distribution.
35  *
36  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
37  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
38  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
39  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
40  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
41  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
42  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
43  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
44  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
45  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
46  * POSSIBILITY OF SUCH DAMAGE.
47  */
48 
49 #include <sys/types.h>
50 #include <dev/wscons/wsksymdef.h>
51 #include <dev/wscons/wsksymvar.h>
52 
53 #define KC(n) KS_KEYCODE(n)
54 
55 static const keysym_t ukbd_keydesc_us[] = {
56 /*  pos      command		normal		shifted */
57     KC(4),	KS_a,
58     KC(5),	KS_b,
59     KC(6),	KS_c,
60     KC(7),	KS_d,
61     KC(8),	KS_e,
62     KC(9),	KS_f,
63     KC(10),	KS_g,
64     KC(11),	KS_h,
65     KC(12),	KS_i,
66     KC(13),	KS_j,
67     KC(14),	KS_k,
68     KC(15),	KS_l,
69     KC(16),	KS_m,
70     KC(17),	KS_n,
71     KC(18),	KS_o,
72     KC(19),	KS_p,
73     KC(20),	KS_q,
74     KC(21),	KS_r,
75     KC(22),	KS_s,
76     KC(23),	KS_t,
77     KC(24),	KS_u,
78     KC(25),	KS_v,
79     KC(26),	KS_w,
80     KC(27),	KS_x,
81     KC(28),	KS_y,
82     KC(29),	KS_z,
83     KC(30),	KS_1,		KS_exclam,
84     KC(31),	KS_2,		KS_at,
85     KC(32),	KS_3,		KS_numbersign,
86     KC(33),	KS_4,		KS_dollar,
87     KC(34),	KS_5,		KS_percent,
88     KC(35),	KS_6,		KS_asciicircum,
89     KC(36),	KS_7,		KS_ampersand,
90     KC(37),	KS_8,		KS_asterisk,
91     KC(38),	KS_9,		KS_parenleft,
92     KC(39),	KS_0,		KS_parenright,
93     KC(40),	KS_Return,
94     KC(41),	KS_Cmd_Debugger,KS_Escape,
95     KC(42),	KS_Cmd_ResetEmul,KS_Delete,
96     KC(43),	KS_Tab,
97     KC(44),	KS_space,
98     KC(45),	KS_minus,	KS_underscore,
99     KC(46),	KS_equal,	KS_plus,
100     KC(47),	KS_bracketleft,	KS_braceleft,
101     KC(48),	KS_bracketright,KS_braceright,
102     KC(49),	KS_backslash,	KS_bar,
103     KC(50),	KS_backslash,	KS_bar,
104     KC(51),	KS_semicolon,	KS_colon,
105     KC(52),	KS_apostrophe,	KS_quotedbl,
106     KC(53),	KS_grave,	KS_asciitilde,
107     KC(54),	KS_comma,	KS_less,
108     KC(55),	KS_period,	KS_greater,
109     KC(56),	KS_slash,	KS_question,
110     KC(57),	KS_Caps_Lock,
111     KC(58),	KS_Cmd_Screen0,	KS_f1,
112     KC(59),	KS_Cmd_Screen1,	KS_f2,
113     KC(60),	KS_Cmd_Screen2,	KS_f3,
114     KC(61),	KS_Cmd_Screen3,	KS_f4,
115     KC(62),	KS_Cmd_Screen4,	KS_f5,
116     KC(63),	KS_Cmd_Screen5,	KS_f6,
117     KC(64),	KS_Cmd_Screen6,	KS_f7,
118     KC(65),	KS_Cmd_Screen7,	KS_f8,
119     KC(66),	KS_Cmd_Screen8,	KS_f9,
120     KC(67),	KS_Cmd_Screen9,	KS_f10,
121     KC(68),	KS_Cmd_Screen10,KS_f11,
122     KC(69),	KS_Cmd_Screen11,KS_f12,
123     KC(70),	KS_Print_Screen,
124     KC(71),	KS_Hold_Screen,
125     KC(72),	KS_Pause,	/*Break*/
126     KC(73),	KS_Insert,
127     KC(74),	KS_Home,
128     KC(75),	KS_Cmd_ScrollBack,KS_Prior,
129     KC(76),	KS_Cmd_KbdReset,KS_KP_Delete,
130     KC(77),	KS_End,
131     KC(78),	KS_Cmd_ScrollFwd,KS_Next,
132     KC(79),	KS_Right,
133     KC(80),	KS_Left,
134     KC(81),	KS_Down,
135     KC(82),	KS_Up,
136     KC(83),	KS_Num_Lock,
137     KC(84),	KS_KP_Divide,
138     KC(85),	KS_KP_Multiply,
139     KC(86),	KS_KP_Subtract,
140     KC(87),	KS_KP_Add,
141     KC(88),	KS_KP_Enter,
142     KC(89),	KS_KP_End,	KS_KP_1,
143     KC(90),	KS_KP_Down,	KS_KP_2,
144     KC(91),	KS_KP_Next,	KS_KP_3,
145     KC(92),	KS_KP_Left,	KS_KP_4,
146     KC(93),	KS_KP_Begin,	KS_KP_5,
147     KC(94),	KS_KP_Right,	KS_KP_6,
148     KC(95),	KS_KP_Home,	KS_KP_7,
149     KC(96),	KS_KP_Up,	KS_KP_8,
150     KC(97),	KS_KP_Prior,	KS_KP_9,
151     KC(98),	KS_KP_Insert,	KS_KP_0,
152     KC(99),	KS_KP_Delete,	KS_KP_Decimal,
153     KC(101),	KS_Menu,
154     KC(104),	KS_f13,
155     KC(105),	KS_f14,
156     KC(106),	KS_f15,
157     KC(107),	KS_f16,
158     KC(108),	KS_f17,
159     KC(109),	KS_f18,
160     KC(110),	KS_f19,
161     KC(111),	KS_f20,
162     KC(112),	KS_f21,
163     KC(113),	KS_f22,
164     KC(114),	KS_f23,
165     KC(115),	KS_f24,
166     KC(116),	KS_Open,
167     KC(117),	KS_Help,
168     KC(118),	KS_Props,
169     KC(119),	KS_Front,
170     KC(120),	KS_Cmd,
171     KC(121),	KS_Again,
172     KC(122),	KS_Undo,
173     KC(123),	KS_Cut,
174     KC(124),	KS_Copy,
175     KC(125),	KS_Paste,
176     KC(126),	KS_Find,
177     KC(127),	KS_AudioMute,
178     KC(128),	KS_AudioRaise,
179     KC(129),	KS_AudioLower,
180     KC(224),	KS_Cmd1,	KS_Control_L,
181     KC(225),	KS_Shift_L,
182     KC(226),	KS_Cmd2,	KS_Alt_L,
183     KC(227),	KS_Meta_L,
184     KC(228),	KS_Cmd1,	KS_Control_R,
185     KC(229),	KS_Shift_R,
186     KC(230),	KS_Cmd2,	KS_Alt_R,	KS_Multi_key,
187     KC(231),	KS_Meta_R,
188 };
189 
190 #if !defined(WSKBD_NO_INTL_LAYOUTS)
191 
192 static const keysym_t ukbd_keydesc_de[] = {
193 /*  pos      normal		shifted		altgr		shift-altgr */
194     KC(16),	KS_m,		KS_M,		KS_mu,
195     KC(20),	KS_q,		KS_Q,		KS_at,
196     KC(28),	KS_z,
197     KC(29),	KS_y,
198     KC(31),	KS_2,		KS_quotedbl,	KS_twosuperior,
199     KC(32),	KS_3,		KS_section,	KS_threesuperior,
200     KC(35),	KS_6,		KS_ampersand,
201     KC(36),	KS_7,		KS_slash,	KS_braceleft,
202     KC(37),	KS_8,		KS_parenleft,	KS_bracketleft,
203     KC(38),	KS_9,		KS_parenright,	KS_bracketright,
204     KC(39),	KS_0,		KS_equal,	KS_braceright,
205     KC(45),	KS_ssharp,	KS_question,	KS_backslash,
206     KC(46),	KS_dead_acute,	KS_dead_grave,
207     KC(47),	KS_udiaeresis,
208     KC(48),	KS_plus,	KS_asterisk,	KS_dead_tilde,
209     KC(49),	KS_numbersign,	KS_apostrophe,
210     KC(50),	KS_numbersign,	KS_apostrophe,
211     KC(51),	KS_odiaeresis,
212     KC(52),	KS_adiaeresis,
213     KC(53),	KS_dead_circumflex,KS_dead_abovering,
214     KC(54),	KS_comma,	KS_semicolon,
215     KC(55),	KS_period,	KS_colon,
216     KC(56),	KS_minus,	KS_underscore,
217     KC(100),	KS_less,	KS_greater,	KS_bar,		KS_brokenbar,
218     KC(230),	KS_Mode_switch,	KS_Multi_key,
219 };
220 
221 static const keysym_t ukbd_keydesc_de_nodead[] = {
222 /*  pos      normal		shifted		altgr		shift-altgr */
223     KC(46),	KS_apostrophe,	KS_grave,
224     KC(48),	KS_plus,	KS_asterisk,	KS_asciitilde,
225     KC(53),	KS_asciicircum,	KS_degree,
226 };
227 
228 static const keysym_t ukbd_keydesc_dk[] = {
229 /*  pos      normal		shifted		altgr		shift-altgr */
230     KC(31),	KS_2,		KS_quotedbl,	KS_at,
231     KC(32),	KS_3,		KS_numbersign,	KS_sterling,
232     KC(33),	KS_4,		KS_currency,	KS_dollar,
233     KC(35),	KS_6,		KS_ampersand,
234     KC(36),	KS_7,		KS_slash,	KS_braceleft,
235     KC(37),	KS_8,		KS_parenleft,	KS_bracketleft,
236     KC(38),	KS_9,		KS_parenright,	KS_bracketright,
237     KC(39),	KS_0,		KS_equal,	KS_braceright,
238     KC(45),	KS_plus,	KS_question,
239     KC(46),	KS_dead_acute,	KS_dead_grave,	KS_bar,
240     KC(47),	KS_aring,
241     KC(48),	KS_dead_diaeresis,KS_dead_circumflex,KS_dead_tilde,
242     KC(49),	KS_apostrophe,	KS_asterisk,
243     KC(50),	KS_apostrophe,	KS_asterisk,
244     KC(51),	KS_ae,
245     KC(52),	KS_oslash,
246     KC(53),	KS_onehalf,	KS_paragraph,
247     KC(54),	KS_comma,	KS_semicolon,
248     KC(55),	KS_period,	KS_colon,
249     KC(56),	KS_minus,	KS_underscore,
250     KC(100),	KS_less,	KS_greater,	KS_backslash,
251     KC(230),	KS_Mode_switch,	KS_Multi_key,
252 };
253 
254 static const keysym_t ukbd_keydesc_dk_nodead[] = {
255 /*  pos      normal		shifted		altgr		shift-altgr */
256     KC(46),	KS_apostrophe,	KS_grave,	KS_bar,
257     KC(48),	KS_diaeresis,	KS_asciicircum,	KS_asciitilde,
258 };
259 
260 static const keysym_t ukbd_keydesc_sv[] = {
261 /*  pos      normal		shifted		altgr		shift-altgr */
262     KC(45),	KS_plus,	KS_question,	KS_backslash,
263     KC(48),	KS_dead_diaeresis,KS_dead_circumflex,KS_dead_tilde,
264     KC(51),	KS_odiaeresis,
265     KC(52),	KS_adiaeresis,
266     KC(53),	KS_section,	KS_onehalf,
267     KC(100),	KS_less,	KS_greater,	KS_bar,
268     KC(230),	KS_Mode_switch,	KS_Multi_key,
269 };
270 
271 static const keysym_t ukbd_keydesc_sv_nodead[] = {
272 /*  pos      normal		shifted		altgr		shift-altgr */
273     KC(46),	KS_apostrophe,	KS_grave,	KS_bar,
274     KC(48),	KS_diaeresis,	KS_asciicircum,	KS_asciitilde,
275 };
276 
277 static const keysym_t ukbd_keydesc_no[] = {
278 /*  pos      normal		shifted		altgr		shift-altgr */
279     KC(46),	KS_backslash,	KS_dead_grave,	KS_dead_acute,
280     KC(48),	KS_dead_diaeresis,KS_dead_circumflex,KS_dead_tilde,
281     KC(51),	KS_oslash,
282     KC(52),	KS_ae,
283     KC(53),	KS_bar,		KS_paragraph,
284     KC(100),	KS_less,	KS_greater,
285 };
286 
287 static const keysym_t ukbd_keydesc_no_nodead[] = {
288 /*  pos      normal		shifted		altgr		shift-altgr */
289     KC(46),	KS_backslash,	KS_grave,	KS_acute,
290     KC(48),	KS_diaeresis,	KS_asciicircum,	KS_asciitilde,
291 };
292 
293 static const keysym_t ukbd_keydesc_fr[] = {
294 /*  pos	     normal		shifted		altgr		shift-altgr */
295     KC(4),	KS_q,
296     KC(16),	KS_comma,	KS_question,
297     KC(20),	KS_a,
298     KC(26),	KS_z,
299     KC(29),	KS_w,
300     KC(30),	KS_ampersand,	KS_1,
301     KC(31),	KS_eacute,	KS_2,		KS_asciitilde,
302     KC(32),	KS_quotedbl,	KS_3,		KS_numbersign,
303     KC(33),	KS_apostrophe,	KS_4,		KS_braceleft,
304     KC(34),	KS_parenleft,	KS_5,		KS_bracketleft,
305     KC(35),	KS_minus,	KS_6,		KS_bar,
306     KC(36),	KS_egrave,	KS_7,		KS_grave,
307     KC(37),	KS_underscore,	KS_8,		KS_backslash,
308     KC(38),	KS_ccedilla,	KS_9,		KS_asciicircum,
309     KC(39),	KS_agrave,	KS_0,		KS_at,
310     KC(45),	KS_parenright,	KS_degree,	KS_bracketright,
311     KC(46),	KS_equal,	KS_plus,	KS_braceright,
312     KC(47),	KS_dead_circumflex,KS_dead_diaeresis,
313     KC(48),	KS_dollar,	KS_sterling,	KS_currency,
314     KC(49),	KS_asterisk,	KS_mu,
315     KC(50),	KS_asterisk,	KS_mu,
316     KC(51),	KS_m,
317     KC(52),	KS_ugrave,	KS_percent,
318     KC(53),	KS_twosuperior,
319     KC(54),	KS_semicolon,	KS_period,
320     KC(55),	KS_colon,	KS_slash,
321     KC(56),	KS_exclam,	KS_section,
322     KC(100),	KS_less,	KS_greater,
323     KC(230),	KS_Mode_switch,	KS_Multi_key,
324 };
325 
326 static const keysym_t ukbd_keydesc_fr_apple[] = {
327     KC(5),	KS_b,		KS_B,		KS_ssharp,
328     KC(8),	KS_e,		KS_E,		KS_ecircumflex,	KS_Ecircumflex,
329     KC(11),	KS_h,		KS_H,		KS_Igrave,	KS_Icircumflex,
330     KC(12),	KS_i,		KS_I,		KS_icircumflex,	KS_idiaeresis,
331     KC(13),	KS_j,		KS_J,		KS_Idiaeresis,	KS_Iacute,
332     KC(14),	KS_k,		KS_K,		KS_Egrave,	KS_Ediaeresis,
333     KC(15),	KS_l,		KS_L,		KS_voidSymbol,	KS_bar,
334     KC(16),	KS_comma,	KS_question,	KS_voidSymbol,	KS_questiondown,
335     KC(17),	KS_n,		KS_N,		KS_asciitilde,
336     KC(20),	KS_a,		KS_A,		KS_ae,		KS_AE,
337     KC(21),	KS_r,		KS_R,		KS_registered,	KS_comma,
338     KC(22),	KS_s,		KS_S,		KS_Ograve,
339     KC(26),	KS_z,		KS_Z,		KS_Acircumflex,	KS_Aring,
340     KC(28),	KS_y,		KS_Y,		KS_Uacute,
341     KC(31),	KS_eacute,	KS_2,		KS_ediaeresis,
342     KC(32),	KS_quotedbl,	KS_3,
343     KC(33),	KS_apostrophe,	KS_4,
344     KC(34),	KS_parenleft,	KS_5,		KS_braceleft,	KS_bracketleft,
345     KC(35),	KS_section,	KS_6,
346     KC(36),	KS_egrave,	KS_7,		KS_guillemotleft,
347 						KS_guillemotright,
348     KC(37),	KS_exclam,	KS_8,
349     KC(38),	KS_ccedilla,	KS_9,		KS_Ccedilla,	KS_Aacute,
350     KC(37),	KS_exclam,	KS_8,		KS_exclamdown,	KS_Ucircumflex,
351     KC(39),	KS_agrave,	KS_0,		KS_oslash,	KS_Ooblique,
352     KC(45),	KS_parenright,	KS_degree,	KS_braceright,	KS_bracketright,
353     KC(46),	KS_minus,	KS_underscore,
354     KC(47),	KS_dead_circumflex, KS_dead_diaeresis,
355 						KS_ocircumflex,	KS_Ocircumflex,
356     KC(48),	KS_dollar,	KS_asterisk,	KS_cent,	KS_yen,
357     KC(50),	KS_grave,	KS_sterling,	KS_at,		KS_numbersign,
358     KC(51),	KS_m,		KS_M,		KS_mu,		KS_Oacute,
359     KC(52),	KS_ugrave,	KS_percent,	KS_Ugrave,
360     KC(53),	KS_at,		KS_numbersign,
361     KC(55),	KS_colon,	KS_slash,	KS_voidSymbol,	KS_backslash,
362     KC(56),	KS_equal,	KS_plus,
363     KC(103),	KS_KP_Equal,
364     KC(231),	KS_Mode_switch,	KS_Multi_key,
365 };
366 
367 /*
368  * fr-dvorak-be'po layout, simplified map, per http://www.clavier-dvorak.org/
369  * (the complete map is still a moving target)
370  */
371 static const keysym_t ukbd_keydesc_fr_dvorak_bepo[] = {
372 						/* oe ligature */
373 						/* euro currency */
374     KC(4),	KS_a,		KS_A,		KS_ae,		KS_AE,
375     KC(5),	KS_k,		KS_K,		KS_asciitilde,
376     KC(6),	KS_x,		KS_X,		KS_braceright,
377     KC(7),	KS_i,		KS_I,		KS_dead_diaeresis,
378     KC(8),	KS_p,		KS_P,		KS_ampersand,
379     KC(9),	KS_e,		KS_E,
380     KC(10),	KS_comma,	KS_semicolon,
381     KC(11),	KS_c,
382     KC(12),	KS_d,
383     KC(13),	KS_t,
384     KC(14),	KS_s,
385     KC(15),	KS_r,
386     KC(16),	KS_q,		KS_Q,
387     KC(17),	KS_apostrophe,	KS_question,
388     KC(18),	KS_l,
389     KC(19),	KS_j,
390     KC(20),	KS_b,		KS_B,		KS_bar,
391     KC(21),	KS_o,		KS_O,
392     KC(22),	KS_u,		KS_U,		KS_ugrave,	KS_Ugrave,
393     KC(23),	KS_egrave,	KS_Egrave,	KS_dead_grave,
394     KC(24),	KS_v,
395     KC(25),	KS_period,	KS_colon,	/*ellipsis*/
396     KC(26),	KS_eacute,	KS_Eacute,	KS_dead_acute,
397     KC(27),	KS_y,		KS_Y,		KS_braceleft,
398     KC(28),	KS_dead_circumflex,KS_exclam,
399     KC(29),	KS_agrave,	KS_Agrave,	KS_backslash,
400     KC(30),	KS_quotedbl,	KS_1,		KS_hyphen,
401     KC(31),	KS_guillemotleft,KS_2,		KS_less,
402     KC(32),	KS_guillemotright,KS_3,		KS_greater,
403     KC(33),	KS_parenleft,	KS_4,		KS_bracketleft,
404     KC(34),	KS_parenright,	KS_5,		KS_bracketright,
405     KC(35),	KS_at,		KS_6,
406     KC(36),	KS_plus,	KS_7,
407     KC(37),	KS_minus,	KS_8,
408     KC(38),	KS_slash,	KS_9,
409     KC(39),	KS_asterisk,	KS_0,
410     KC(44),	KS_space,	KS_nobreakspace,KS_underscore,
411     KC(45),	KS_equal,	KS_asciicircum,
412     KC(46),	KS_percent,	KS_grave,
413     KC(47),	KS_z,
414     KC(48),	KS_w,
415     KC(49),	KS_ccedilla,	KS_Ccedilla,
416     KC(50),	KS_ccedilla,	KS_Ccedilla,
417     KC(51),	KS_n,
418     KC(52),	KS_m,
419     KC(53),	KS_dollar,	KS_numbersign,
420     KC(54),	KS_g,		KS_G,		KS_mu,
421     KC(55),	KS_h,
422     KC(56),	KS_f,
423     KC(100),	KS_egrave,	KS_Egrave,	KS_slash,
424     KC(230),	KS_Mode_switch,	KS_Multi_key,
425 };
426 
427 static const keysym_t ukbd_keydesc_it[] = {
428 /*  pos      normal		shifted		altgr		shift-altgr */
429     KC(31),	KS_2,		KS_quotedbl,	KS_twosuperior,
430     KC(32),	KS_3,		KS_sterling,	KS_threesuperior,
431     KC(34),	KS_5,		KS_percent,
432     KC(35),	KS_6,		KS_ampersand,
433     KC(36),	KS_7,		KS_slash,
434     KC(37),	KS_8,		KS_parenleft,
435     KC(38),	KS_9,		KS_parenright,
436     KC(39),	KS_0,		KS_equal,
437     KC(45),	KS_apostrophe,	KS_question,
438     KC(46),	KS_igrave,	KS_asciicircum,
439     KC(47),	KS_egrave,	KS_eacute,	KS_braceleft,	KS_bracketleft,
440     KC(48),	KS_plus,	KS_asterisk,	KS_braceright,	KS_bracketright,
441     KC(49),	KS_ugrave,	KS_section,
442     KC(50),	KS_ugrave,	KS_section,
443     KC(51),	KS_ograve,	KS_Ccedilla,	KS_at,
444     KC(52),	KS_agrave,	KS_degree,	KS_numbersign,
445     KC(53),	KS_backslash,	KS_bar,
446     KC(54),	KS_comma,	KS_semicolon,
447     KC(55),	KS_period,	KS_colon,
448     KC(56),	KS_minus,	KS_underscore,
449     KC(100),	KS_less,	KS_greater,
450     KC(230),	KS_Mode_switch,	KS_Multi_key,
451 };
452 
453 static const keysym_t ukbd_keydesc_uk[] = {
454 /*  pos      normal		shifted		altgr		shift-altgr */
455     KC(30),	KS_1,		KS_exclam,	KS_plusminus,	KS_exclamdown,
456     KC(31),	KS_2,		KS_quotedbl,	KS_twosuperior,	KS_cent,
457     KC(32),	KS_3,		KS_sterling,	KS_threesuperior,
458     KC(33),	KS_4,		KS_dollar,	KS_acute,	KS_currency,
459     KC(34),	KS_5,		KS_percent,	KS_mu,		KS_yen,
460     KC(35),	KS_6,		KS_asciicircum,	KS_paragraph,
461     KC(36),	KS_7,		KS_ampersand,	KS_periodcentered,KS_brokenbar,
462     KC(37),	KS_8,		KS_asterisk,	KS_cedilla,	KS_ordfeminine,
463     KC(38),	KS_9,		KS_parenleft,	KS_onesuperior,	KS_diaeresis,
464     KC(39),	KS_0,		KS_parenright,	KS_masculine,	KS_copyright,
465     KC(45),	KS_minus,	KS_underscore,	KS_hyphen,	KS_ssharp,
466     KC(46),	KS_equal,	KS_plus,	KS_onehalf,	KS_guillemotleft,
467     KC(49),	KS_numbersign,	KS_asciitilde,	KS_sterling,	KS_thorn,
468     KC(50),	KS_numbersign,	KS_asciitilde,	KS_sterling,	KS_thorn,
469     KC(52),	KS_apostrophe,	KS_at,		KS_section,	KS_Agrave,
470     KC(53),	KS_grave,	KS_grave,	KS_agrave,	KS_agrave,
471     KC(100),	KS_backslash,	KS_bar,		KS_Udiaeresis,
472 };
473 
474 static const keysym_t ukbd_keydesc_jp[] = {
475 /*  pos      normal		shifted		altgr		shift-altgr */
476     KC(31),	KS_2,		KS_quotedbl,
477     KC(35),	KS_6,		KS_ampersand,
478     KC(36),	KS_7,		KS_apostrophe,
479     KC(37),	KS_8,		KS_parenleft,
480     KC(38),	KS_9,		KS_parenright,
481     KC(39),	KS_0,
482     KC(45),	KS_minus,	KS_equal,
483     KC(46),	KS_asciicircum,	KS_asciitilde,
484     KC(47),	KS_at,		KS_grave,
485     KC(48),	KS_bracketleft,	KS_braceleft,
486     KC(49),	KS_bracketright,KS_braceright,
487     KC(50),	KS_bracketright,KS_braceright,
488     KC(51),	KS_semicolon,	KS_plus,
489     KC(52),	KS_colon,	KS_asterisk,
490     KC(53),	KS_Zenkaku_Hankaku,/*replacegrave/tilde*/
491     KC(135),	KS_backslash,	KS_underscore,
492     KC(136),	KS_Hiragana_Katakana,
493     KC(137),	KS_backslash,	KS_bar,
494     KC(138),	KS_Henkan,
495     KC(139),	KS_Muhenkan,
496 };
497 
498 static const keysym_t ukbd_keydesc_es[] = {
499 /*  pos      normal		shifted		altgr		shift-altgr */
500     KC(30),	KS_1,		KS_exclam,	KS_bar,
501     KC(31),	KS_2,		KS_quotedbl,	KS_at,
502     KC(32),	KS_3,		KS_periodcentered,KS_numbersign,
503     KC(33),	KS_4,		KS_dollar,	KS_asciitilde,
504     KC(35),	KS_6,		KS_ampersand,
505     KC(36),	KS_7,		KS_slash,
506     KC(37),	KS_8,		KS_parenleft,
507     KC(38),	KS_9,		KS_parenright,
508     KC(39),	KS_0,		KS_equal,
509     KC(45),	KS_apostrophe,	KS_question,
510     KC(46),	KS_exclamdown,	KS_questiondown,
511     KC(47),	KS_dead_grave,	KS_dead_circumflex,KS_bracketleft,
512     KC(48),	KS_plus,	KS_asterisk,	KS_bracketright,
513     KC(49),	KS_ccedilla,	KS_Ccedilla,	KS_braceright,
514     KC(50),	KS_ccedilla,	KS_Ccedilla,	KS_braceright,
515     KC(51),	KS_ntilde,
516     KC(52),	KS_dead_acute,	KS_dead_diaeresis,KS_braceleft,
517     KC(53),	KS_degree,	KS_ordfeminine,	KS_backslash,
518     KC(54),	KS_comma,	KS_semicolon,
519     KC(55),	KS_period,	KS_colon,
520     KC(56),	KS_minus,	KS_underscore,
521     KC(100),	KS_less,	KS_greater,
522     KC(230),	KS_Mode_switch,	KS_Multi_key,
523 };
524 
525 static const keysym_t ukbd_keydesc_lt[] = {
526 /*  pos      normal		shifted		altgr		shift-altgr */
527     KC(8),	KS_e,		KS_E,		KS_currency,
528     KC(9),	KS_L7_scaron,	KS_L7_Scaron,
529     KC(20),	KS_L7_aogonek,	KS_L7_Aogonek,
530     KC(26),	KS_L7_zcaron,	KS_L7_Zcaron,
531     KC(27),	KS_L7_umacron,	KS_L7_Umacron,
532     KC(30),	KS_exclam,	KS_1,		KS_at,
533     KC(31),	KS_minus,	KS_2,		KS_underscore,
534     KC(32),	KS_slash,	KS_3,		KS_numbersign,
535     KC(33),	KS_semicolon,	KS_4,		KS_dollar,
536     KC(34),	KS_colon,	KS_5,		KS_paragraph,
537     KC(35),	KS_comma,	KS_6,		KS_asciicircum,
538     KC(36),	KS_period,	KS_7,		KS_ampersand,
539     KC(37),	KS_equal,	KS_8,		KS_asterisk,
540     KC(38),	KS_bracketleft,	KS_9,		KS_parenleft,
541     KC(39),	KS_bracketright,KS_0,		KS_parenright,
542     KC(44),	KS_space,	KS_space,	KS_nobreakspace,
543     KC(45),	KS_question,	KS_plus,	KS_apostrophe,
544     KC(46),	KS_x,		KS_X,		KS_percent,
545     KC(47),	KS_L7_iogonek,	KS_L7_Iogonek,	KS_braceleft,
546     KC(48),	KS_w,		KS_W,		KS_braceright,
547     KC(49),	KS_q,		KS_Q,		KS_bar,
548     KC(50),	KS_q,		KS_Q,		KS_bar,
549     KC(51),	KS_L7_uogonek,	KS_L7_Uogonek,
550     KC(52),	KS_L7_edot,	KS_L7_Edot,	KS_quotedbl,
551     KC(53),	KS_grave,	KS_asciitilde,
552     KC(54),	KS_L7_ccaron,	KS_L7_Ccaron,	KS_L7_dbllow9quot,
553     KC(55),	KS_f,		KS_F,		KS_L7_leftdblquot,
554     KC(56),	KS_L7_eogonek,	KS_L7_Eogonek,	KS_backslash,
555     KC(230),	KS_Mode_switch,	KS_Multi_key,
556 };
557 
558 static const keysym_t ukbd_keydesc_be[] = {
559 /*  pos      normal		shifted		altgr		shift-altgr */
560     KC(4),	KS_q,
561     KC(16),	KS_comma,	KS_question,
562     KC(20),	KS_a,
563     KC(26),	KS_z,
564     KC(29),	KS_w,
565     KC(30),	KS_ampersand,	KS_1,		KS_bar,
566     KC(31),	KS_eacute,	KS_2,		KS_at,
567     KC(32),	KS_quotedbl,	KS_3,		KS_numbersign,
568     KC(33),	KS_apostrophe,	KS_4,
569     KC(34),	KS_parenleft,	KS_5,
570     KC(35),	KS_section,	KS_6,		KS_asciicircum,
571     KC(36),	KS_egrave,	KS_7,
572     KC(37),	KS_exclam,	KS_8,
573     KC(38),	KS_ccedilla,	KS_9,		KS_braceleft,
574     KC(39),	KS_agrave,	KS_0,		KS_braceright,
575     KC(45),	KS_parenright,	KS_degree,
576     KC(46),	KS_minus,	KS_underscore,
577     KC(47),	KS_dead_circumflex,KS_dead_diaeresis,KS_bracketleft,
578     KC(48),	KS_dollar,	KS_asterisk,	KS_bracketright,
579     KC(49),	KS_mu,		KS_sterling,	KS_grave,
580     KC(50),	KS_mu,		KS_sterling,	KS_grave,
581     KC(51),	KS_m,
582     KC(52),	KS_ugrave,	KS_percent,	KS_acute,
583     KC(53),	KS_twosuperior,	KS_threesuperior,
584     KC(54),	KS_semicolon,	KS_period,
585     KC(55),	KS_colon,	KS_slash,
586     KC(56),	KS_equal,	KS_plus,	KS_asciitilde,
587     KC(100),	KS_less,	KS_greater,	KS_backslash,
588     KC(230),	KS_Mode_switch,	KS_Multi_key,
589 };
590 
591 
592 static const keysym_t ukbd_keydesc_us_dvorak[] = {
593 /*  pos      command		normal		shifted */
594     KC(5),	KS_x,
595     KC(6),	KS_j,
596     KC(7),	KS_e,
597     KC(8),	KS_period,	KS_greater,
598     KC(9),	KS_u,
599     KC(10),	KS_i,
600     KC(11),	KS_d,
601     KC(12),	KS_c,
602     KC(13),	KS_h,
603     KC(14),	KS_t,
604     KC(15),	KS_n,
605     KC(17),	KS_b,
606     KC(18),	KS_r,
607     KC(19),	KS_l,
608     KC(20),	KS_apostrophe,	KS_quotedbl,
609     KC(21),	KS_p,
610     KC(22),	KS_o,
611     KC(23),	KS_y,
612     KC(24),	KS_g,
613     KC(25),	KS_k,
614     KC(26),	KS_comma,	KS_less,
615     KC(27),	KS_q,
616     KC(28),	KS_f,
617     KC(29),	KS_semicolon,	KS_colon,
618     KC(45),	KS_bracketleft,	KS_braceleft,
619     KC(46),	KS_bracketright,KS_braceright,
620     KC(47),	KS_slash,	KS_question,
621     KC(48),	KS_equal,	KS_plus,
622     KC(51),	KS_s,
623     KC(52),	KS_minus,	KS_underscore,
624     KC(54),	KS_w,
625     KC(55),	KS_v,
626     KC(56),	KS_z,
627 };
628 
629 static const keysym_t ukbd_keydesc_us_colemak[] = {
630 /*  pos      command		normal		shifted */
631     KC(7),	KS_s,
632     KC(8),	KS_f,
633     KC(9),	KS_t,
634     KC(10),	KS_d,
635     KC(12),	KS_u,
636     KC(13),	KS_n,
637     KC(14),	KS_e,
638     KC(15),	KS_i,		KS_I,
639     KC(17),	KS_k,
640     KC(18),	KS_y,
641     KC(19),	KS_semicolon,	KS_colon,
642     KC(21),	KS_p,
643     KC(22),	KS_r,
644     KC(23),	KS_g,
645     KC(24),	KS_l,
646     KC(28),	KS_j,
647     KC(51),	KS_o,
648 };
649 
650 static const keysym_t ukbd_keydesc_swapctrlcaps[] = {
651 /*  pos      command		normal		shifted */
652     KC(57),	KS_Cmd1,	KS_Control_L,
653     KC(224),	KS_Caps_Lock,
654 };
655 
656 static const keysym_t ukbd_keydesc_iopener[] = {
657 /*  pos      command		normal		shifted */
658     KC(58),	KS_Cmd_Debugger,KS_Escape,
659     KC(59),	KS_Cmd_Screen0,	KS_f1,
660     KC(60),	KS_Cmd_Screen1,	KS_f2,
661     KC(61),	KS_Cmd_Screen2,	KS_f3,
662     KC(62),	KS_Cmd_Screen3,	KS_f4,
663     KC(63),	KS_Cmd_Screen4,	KS_f5,
664     KC(64),	KS_Cmd_Screen5,	KS_f6,
665     KC(65),	KS_Cmd_Screen6,	KS_f7,
666     KC(66),	KS_Cmd_Screen7,	KS_f8,
667     KC(67),	KS_Cmd_Screen8,	KS_f9,
668     KC(68),	KS_Cmd_Screen9,	KS_f10,
669     KC(69),	KS_f11,
670 };
671 
672 static const keysym_t ukbd_keydesc_ru[] = {
673 /*  pos      normal		shifted		altgr			shift-altgr */
674     KC(4),	KS_a,		KS_A,		KS_Cyrillic_ef,	KS_Cyrillic_EF,
675     KC(5),	KS_b,		KS_B,		KS_Cyrillic_i,	KS_Cyrillic_I,
676     KC(6),	KS_c,		KS_C,		KS_Cyrillic_es,	KS_Cyrillic_ES,
677     KC(7),	KS_d,		KS_D,		KS_Cyrillic_ve,	KS_Cyrillic_VE,
678     KC(8),	KS_e,		KS_E,		KS_Cyrillic_u,	KS_Cyrillic_U,
679     KC(9),	KS_f,		KS_F,		KS_Cyrillic_a,	KS_Cyrillic_A,
680     KC(10),	KS_g,		KS_G,		KS_Cyrillic_pe,	KS_Cyrillic_PE,
681     KC(11),	KS_h,		KS_H,		KS_Cyrillic_er,	KS_Cyrillic_ER,
682     KC(12),	KS_i,		KS_I,		KS_Cyrillic_sha,KS_Cyrillic_SHA,
683     KC(13),	KS_j,		KS_J,		KS_Cyrillic_o,	KS_Cyrillic_O,
684     KC(14),	KS_k,		KS_K,		KS_Cyrillic_el,	KS_Cyrillic_EL,
685     KC(15),	KS_l,		KS_L,		KS_Cyrillic_de,	KS_Cyrillic_DE,
686     KC(16),	KS_m,		KS_M,		KS_Cyrillic_ssighn,KS_Cyrillic_SSIGHN,
687     KC(17),	KS_n,		KS_N,		KS_Cyrillic_te,	KS_Cyrillic_TE,
688     KC(18),	KS_o,		KS_O,		KS_Cyrillic_scha,KS_Cyrillic_SCHA,
689     KC(19),	KS_p,		KS_P,		KS_Cyrillic_ze,	KS_Cyrillic_ZE,
690     KC(20),	KS_q,		KS_Q,		KS_Cyrillic_ishort,KS_Cyrillic_ISHORT,
691     KC(21),	KS_r,		KS_R,		KS_Cyrillic_ka,	KS_Cyrillic_KA,
692     KC(22),	KS_s,		KS_S,		KS_Cyrillic_yeru,KS_Cyrillic_YERU,
693     KC(23),	KS_t,		KS_T,		KS_Cyrillic_ie,	KS_Cyrillic_IE,
694     KC(24),	KS_u,		KS_U,		KS_Cyrillic_ge,	KS_Cyrillic_GE,
695     KC(25),	KS_v,		KS_V,		KS_Cyrillic_em,	KS_Cyrillic_EM,
696     KC(26),	KS_w,		KS_W,		KS_Cyrillic_tse,KS_Cyrillic_TSE,
697     KC(27),	KS_x,		KS_X,		KS_Cyrillic_che,KS_Cyrillic_CHE,
698     KC(28),	KS_y,		KS_Y,		KS_Cyrillic_en,	KS_Cyrillic_EN,
699     KC(29),	KS_z,		KS_Z,		KS_Cyrillic_ya,	KS_Cyrillic_YA,
700     KC(35),	KS_6,		KS_asciicircum,	KS_6,		KS_comma,
701     KC(36),	KS_7,		KS_ampersand,	KS_7,		KS_period,
702     KC(47),	KS_bracketleft,	KS_braceleft,	KS_Cyrillic_ha,	KS_Cyrillic_HA,
703     KC(48),	KS_bracketright,KS_braceright,	KS_Cyrillic_hsighn,KS_Cyrillic_HSIGHN,
704     KC(51),	KS_semicolon,	KS_colon,	KS_Cyrillic_zhe,KS_Cyrillic_ZHE,
705     KC(52),	KS_apostrophe,	KS_quotedbl,	KS_Cyrillic_e,	KS_Cyrillic_E,
706     KC(54),	KS_comma,	KS_less,	KS_Cyrillic_be,	KS_Cyrillic_BE,
707     KC(55),	KS_period,	KS_greater,	KS_Cyrillic_yu,	KS_Cyrillic_YU,
708     KC(56),	KS_slash,	KS_question,	KS_Cyrillic_yo,	KS_Cyrillic_YO,
709     KC(230),	KS_Mode_switch,	KS_Multi_key,
710 };
711 
712 static const keysym_t ukbd_keydesc_ua[] = {
713 /*  pos      normal		shifted		altgr			shift-altgr */
714     KC(4),	KS_a,		KS_A,		KS_Cyrillic_ef,	KS_Cyrillic_EF,
715     KC(5),	KS_b,		KS_B,		KS_Cyrillic_i,	KS_Cyrillic_I,
716     KC(6),	KS_c,		KS_C,		KS_Cyrillic_es,	KS_Cyrillic_ES,
717     KC(7),	KS_d,		KS_D,		KS_Cyrillic_ve,	KS_Cyrillic_VE,
718     KC(8),	KS_e,		KS_E,		KS_Cyrillic_u,	KS_Cyrillic_U,
719     KC(9),	KS_f,		KS_F,		KS_Cyrillic_a,	KS_Cyrillic_A,
720     KC(10),	KS_g,		KS_G,		KS_Cyrillic_pe,	KS_Cyrillic_PE,
721     KC(11),	KS_h,		KS_H,		KS_Cyrillic_er,	KS_Cyrillic_ER,
722     KC(12),	KS_i,		KS_I,		KS_Cyrillic_sha,KS_Cyrillic_SHA,
723     KC(13),	KS_j,		KS_J,		KS_Cyrillic_o,	KS_Cyrillic_O,
724     KC(14),	KS_k,		KS_K,		KS_Cyrillic_el,	KS_Cyrillic_EL,
725     KC(15),	KS_l,		KS_L,		KS_Cyrillic_de,	KS_Cyrillic_DE,
726     KC(16),	KS_m,		KS_M,		KS_Cyrillic_ssighn,KS_Cyrillic_SSIGHN,
727     KC(17),	KS_n,		KS_N,		KS_Cyrillic_te,	KS_Cyrillic_TE,
728     KC(18),	KS_o,		KS_O,		KS_Cyrillic_scha,KS_Cyrillic_SCHA,
729     KC(19),	KS_p,		KS_P,		KS_Cyrillic_ze,	KS_Cyrillic_ZE,
730     KC(20),	KS_q,		KS_Q,		KS_Cyrillic_ishort,KS_Cyrillic_ISHORT,
731     KC(21),	KS_r,		KS_R,		KS_Cyrillic_ka,	KS_Cyrillic_KA,
732     KC(22),	KS_s,		KS_S,		KS_Cyrillic_yeru,KS_Cyrillic_YERU,
733     KC(23),	KS_t,		KS_T,		KS_Cyrillic_ie,	KS_Cyrillic_IE,
734     KC(24),	KS_u,		KS_U,		KS_Cyrillic_ge,	KS_Cyrillic_GE,
735     KC(25),	KS_v,		KS_V,		KS_Cyrillic_em,	KS_Cyrillic_EM,
736     KC(26),	KS_w,		KS_W,		KS_Cyrillic_tse,KS_Cyrillic_TSE,
737     KC(27),	KS_x,		KS_X,		KS_Cyrillic_che,KS_Cyrillic_CHE,
738     KC(28),	KS_y,		KS_Y,		KS_Cyrillic_en,	KS_Cyrillic_EN,
739     KC(29),	KS_z,		KS_Z,		KS_Cyrillic_ya,	KS_Cyrillic_YA,
740     KC(35),	KS_6,		KS_asciicircum,	KS_6,		KS_comma,
741     KC(36),	KS_7,		KS_ampersand,	KS_7,		KS_period,
742     KC(45),	KS_minus,	KS_underscore,	KS_Cyrillic_iukr,KS_Cyrillic_IUKR,
743     KC(46),	KS_equal,	KS_plus,	KS_Cyrillic_yeukr,KS_Cyrillic_YEUKR,
744     KC(47),	KS_bracketleft,	KS_braceleft,	KS_Cyrillic_ha,	KS_Cyrillic_HA,
745     KC(48),	KS_bracketright,KS_braceright,	KS_Cyrillic_hsighn,KS_Cyrillic_HSIGHN,
746     KC(49),	KS_backslash,	KS_bar,		KS_Cyrillic_yi,	KS_Cyrillic_YI,
747     KC(50),	KS_backslash,	KS_bar,		KS_Cyrillic_yi,	KS_Cyrillic_YI,
748     KC(51),	KS_semicolon,	KS_colon,	KS_Cyrillic_zhe,KS_Cyrillic_ZHE,
749     KC(52),	KS_apostrophe,	KS_quotedbl,	KS_Cyrillic_e,	KS_Cyrillic_E,
750     KC(53),	KS_grave,	KS_asciitilde,	KS_Cyrillic_gheukr,KS_Cyrillic_GHEUKR,
751     KC(54),	KS_comma,	KS_less,	KS_Cyrillic_be,	KS_Cyrillic_BE,
752     KC(55),	KS_period,	KS_greater,	KS_Cyrillic_yu,	KS_Cyrillic_YU,
753     KC(56),	KS_slash,	KS_question,	KS_Cyrillic_yo,	KS_Cyrillic_YO,
754     KC(230),	KS_Mode_switch,	KS_Multi_key,
755 };
756 
757 static const keysym_t ukbd_keydesc_sg[] = {
758 /*  pos      normal		shifted		altgr		shift-altgr */
759     KC(8),	KS_e,		KS_E,		KS_currency,
760     KC(28),	KS_z,
761     KC(29),	KS_y,
762     KC(30),	KS_1,		KS_plus,	KS_bar,
763     KC(31),	KS_2,		KS_quotedbl,	KS_at,
764     KC(32),	KS_3,		KS_asterisk,	KS_numbersign,
765     KC(33),	KS_4,		KS_ccedilla,
766     KC(35),	KS_6,		KS_ampersand,	KS_notsign,
767     KC(36),	KS_7,		KS_slash,	KS_brokenbar,
768     KC(37),	KS_8,		KS_parenleft,	KS_cent,
769     KC(38),	KS_9,		KS_parenright,
770     KC(39),	KS_0,		KS_equal,
771     KC(45),	KS_apostrophe,	KS_question,	KS_dead_acute,
772     KC(46),	KS_dead_circumflex,KS_dead_grave,KS_dead_tilde,
773     KC(47),	KS_udiaeresis,	KS_egrave,	KS_bracketleft,
774     KC(48),	KS_dead_diaeresis,KS_exclam,	KS_bracketright,
775     KC(49),	KS_dollar,	KS_sterling,	KS_braceright,
776     KC(50),	KS_dollar,	KS_sterling,	KS_braceright,
777     KC(51),	KS_odiaeresis,	KS_eacute,
778     KC(52),	KS_adiaeresis,	KS_agrave,	KS_braceleft,
779     KC(53),	KS_section,	KS_degree,	KS_dead_abovering,
780     KC(54),	KS_comma,	KS_semicolon,
781     KC(55),	KS_period,	KS_colon,
782     KC(56),	KS_minus,	KS_underscore,
783     KC(100),	KS_less,	KS_greater,	KS_backslash,
784     KC(230),	KS_Mode_switch,	KS_Multi_key,
785 };
786 
787 static const keysym_t ukbd_keydesc_sg_nodead[] = {
788 /*  pos      normal		shifted		altgr		shift-altgr */
789     KC(45),	KS_apostrophe,	KS_question,	KS_acute,
790     KC(46),	KS_asciicircum,	KS_grave,	KS_asciitilde,
791     KC(48),	KS_diaeresis,	KS_exclam,	KS_bracketright,
792 };
793 
794 static const keysym_t ukbd_keydesc_sf[] = {
795 /*  pos      normal		shifted		altgr		shift-altgr */
796     KC(47),	KS_egrave,	KS_udiaeresis,	KS_bracketleft,
797     KC(51),	KS_eacute,	KS_odiaeresis,
798     KC(52),	KS_agrave,	KS_adiaeresis,	KS_braceleft,
799 };
800 
801 static const keysym_t ukbd_keydesc_pt[] = {
802 /*  pos      normal		shifted		altgr		shift-altgr */
803     KC(31),	KS_2,		KS_quotedbl,	KS_at,
804     KC(32),	KS_3,		KS_numbersign,	KS_sterling,
805     KC(35),	KS_6,		KS_ampersand,
806     KC(36),	KS_7,		KS_slash,	KS_braceleft,
807     KC(37),	KS_8,		KS_parenleft,	KS_bracketleft,
808     KC(38),	KS_9,		KS_parenright,	KS_bracketright,
809     KC(39),	KS_0,		KS_equal,	KS_braceright,
810     KC(45),	KS_apostrophe,	KS_question,
811     KC(46),	KS_less,	KS_greater,
812     KC(47),	KS_plus,	KS_asterisk,
813     KC(48),	KS_dead_acute,	KS_dead_grave,
814     KC(49),	KS_dead_tilde,	KS_dead_circumflex,
815     KC(50),	KS_dead_tilde,	KS_dead_circumflex,
816     KC(51),	KS_ccedilla,	KS_Ccedilla,
817     KC(52),	KS_masculine,	KS_ordfeminine,
818     KC(53),	KS_backslash,	KS_bar,
819     KC(54),	KS_comma,	KS_semicolon,
820     KC(55),	KS_period,	KS_colon,
821     KC(56),	KS_minus,	KS_underscore,
822     KC(100),	KS_less,	KS_greater,
823     KC(230),	KS_Mode_switch,	KS_Multi_key,
824 };
825 
826 static const keysym_t ukbd_keydesc_pt_apple[] = {
827 /*  pos		normal		shifted */
828     KC(46),	KS_plus,	KS_asterisk,
829     KC(47),	KS_masculine,	KS_ordfeminine,
830     KC(50),	KS_backslash,	KS_bar,
831     KC(52),	KS_dead_tilde,	KS_dead_circumflex
832 };
833 
834 static const keysym_t ukbd_keydesc_la[] = {
835 /*  pos      normal		shifted		altgr		shift-altgr */
836     KC(20),	KS_q,		KS_Q,		KS_at,
837     KC(30),	KS_1,		KS_exclam,
838     KC(31),	KS_2,		KS_quotedbl,
839     KC(32),	KS_3,		KS_numbersign,
840     KC(35),	KS_6,		KS_ampersand,
841     KC(36),	KS_7,		KS_slash,
842     KC(37),	KS_8,		KS_parenleft,
843     KC(38),	KS_9,		KS_parenright,
844     KC(39),	KS_0,		KS_equal,
845     KC(45),	KS_apostrophe,	KS_question,	KS_backslash,
846     KC(46),	KS_questiondown,KS_exclamdown,
847     KC(47),	KS_dead_acute,	KS_dead_diaeresis,
848     KC(48),	KS_plus,	KS_asterisk,	KS_asciitilde,
849     KC(49),	KS_braceright,	KS_bracketright,KS_dead_grave,
850     KC(50),	KS_braceright,	KS_bracketright,KS_dead_grave,
851     KC(51),	KS_ntilde,
852     KC(52),	KS_braceleft,	KS_bracketleft,	KS_dead_circumflex,
853     KC(53),	KS_bar,		KS_degree,	KS_notsign,
854     KC(54),	KS_comma,	KS_semicolon,
855     KC(55),	KS_period,	KS_colon,
856     KC(56),	KS_minus,	KS_underscore,
857     KC(100),	KS_less,	KS_greater,
858     KC(230),	KS_Mode_switch,	KS_Multi_key,
859 };
860 
861 static const keysym_t ukbd_keydesc_br[] = {
862 /*  pos      normal		shifted         altgr           shift-altgr */
863     KC(30),	KS_1,		KS_exclam,	KS_onesuperior,
864     KC(31),	KS_2,		KS_at,		KS_twosuperior,
865     KC(32),	KS_3,		KS_numbersign,	KS_threesuperior,
866     KC(33),	KS_4,		KS_dollar,	KS_sterling,
867     KC(34),	KS_5,		KS_percent,	KS_cent,
868     KC(35),	KS_6,		KS_dead_diaeresis,KS_notsign,
869     KC(46),	KS_equal,	KS_plus,	KS_section,
870     KC(47),	KS_dead_acute,	KS_dead_grave,
871     KC(48),	KS_bracketleft,	KS_braceleft,	KS_ordfeminine,
872     KC(49),	KS_bracketright,KS_braceright,	KS_masculine,
873     KC(50),	KS_bracketright,KS_braceright,	KS_masculine,
874     KC(51),	KS_ccedilla,	KS_Ccedilla,
875     KC(52),	KS_dead_tilde,	KS_dead_circumflex,
876     KC(53),	KS_apostrophe,	KS_quotedbl,
877     KC(56),	KS_semicolon,	KS_colon,
878     KC(99),	KS_KP_Delete,	KS_KP_Decimal,
879     KC(100),	KS_backslash,	KS_bar,
880     KC(135),	KS_slash,	KS_question,	KS_degree,
881 };
882 
883 static const keysym_t ukbd_keydesc_tr[] = {
884 /*  pos      normal		shifted         altgr           shift-altgr */
885     KC(12),	KS_L5_idotless,	KS_I,
886     KC(20),	KS_q,		KS_Q,		KS_at,
887     KC(31),	KS_2,		KS_apostrophe,	KS_sterling,
888     KC(32),	KS_3,		KS_asciicircum,	KS_numbersign,
889     KC(33),	KS_4,		KS_plus,	KS_dollar,
890     KC(34),	KS_5,		KS_percent,	KS_onehalf,
891     KC(35),	KS_6,		KS_ampersand,
892     KC(36),	KS_7,		KS_slash,	KS_braceleft,
893     KC(37),	KS_8,		KS_parenleft,	KS_bracketleft,
894     KC(38),	KS_9,		KS_parenright,	KS_bracketright,
895     KC(39),	KS_0,		KS_equal,	KS_braceright,
896     KC(45),	KS_asterisk,	KS_question,	KS_backslash,
897     KC(46),	KS_minus,	KS_underscore,
898     KC(47),	KS_L5_gbreve,	KS_L5_Gbreve,	KS_dead_diaeresis,
899     KC(48),	KS_udiaeresis,	KS_Udiaeresis,	KS_asciitilde,
900     KC(49),	KS_comma,	KS_semicolon,	KS_dead_grave,
901     KC(50),	KS_comma,	KS_semicolon,	KS_dead_grave,
902     KC(51),	KS_L5_scedilla,	KS_L5_Scedilla,	KS_dead_acute,
903     KC(52),	KS_i,		KS_L5_Idotabove,
904     KC(53),	KS_quotedbl,	KS_eacute,
905     KC(54),	KS_odiaeresis,	KS_Odiaeresis,
906     KC(55),	KS_ccedilla,	KS_Ccedilla,
907     KC(56),	KS_period,	KS_colon,
908     KC(100),	KS_less,	KS_greater,	KS_bar,
909     KC(230),	KS_Mode_switch,	KS_Multi_key,
910 };
911 
912 static const keysym_t ukbd_keydesc_tr_nodead[] = {
913 /*  pos      normal		shifted         altgr           shift-altgr */
914     KC(47),	KS_L5_gbreve,	KS_L5_Gbreve,
915     KC(49),	KS_comma,	KS_semicolon,	KS_grave,
916     KC(50),	KS_comma,	KS_semicolon,	KS_grave,
917     KC(51),	KS_L5_scedilla,	KS_L5_Scedilla,	KS_apostrophe,
918 };
919 
920 static const keysym_t ukbd_keydesc_pl[] = {
921 /*  pos      normal		shifted         altgr           shift-altgr */
922     KC(4),	KS_a,		KS_A,		KS_L2_aogonek,	KS_L2_Aogonek,
923     KC(6),	KS_c,		KS_C,		KS_L2_cacute,	KS_L2_Cacute,
924     KC(8),	KS_e,		KS_E,		KS_L2_eogonek,	KS_L2_Eogonek,
925     KC(15),	KS_l,		KS_L,		KS_L2_lstroke,	KS_L2_Lstroke,
926     KC(17),	KS_n,		KS_N,		KS_L2_nacute,	KS_L2_Nacute,
927     KC(18),	KS_o,		KS_O,		KS_oacute,	KS_Oacute,
928     KC(22),	KS_s,		KS_S,		KS_L2_sacute,	KS_L2_Sacute,
929     KC(27),	KS_x,		KS_X,		KS_L2_zacute,	KS_L2_Zacute,
930     KC(29),	KS_z,		KS_Z,		KS_L2_zdotabove,KS_L2_Zdotabove,
931     KC(230),	KS_Mode_switch,	KS_Multi_key,
932 };
933 
934 static const keysym_t ukbd_keydesc_hu[] = {
935 /*  pos      normal		shifted		altgr		shift-altgr */
936     KC(5),	KS_b,		KS_B,		KS_braceleft,
937     KC(6),	KS_c,		KS_C,		KS_ampersand,
938     KC(9),	KS_f,		KS_F,		KS_bracketleft,
939     KC(10),	KS_g,		KS_G,		KS_bracketright,
940     KC(12),	KS_i,		KS_I,		KS_iacute,
941     KC(13),	KS_j,		KS_J,		KS_iacute,
942     KC(17),	KS_n,		KS_N,		KS_braceright,
943     KC(20),	KS_q,		KS_Q,		KS_backslash,
944     KC(25),	KS_v,		KS_V,		KS_at,
945     KC(26),	KS_w,		KS_W,KS_bar,
946     KC(27),	KS_x,		KS_X,		KS_numbersign,
947     KC(28),	KS_z,		KS_Z,
948     KC(29),	KS_y,		KS_Y,		KS_greater,
949     KC(30),	KS_1,		KS_apostrophe,	KS_asciitilde,
950     KC(31),	KS_2,		KS_quotedbl,
951     KC(32),	KS_3,		KS_plus,	KS_asciicircum,
952     KC(33),	KS_4,		KS_exclam,
953     KC(34),	KS_5,		KS_percent,
954     KC(35),	KS_6,		KS_slash,
955     KC(36),	KS_7,		KS_equal,KS_grave,
956     KC(37),	KS_8,		KS_parenleft,
957     KC(38),	KS_9,		KS_parenright,	KS_acute,
958     KC(39),	KS_odiaeresis,	KS_Odiaeresis,
959     KC(45),	KS_udiaeresis,	KS_Udiaeresis,
960     KC(46),	KS_oacute,	KS_Oacute,
961     KC(47),	KS_odoubleacute,KS_Odoubleacute,KS_division,
962     KC(48),	KS_uacute,	KS_Uacute,	KS_multiply,
963     KC(49),	KS_udoubleacute,KS_Udoubleacute,KS_currency,
964     KC(50),	KS_udoubleacute,KS_Udoubleacute,KS_currency,
965     KC(51),	KS_eacute,	KS_Eacute,	KS_dollar,
966     KC(52),	KS_aacute,	KS_Aacute,	KS_ssharp,
967     KC(53),	KS_0,		KS_section,
968     KC(54),	KS_comma,	KS_question,	KS_semicolon,
969     KC(55),	KS_period,	KS_colon,
970     KC(56),	KS_minus,	KS_underscore,	KS_asterisk,
971     KC(100),	KS_iacute,	KS_Iacute,	KS_less,
972     KC(230),	KS_Mode_switch,	KS_Multi_key,
973 };
974 
975 static const keysym_t ukbd_keydesc_si[]=
976 {
977 /*  pos      normal		shifted		altgr		shift-altgr */
978     KC(5),	KS_b,		KS_B,		KS_braceleft,
979     KC(9),	KS_f,		KS_F,		KS_bracketleft,
980     KC(10),	KS_g,		KS_G,		KS_bracketright,
981     KC(14),	KS_k,		KS_K,		KS_L2_lstroke,
982     KC(15),	KS_l,		KS_L,		KS_L2_Lstroke,
983     KC(16),	KS_m,		KS_M,		KS_section,
984     KC(17),	KS_n,		KS_N,		KS_braceright,
985     KC(20),	KS_q,		KS_Q,		KS_backslash,
986     KC(25),	KS_v,		KS_V,		KS_at,
987     KC(26),	KS_w,		KS_W,		KS_bar,
988     KC(28),	KS_z,		KS_Z,
989     KC(29),	KS_y,		KS_Y,
990     KC(30),	KS_1,		KS_exclam,	KS_asciitilde,
991     KC(31),	KS_2,		KS_quotedbl,	KS_L2_caron,
992     KC(32),	KS_3,		KS_numbersign,	KS_asciicircum,
993     KC(33),	KS_4,		KS_dollar,	KS_L2_breve,
994     KC(34),	KS_5,		KS_percent,	KS_degree,
995     KC(35),	KS_6,		KS_ampersand,	KS_L2_ogonek,
996     KC(36),	KS_7,		KS_slash,	KS_grave,
997     KC(37),	KS_8,		KS_parenleft,	KS_L2_dotabove,
998     KC(38),	KS_9,		KS_parenright,	KS_acute,
999     KC(39),	KS_0,		KS_equal,	KS_L2_dblacute,
1000     KC(45),	KS_apostrophe,	KS_question,	KS_diaeresis,
1001     KC(46),	KS_plus,	KS_asterisk,	KS_cedilla,
1002     KC(47),	KS_L2_scaron,	KS_L2_Scaron,	KS_division,
1003     KC(48),	KS_L2_dstroke,	KS_L2_Dstroke,	KS_multiply,
1004     KC(49),	KS_L2_zcaron,	KS_L2_Zcaron,	KS_currency,
1005     KC(50),	KS_L2_zcaron,	KS_L2_Zcaron,	KS_currency,
1006     KC(51),	KS_L2_ccaron,	KS_L2_Ccaron,
1007     KC(52),	KS_L2_cacute,	KS_L2_Cacute,	KS_ssharp,
1008     KC(53),	KS_cedilla,	KS_diaeresis,
1009     KC(54),	KS_comma,	KS_semicolon,	KS_less,
1010     KC(55),	KS_period,	KS_colon,	KS_greater,
1011     KC(56),	KS_minus,	KS_underscore,
1012     KC(100),	KS_less,	KS_greater,
1013     KC(230),	KS_Mode_switch,	KS_Multi_key,
1014 };
1015 
1016 static const keysym_t ukbd_keydesc_cf[] = {
1017 /*  pos      normal		shifted		altgr		shift-altgr */
1018     KC(16),	KS_m,		KS_M,		KS_mu,
1019     KC(18),	KS_o,		KS_O,		KS_section,
1020     KC(19),	KS_p,		KS_P,		KS_paragraph,
1021     KC(30),	KS_1,		KS_exclam,	KS_plusminus,
1022     KC(31),	KS_2,		KS_quotedbl,	KS_at,
1023     KC(32),	KS_3,		KS_slash,	KS_sterling,
1024     KC(33),	KS_4,		KS_dollar,	KS_cent,
1025     KC(34),	KS_5,		KS_percent,	KS_diaeresis,
1026     KC(35),	KS_6,		KS_question,	KS_macron,
1027     KC(36),	KS_7,		KS_ampersand,	KS_brokenbar,
1028     KC(37),	KS_8,		KS_asterisk,	KS_twosuperior,
1029     KC(38),	KS_9,		KS_parenleft,	KS_threesuperior,
1030     KC(39),	KS_0,		KS_parenright,	KS_onequarter,
1031     KC(45),	KS_minus,	KS_underscore,	KS_onehalf,
1032     KC(46),	KS_equal,	KS_plus,	KS_threequarters,
1033     KC(47),	KS_dead_circumflex,KS_dead_circumflex,KS_bracketleft,
1034     KC(48),	KS_dead_cedilla,KS_dead_diaeresis,KS_bracketright,
1035     KC(49),	KS_less,	KS_greater,	KS_braceright,
1036     KC(50),	KS_less,	KS_greater,	KS_braceright,
1037     KC(51),	KS_semicolon,	KS_colon,	KS_asciitilde,
1038     KC(52),	KS_dead_grave,	KS_dead_grave,	KS_braceleft,
1039     KC(53),	KS_numbersign,	KS_bar,		KS_backslash,
1040     KC(54),	KS_comma,	KS_apostrophe,	KS_hyphen,
1041     KC(55),	KS_period,	KS_period,
1042     KC(56),	KS_eacute,	KS_Eacute,	KS_dead_acute,
1043     KC(100),	KS_guillemotleft,KS_guillemotright,KS_degree,
1044     KC(230),	KS_Mode_switch,KS_Multi_key,
1045 };
1046 
1047 static const keysym_t ukbd_keydesc_cf_nodead[] = {
1048 /*  pos      normal		shifted		altgr		shift-altgr */
1049     KC(47),	KS_asciicircum,KS_asciicircum,KS_bracketleft,
1050     KC(48),	KS_cedilla,	KS_diaeresis,	KS_bracketright,
1051     KC(52),	KS_grave,	KS_grave,	KS_braceleft,
1052     KC(56),	KS_eacute,	KS_Eacute,	KS_acute,
1053 };
1054 
1055 static const keysym_t ukbd_keydesc_lv[] = {
1056 /*  pos      normal		shifted		altgr		shift-altgr */
1057     KC(4),	KS_a,		KS_A,		KS_L7_amacron,	KS_L7_Amacron,
1058     KC(6),	KS_c,		KS_C,		KS_L7_ccaron,	KS_L7_Ccaron,
1059     KC(8),	KS_e,		KS_E,		KS_L7_emacron,	KS_L7_Emacron,
1060     KC(10),	KS_g,		KS_G,		KS_L7_gcedilla,	KS_L7_Gcedilla,
1061     KC(12),	KS_i,		KS_I,		KS_L7_imacron,	KS_L7_Imacron,
1062     KC(14),	KS_k,		KS_K,		KS_L7_kcedilla,	KS_L7_Kcedilla,
1063     KC(15),	KS_l,		KS_L,		KS_L7_lcedilla,	KS_L7_Lcedilla,
1064     KC(17),	KS_n,		KS_N,		KS_L7_ncedilla,	KS_L7_Ncedilla,
1065     KC(18),	KS_o,		KS_O,		KS_L7_omacron,	KS_L7_Omacron,
1066     KC(22),	KS_s,		KS_S,		KS_L7_scaron,	KS_L7_Scaron,
1067     KC(24),	KS_u,		KS_U,		KS_L7_umacron,	KS_L7_Umacron,
1068     KC(29),	KS_z,		KS_Z,		KS_L7_zcaron,	KS_L7_Zcaron,
1069     KC(230),	KS_Mode_switch,	KS_Multi_key,
1070 };
1071 
1072 static const keysym_t ukbd_keydesc_nl[] = {
1073 /*  pos      normal		shifted		altgr		shift-altgr */
1074     KC(6),	KS_c,		KS_C,		KS_cent,
1075     KC(16),	KS_m,		KS_M,		KS_mu,
1076     KC(21),	KS_r,		KS_R,		KS_paragraph,
1077     KC(22),	KS_s,		KS_S,		KS_ssharp,
1078     KC(27),	KS_x,		KS_X,		KS_guillemotright,
1079     KC(29),	KS_z,		KS_Z,		KS_guillemotleft,
1080     KC(30),	KS_1,		KS_exclam,	KS_onesuperior,
1081     KC(31),	KS_2,		KS_quotedbl,	KS_twosuperior,
1082     KC(32),	KS_3,		KS_numbersign,	KS_threesuperior,
1083     KC(33),	KS_4,		KS_dollar,	KS_onequarter,
1084     KC(34),	KS_5,		KS_percent,	KS_onehalf,
1085     KC(35),	KS_6,		KS_ampersand,	KS_threequarters,
1086     KC(36),	KS_7,		KS_underscore,	KS_sterling,
1087     KC(37),	KS_8,		KS_parenleft,	KS_braceleft,
1088     KC(38),	KS_9,		KS_parenright,	KS_braceright,
1089     KC(39),	KS_0,		KS_apostrophe,
1090     KC(45),	KS_slash,	KS_question,	KS_backslash,
1091     KC(46),	KS_degree,	KS_dead_tilde,	KS_dead_cedilla,
1092     KC(47),	KS_dead_diaeresis,KS_dead_circumflex,
1093     KC(48),	KS_asterisk,	KS_bar,
1094     KC(49),	KS_less,	KS_greater,
1095     KC(50),	KS_less,	KS_greater,
1096     KC(51),	KS_plus,	KS_plusminus,
1097     KC(52),	KS_dead_acute,	KS_dead_grave,
1098     KC(53),	KS_at,		KS_section,	KS_notsign,
1099     KC(54),	KS_comma,	KS_semicolon,
1100     KC(55),	KS_period,	KS_colon,	KS_periodcentered,
1101     KC(56),	KS_minus,	KS_equal,
1102     KC(100),	KS_bracketright,KS_bracketleft,	KS_brokenbar,
1103     KC(230),	KS_Mode_switch,	KS_Multi_key,
1104 };
1105 
1106 static const keysym_t ukbd_keydesc_nl_nodead[] = {
1107 /*  pos      normal		shifted		altgr		shift-altgr */
1108     KC(46),	KS_degree,	KS_asciitilde,	KS_cedilla,
1109     KC(47),	KS_quotedbl,	KS_asciicircum,
1110     KC(52),	KS_apostrophe,	KS_grave,
1111 };
1112 
1113 static const keysym_t ukbd_keydesc_is[] = {
1114 /*  pos      normal		shifted		altgr		shift-altgr */
1115 						/* euro currency */
1116     KC(8),	KS_e,		KS_E,
1117     KC(20),	KS_q,		KS_Q,		KS_at,
1118     KC(31),	KS_2,		KS_quotedbl,
1119     KC(35),	KS_6,		KS_ampersand,
1120     KC(36),	KS_7,		KS_slash,	KS_braceleft,
1121     KC(37),	KS_8,		KS_parenleft,	KS_bracketleft,
1122     KC(38),	KS_9,		KS_parenright,	KS_bracketright,
1123     KC(39),	KS_0,		KS_equal,	KS_braceright,
1124     KC(45),	KS_odiaeresis,	KS_Odiaeresis,	KS_backslash,
1125     KC(46),	KS_minus,	KS_underscore,
1126     KC(47),	KS_eth,
1127     KC(48),	KS_apostrophe,	KS_question,	KS_asciitilde,
1128     KC(49),	KS_plus,	KS_asterisk,	KS_grave,
1129     KC(50),	KS_plus,	KS_asterisk,	KS_grave,
1130     KC(51),	KS_ae,
1131     KC(52),	KS_dead_acute,	KS_dead_diaeresis,KS_dead_circumflex,
1132     KC(53),	KS_degree,	KS_diaeresis,
1133     KC(54),	KS_comma,	KS_semicolon,
1134     KC(55),	KS_period,	KS_colon,
1135     KC(56),	KS_thorn,
1136     KC(100),	KS_less,	KS_greater,	KS_bar,
1137     KC(230),	KS_Mode_switch,	KS_Multi_key,
1138 };
1139 
1140 static const keysym_t ukbd_keydesc_is_nodead[] = {
1141 /*  pos      normal		shifted		altgr		shift-altgr */
1142     KC(52),	KS_acute,	KS_diaeresis,	KS_asciicircum,
1143 };
1144 
1145 static const keysym_t ukbd_keydesc_ee[] = {
1146 /*  pos      normal		shifted		altgr		shift-altgr */
1147     KC(22),	KS_s,		KS_S,		KS_L2_scaron,	KS_L2_Scaron,
1148     KC(29),	KS_z,		KS_Z,		KS_L2_zcaron,	KS_L2_Zcaron,
1149     KC(31),	KS_2,		KS_quotedbl,	KS_at,
1150     KC(32),	KS_3,		KS_numbersign,	KS_sterling,
1151     KC(33),	KS_4,		KS_currency,	KS_dollar,
1152     KC(35),	KS_6,		KS_ampersand,
1153     KC(36),	KS_7,		KS_slash,	KS_braceleft,
1154     KC(37),	KS_8,		KS_parenleft,	KS_bracketleft,
1155     KC(38),	KS_9,		KS_parenright,	KS_bracketright,
1156     KC(39),	KS_0,		KS_equal,	KS_braceright,
1157     KC(45),	KS_plus,	KS_question,	KS_backslash,
1158     KC(46),	KS_dead_acute,	KS_dead_grave,
1159     KC(47),	KS_udiaeresis,
1160     KC(48),	KS_otilde,	KS_Otilde,	KS_section,
1161     KC(49),	KS_apostrophe,	KS_asterisk,	KS_onehalf,
1162     KC(50),	KS_apostrophe,	KS_asterisk,	KS_onehalf,
1163     KC(51),	KS_odiaeresis,
1164     KC(52),	KS_adiaeresis,	KS_Adiaeresis,	KS_dead_circumflex,
1165     KC(53),	KS_dead_caron,	KS_dead_tilde,
1166     KC(54),	KS_comma,	KS_semicolon,
1167     KC(55),	KS_period,	KS_colon,
1168     KC(56),	KS_minus,	KS_underscore,
1169     KC(100),	KS_less,	KS_greater,	KS_bar,		KS_brokenbar,
1170     KC(230),	KS_Mode_switch,	KS_Multi_key,
1171 };
1172 
1173 static const keysym_t ukbd_keydesc_ee_nodead[] = {
1174 /*  pos      normal		shifted		altgr		shift-altgr */
1175     KC(46),	KS_apostrophe,	KS_grave,
1176     KC(52),	KS_adiaeresis,	KS_Adiaeresis,	KS_asciicircum,
1177     KC(53),	KS_L2_caron,	KS_asciitilde,
1178 };
1179 
1180 #endif	/* WSKBD_NO_INTL_LAYOUTS */
1181 
1182 #define KBD_MAP(name, base, map) \
1183 			{ name, base, sizeof(map)/sizeof(keysym_t), map }
1184 
1185 const struct wscons_keydesc ukbd_keydesctab[] = {
1186 	KBD_MAP(KB_US,			0,	ukbd_keydesc_us),
1187 #if !defined(WSKBD_NO_INTL_LAYOUTS)
1188 	KBD_MAP(KB_DE,			KB_US,	ukbd_keydesc_de),
1189 	KBD_MAP(KB_DE | KB_NODEAD,	KB_DE,	ukbd_keydesc_de_nodead),
1190 	KBD_MAP(KB_FR,			KB_US,	ukbd_keydesc_fr),
1191 	KBD_MAP(KB_FR | KB_APPLE,	KB_FR,	ukbd_keydesc_fr_apple),
1192 	KBD_MAP(KB_FR | KB_DVORAK,	KB_US,	ukbd_keydesc_fr_dvorak_bepo),
1193 	KBD_MAP(KB_DK,			KB_US,	ukbd_keydesc_dk),
1194 	KBD_MAP(KB_DK | KB_NODEAD,	KB_DK,	ukbd_keydesc_dk_nodead),
1195 	KBD_MAP(KB_IT,			KB_US,	ukbd_keydesc_it),
1196 	KBD_MAP(KB_UK,			KB_US,	ukbd_keydesc_uk),
1197 	KBD_MAP(KB_JP,			KB_US,	ukbd_keydesc_jp),
1198 	KBD_MAP(KB_SV,			KB_DK,	ukbd_keydesc_sv),
1199 	KBD_MAP(KB_SV | KB_NODEAD,	KB_SV,	ukbd_keydesc_sv_nodead),
1200 	KBD_MAP(KB_NO,			KB_DK,	ukbd_keydesc_no),
1201 	KBD_MAP(KB_NO | KB_NODEAD,	KB_NO,	ukbd_keydesc_no_nodead),
1202 	KBD_MAP(KB_US | KB_DVORAK,	KB_US,	ukbd_keydesc_us_dvorak),
1203 	KBD_MAP(KB_US | KB_COLEMAK,	KB_US,	ukbd_keydesc_us_colemak),
1204 	KBD_MAP(KB_US | KB_SWAPCTRLCAPS, KB_US,	ukbd_keydesc_swapctrlcaps),
1205 	KBD_MAP(KB_US | KB_IOPENER,	KB_US,	ukbd_keydesc_iopener),
1206 	KBD_MAP(KB_UK | KB_SWAPCTRLCAPS, KB_UK,	ukbd_keydesc_swapctrlcaps),
1207 	KBD_MAP(KB_JP | KB_SWAPCTRLCAPS, KB_JP,	ukbd_keydesc_swapctrlcaps),
1208 	KBD_MAP(KB_FR | KB_SWAPCTRLCAPS, KB_FR,	ukbd_keydesc_swapctrlcaps),
1209 	KBD_MAP(KB_FR | KB_APPLE | KB_SWAPCTRLCAPS,	KB_FR | KB_APPLE,
1210 		ukbd_keydesc_swapctrlcaps),
1211 	KBD_MAP(KB_FR | KB_DVORAK | KB_SWAPCTRLCAPS,	KB_FR | KB_DVORAK,
1212 		ukbd_keydesc_swapctrlcaps),
1213 	KBD_MAP(KB_BE | KB_SWAPCTRLCAPS, KB_BE,	ukbd_keydesc_swapctrlcaps),
1214 	KBD_MAP(KB_US | KB_DVORAK | KB_SWAPCTRLCAPS,	KB_US | KB_DVORAK,
1215 		ukbd_keydesc_swapctrlcaps),
1216 	KBD_MAP(KB_US | KB_COLEMAK | KB_SWAPCTRLCAPS,	KB_US | KB_COLEMAK,
1217 		ukbd_keydesc_swapctrlcaps),
1218 	KBD_MAP(KB_US | KB_IOPENER | KB_SWAPCTRLCAPS,	KB_US | KB_IOPENER,
1219 		ukbd_keydesc_swapctrlcaps),
1220 	KBD_MAP(KB_ES,			KB_US,	ukbd_keydesc_es),
1221 	KBD_MAP(KB_BE,			KB_US,	ukbd_keydesc_be),
1222 	KBD_MAP(KB_RU,			KB_US,	ukbd_keydesc_ru),
1223 	KBD_MAP(KB_UA,			KB_US,	ukbd_keydesc_ua),
1224 	KBD_MAP(KB_SG,			KB_US,	ukbd_keydesc_sg),
1225 	KBD_MAP(KB_SG | KB_NODEAD,	KB_SG,	ukbd_keydesc_sg_nodead),
1226 	KBD_MAP(KB_SF,			KB_SG,	ukbd_keydesc_sf),
1227 	KBD_MAP(KB_SF | KB_NODEAD,	KB_SF,	ukbd_keydesc_sg_nodead),
1228 	KBD_MAP(KB_PT,			KB_US,	ukbd_keydesc_pt),
1229 	KBD_MAP(KB_PT | KB_APPLE,	KB_PT,	ukbd_keydesc_pt_apple),
1230 	KBD_MAP(KB_LT,			KB_US,	ukbd_keydesc_lt),
1231 	KBD_MAP(KB_LA,			KB_US,	ukbd_keydesc_la),
1232 	KBD_MAP(KB_BR,			KB_US,	ukbd_keydesc_br),
1233 	KBD_MAP(KB_TR,			KB_US,	ukbd_keydesc_tr),
1234 	KBD_MAP(KB_TR | KB_NODEAD,	KB_TR,	ukbd_keydesc_tr_nodead),
1235 	KBD_MAP(KB_PL,			KB_US,	ukbd_keydesc_pl),
1236 	KBD_MAP(KB_HU,			KB_US,	ukbd_keydesc_hu),
1237 	KBD_MAP(KB_SI,			KB_US,	ukbd_keydesc_si),
1238 	KBD_MAP(KB_CF,			KB_US, 	ukbd_keydesc_cf),
1239 	KBD_MAP(KB_CF | KB_NODEAD,	KB_CF,	ukbd_keydesc_cf_nodead),
1240 	KBD_MAP(KB_LV,			KB_US,	ukbd_keydesc_lv),
1241 	KBD_MAP(KB_NL,			KB_US, 	ukbd_keydesc_nl),
1242 	KBD_MAP(KB_NL | KB_NODEAD,	KB_NL,	ukbd_keydesc_nl_nodead),
1243 	KBD_MAP(KB_IS,			KB_US, 	ukbd_keydesc_is),
1244 	KBD_MAP(KB_IS | KB_NODEAD,	KB_IS, 	ukbd_keydesc_is_nodead),
1245 	KBD_MAP(KB_EE,			KB_US,	ukbd_keydesc_ee),
1246 	KBD_MAP(KB_EE | KB_NODEAD,	KB_EE,	ukbd_keydesc_ee_nodead),
1247 #endif	/* WSKBD_NO_INTL_LAYOUTS */
1248 	{0, 0, 0, 0}
1249 };
1250 
1251 #undef KBD_MAP
1252 #undef KC
1253