[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cf encoding and a question
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: cf encoding and a question
- From: Arnaud Bergeron <abergeron_(_at_)_gmail_(_dot_)_com>
- Date: Thu, 5 May 2005 14:34:23 -0400
- Reply-to: Arnaud Bergeron <abergeron_(_at_)_gmail_(_dot_)_com>
I did Canadian-French encoding.
I would like to work on a system to load keyboard encodings from files
rather than having them compiled-in. Just tell me if this will be
rejected automatically or if it has a chance to make it into the tree.
And the patch for the encoding:
Index: wskbdmap_mfii.c
===================================================================
RCS file: /cvs/src/sys/dev/pckbc/wskbdmap_mfii.c,v
retrieving revision 1.27
diff -u -r1.27 wskbdmap_mfii.c
--- wskbdmap_mfii.c 4 May 2005 18:00:30 -0000 1.27
+++ wskbdmap_mfii.c 5 May 2005 18:21:55 -0000
@@ -872,6 +872,44 @@
KC(184), KS_Mode_switch, KS_Multi_key,
};
+static const keysym_t pckbd_keydesc_cf[] = {
+/* pos normal shifted altgr shift-altgr */
+ KC(2), KS_1, KS_exclam, KS_plusminus,
+ KC(3), KS_2, KS_quotedbl, KS_at,
+ KC(4), KS_3, KS_slash, KS_sterling,
+ KC(5), KS_4, KS_dollar, KS_cent,
+ KC(6), KS_5, KS_percent, KS_diaeresis,
+ KC(7), KS_6, KS_question, KS_macron,
+ KC(8), KS_7, KS_ampersand, KS_brokenbar,
+ KC(9), KS_8, KS_asterisk, KS_twosuperior,
+ KC(10), KS_9, KS_parenleft, KS_threesuperior,
+ KC(11), KS_0, KS_parenright, KS_onequarter,
+ KC(12), KS_minus, KS_underscore, KS_onehalf,
+ KC(13), KS_equal, KS_plus, KS_threequarters,
+ KC(24), KS_o, KS_O, KS_section,
+ KC(25), KS_p, KS_P, KS_paragraph,
+ KC(26), KS_dead_circumflex, KS_dead_circumflex, KS_bracketleft,
+ KC(27), KS_dead_cedilla, KS_dead_diaeresis, KS_bracketright,
+ KC(39), KS_semicolon, KS_colon, KS_asciitilde,
+ KC(40), KS_dead_grave, KS_dead_grave, KS_braceleft,
+ KC(41), KS_numbersign, KS_bar, KS_backslash,
+ KC(43), KS_less, KS_greater, KS_braceright,
+ KC(50), KS_m, KS_M, KS_mu,
+ KC(51), KS_comma, KS_apostrophe, KS_hyphen,
+ KC(52), KS_period, KS_period,
+ KC(53), KS_eacute, KS_Eacute, KS_dead_acute,
+ KC(86), KS_guillemotleft, KS_guillemotright, KS_degree,
+ KC(184), KS_Mode_switch, KS_Multi_key,
+};
+
+const struct keysym_t pckbd_keydesc_cf_nodead[] = {
+/* pos normal shifted altgr shift-altgr */
+ KC(26), KS_circumflex, KS_circumflex, KS_bracketleft,
+ KC(27), KS_cedilla, KS_diaeresis, KS_bracketright,
+ KC(40), KS_grave, KS_grave, KS_braceleft,
+ KC(53), KS_eacute, KS_Eacute, KS_acute,
+};
+
#endif /* SMALL_KERNEL */
#define KBD_MAP(name, base, map) \
@@ -920,6 +958,8 @@
KBD_MAP(KB_PL, KB_US, pckbd_keydesc_pl),
KBD_MAP(KB_HU, KB_US, pckbd_keydesc_hu),
KBD_MAP(KB_SI, KB_US, pckbd_keydesc_si),
+ KBD_MAP(KB_CF, KB_US, pckbd_keydesc_cf),
+ KBD_MAP(KB_CF | KB_NODEAD, KB_CF, pckbd_keydesc_cf_nodead),
#endif /* SMALL_KERNEL */
{0, 0, 0, 0}
};
Index: wsksymdef.h
===================================================================
RCS file: /cvs/src/sys/dev/wscons/wsksymdef.h,v
retrieving revision 1.25
diff -u -r1.25 wsksymdef.h
--- wsksymdef.h 16 Mar 2004 07:50:28 -0000 1.25
+++ wsksymdef.h 5 May 2005 18:25:01 -0000
@@ -698,6 +698,7 @@
#define KB_TR 0x1700
#define KB_PL 0x1800
#define KB_SI 0x1900
+#define KB_CF 0x1a00
#define KB_NODEAD 0x0001
#define KB_DECLK 0x0002 /* DEC LKnnn layout */
@@ -733,7 +734,8 @@
{ KB_NL, "nl" }, \
{ KB_TR, "tr" }, \
{ KB_PL, "pl" }, \
- { KB_SI, "si" }
+ { KB_SI, "si" }, \
+ { KB_CF, "cf" }
#define KB_VARTAB \
{ KB_NODEAD, "nodead" }, \
--
Fourth law of programming:
Anything that can go wrong wi
sendmail: segmentation violation - core dumped
Visit your host, monkey.org