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