From fb43bb5f19e589aa4f470b14eaa35f6f3bba04d6 Mon Sep 17 00:00:00 2001 From: drochner Date: Sat, 18 Apr 1998 10:57:13 +0000 Subject: [PATCH] Add danish keymap. From Soren S. Jorvang (PR kern/5312). --- sys/dev/wscons/wskbdmap_mfii.h | 35 +++++++++++++++++++++++++++++++++- sys/dev/wscons/wsksymdef.h | 4 +++- 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/sys/dev/wscons/wskbdmap_mfii.h b/sys/dev/wscons/wskbdmap_mfii.h index f58f106aebce..0efb67d388ba 100644 --- a/sys/dev/wscons/wskbdmap_mfii.h +++ b/sys/dev/wscons/wskbdmap_mfii.h @@ -1,4 +1,4 @@ -/* $NetBSD: wskbdmap_mfii.h,v 1.2 1998/04/18 09:51:20 drochner Exp $ */ +/* $NetBSD: wskbdmap_mfii.h,v 1.3 1998/04/18 10:57:13 drochner Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -182,6 +182,37 @@ static const keysym_t pckbd_keydesc_de_nodead[] = { KC(41), KS_asciicircum, KS_degree, }; +static const keysym_t pckbd_keydesc_dk[] = { +/* pos normal shifted altgr shift-altgr */ + KC(3), KS_2, KS_quotedbl, KS_at, + KC(4), KS_3, KS_numbersign, KS_sterling, + KC(5), KS_4, KS_currency, KS_dollar, + KC(7), KS_6, KS_ampersand, + KC(8), KS_7, KS_slash, KS_braceleft, + KC(9), KS_8, KS_parenleft, KS_bracketleft, + KC(10), KS_9, KS_parenright, KS_bracketright, + KC(11), KS_0, KS_equal, KS_braceright, + KC(12), KS_plus, KS_question, + KC(13), KS_dead_acute, KS_dead_grave, KS_bar, + KC(26), KS_aring, + KC(27), KS_dead_diaeresis, KS_dead_circumflex, KS_dead_tilde, + KC(39), KS_ae, + KC(40), KS_oslash, + KC(41), KS_onehalf, KS_paragraph, + KC(43), KS_apostrophe, KS_asterisk, + 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_dk_nodead[] = { +/* pos normal shifted altgr shift-altgr */ + KC(13), KS_apostrophe, KS_grave, KS_bar, + KC(27), KS_diaeresis, KS_asciicircum, KS_asciitilde, +}; + #define KBD_MAP(name, base, map) \ { name, base, sizeof(map)/sizeof(keysym_t), map } @@ -189,6 +220,8 @@ static const struct wscons_keydesc pckbd_keydesctab[] = { KBD_MAP(KB_US, 0, pckbd_keydesc_us), KBD_MAP(KB_DE, KB_US, pckbd_keydesc_de), KBD_MAP(KB_DE | KB_NODEAD, KB_DE, pckbd_keydesc_de_nodead), + KBD_MAP(KB_DK, KB_US, pckbd_keydesc_dk), + KBD_MAP(KB_DK | KB_NODEAD, KB_DK, pckbd_keydesc_dk_nodead), }; #undef KBD_MAP diff --git a/sys/dev/wscons/wsksymdef.h b/sys/dev/wscons/wsksymdef.h index 8952adf9f3f8..22c6a0f1661c 100644 --- a/sys/dev/wscons/wsksymdef.h +++ b/sys/dev/wscons/wsksymdef.h @@ -1,4 +1,4 @@ -/* $NetBSD: wsksymdef.h,v 1.4 1998/04/16 13:29:41 drochner Exp $ */ +/* $NetBSD: wsksymdef.h,v 1.5 1998/04/18 10:57:13 drochner Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -431,6 +431,7 @@ #define KB_USER 0x0100 #define KB_US 0x0200 #define KB_DE 0x0300 +#define KB_DK 0x0400 #define KB_NODEAD 0x0001 @@ -438,6 +439,7 @@ { KB_USER, "user" }, \ { KB_US, "us" }, \ { KB_DE, "de" }, \ + { KB_DK, "dk" }, \ { KB_NODEAD, "nodead" } #endif /* !_DEV_WSCONS_WSKSYMDEF_H_ */