Subject: brazilian keyboard patch
To: NetBSD hpcarm <port-hpcarm@NetBSD.org>
From: Rafael Diniz <rafael2k@terra.com.br>
List: port-hpcarm
Date: 12/14/2003 12:32:55
--Boundary-00=_3hF3/H5BRUn5rBL
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
I soved my problems with keyboard and made this patch against the kernel on=
=20
=2Dcurrent:
I'll make a Xmodmap file too.
Bye,
Rafael Diniz
=20
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+=
=2D+-
Engenharia da Computa=E7=E3o -- Unicamp
http://www.gnu.org/philosophy/why-free.pt.html
Usu=E1rio do sistema operacional GNU/Linux
Chave PGP: http://www.dcc.unicamp.br/~ra017126/pubkey.asc
"Acreditar num conhecimento que pode ser vendido e
comprado =E9 uma forma sutil (e cruel) de perpetuar a ignor=E2ncia."
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+=
=2D+-
--Boundary-00=_3hF3/H5BRUn5rBL
Content-Type: text/x-diff;
charset="us-ascii";
name="pt_BR-kbd.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="pt_BR-kbd.patch"
--- sys/arch/hpcarm/dev/j720kbdmap.c.orig 2003-09-15 21:03:10.000000000 +0000
+++ sys/arch/hpcarm/dev/j720kbdmap.c 2003-12-14 11:42:16.000000000 +0000
@@ -187,6 +187,37 @@
KC(91), KS_backslash, KS_bar,
};
+static const keysym_t j720kbd_keydesc_pt[] = {
+/* pos normal shifted altgr shift-altgr */
+ KC(17), KS_1, KS_exclam, KS_onesuperior,
+ KC(18), KS_2, KS_at, KS_twosuperior,
+ KC(19), KS_3, KS_numbersign, KS_threesuperior,
+ KC(20), KS_4, KS_backslash, KS_dollar,
+ KC(21), KS_5, KS_percent, KS_cent,
+ KC(22), KS_6, KS_dead_diaeresis, KS_notsign,
+ KC(23), KS_7, KS_ampersand, KS_sterling,
+ KC(28), KS_equal, KS_plus, KS_section,
+ KC(33), KS_q, KS_Q, KS_slash,
+ KC(34), KS_w, KS_W, KS_question,
+ KC(35), KS_e, KS_E,
+ KC(42), KS_p, KS_P,
+ KC(43), KS_dead_acute, KS_dead_grave,
+ KC(49), KS_a, KS_A, KS_degree,
+ KC(58), KS_ccedilla,
+ KC(59), KS_bracketleft, KS_braceleft, KS_ordfeminine,
+ KC(60), KS_bracketright, KS_braceright, KS_masculine,
+ KC(65), KS_z, KS_Z, KS_backslash,
+ KC(66), KS_x, KS_X, KS_bar,
+ KC(72), KS_comma, KS_less, KS_guillemotleft,
+ KC(73), KS_period, KS_greater, KS_guillemotright,
+ KC(74), KS_semicolon, KS_colon,
+ KC(75), KS_dead_tilde, KS_dead_circumflex,
+ KC(83), KS_Shift_L, KS_Caps_Lock,
+ KC(102), KS_apostrophe, KS_quotedbl,
+ KC(113), KS_slash, KS_bar, KS_backslash, /* W1nd0w$ key */
+ KC(120), KS_Mode_switch, KS_Multi_key,
+};
+
#define KBD_MAP(name, base, map) \
{ name, base, sizeof(map)/sizeof(keysym_t), map }
/* KBD_NULLMAP generates a entry for machine native variant.
@@ -197,6 +228,7 @@
KBD_MAP(KB_US, 0, j720kbd_keydesc_us),
KBD_MAP(KB_JP, KB_US, j720kbd_keydesc_jp),
KBD_MAP(KB_FR, KB_US, j720kbd_keydesc_fr),
+ KBD_MAP(KB_PT, KB_US, j720kbd_keydesc_pt),
{0, 0, 0, 0}
};
--Boundary-00=_3hF3/H5BRUn5rBL--