Subject: Adding sg to wskbdmap_mfii.c
To: None <current-users@netbsd.org>
From: Hernani Marques Madeira <hernani@tuners.ch>
List: current-users
Date: 07/21/2003 17:58:01
Hello @ all!
Would it be possible to add the sg (swissgerman) keymap to
the current source tree?
Here's a slightly modifed wskbdmap_mfii.c that I actually
use to work (as differential to the last public version):
*** wskbdmap_mfii.c Wed Apr 23 06:03:58 2003
--- wskbdmap_mfii+sg.c Wed Jun 25 19:37:24 2003
***************
*** 158,163 ****
--- 158,196 ----
KC(221), KS_Menu,
};
+
+ static const keysym_t pckbd_keydesc_sg[] = {
+ /* pos normal shifted
altgr shift-altgr */
+ KC(1), KS_Cmd_Debugger,KS_Escape,
+ KC(2), KS_1, KS_plus, KS_bar,
+ KC(3), KS_2, KS_quotedbl,KS_at,
+ KC(4), KS_3, KS_asterisk,KS_numbersign,
+ KC(5), KS_4, KS_ccedilla,
+ KC(6), KS_5, KS_percent,
+ KC(7), KS_6, KS_ampersand,
+ KC(8), KS_7, KS_slash,
KS_brokenbar,
+ KC(9), KS_8, KS_parenleft,KS_cent,
+ KC(10), KS_9, KS_parenright,
+ KC(11), KS_0, KS_equal,
+ KC(12), KS_apostrophe,KS_question,KS_dead_acute,
+ KC(13),
KS_dead_circumflex,KS_dead_grave,KS_dead_tilde,
+ KC(16), KS_q, KS_Q, KS_at,
+ KC(21), KS_z, KS_Z,
+ KC(26), KS_udiaeresis,KS_egrave,KS_bracketleft,
+ KC(27), KS_dead_diaeresis,KS_exclam,KS_bracketright,
+ KC(39), KS_odiaeresis,KS_eacute,
+ KC(40), KS_adiaeresis,KS_agrave,KS_braceleft,
+ KC(41), KS_section, KS_dead_abovering,
+ KC(43), KS_dollar, KS_sterling,
KS_braceright,
+ KC(44), KS_y, KS_Y,
+ KC(51), KS_comma, KS_semicolon,
+ KC(52), KS_period, KS_colon,
+ KC(53), KS_minus, KS_underscore,
+ KC(86), KS_less, KS_greater,
KS_backslash,
+ KC(184),KS_Mode_switch,KS_Multi_key,
+ };
+
+
static const keysym_t pckbd_keydesc_de[] = {
/* pos normal shifted altgr
shift-altgr */
KC(3), KS_2, KS_quotedbl,
KS_twosuperior,
***************
*** 492,497 ****
--- 525,531 ----
const struct wscons_keydesc pckbd_keydesctab[] = {
KBD_MAP(KB_US, 0,
pckbd_keydesc_us),
+ KBD_MAP(KB_SG, KB_US,
pckbd_keydesc_sg),
KBD_MAP(KB_DE, KB_US,
pckbd_keydesc_de),
KBD_MAP(KB_DE | KB_NODEAD, KB_DE,
pckbd_keydesc_de_nodead),
KBD_MAP(KB_FR, KB_US,
pckbd_keydesc_fr),
Thank you for any action!
Hernani Marques Madeira