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