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