NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/44570: brazilian keyboard layout



>Number:         44570
>Category:       kern
>Synopsis:       brazilian keyboard layout
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 14 17:45:00 +0000 2011
>Originator:     hugo
>Release:        5.1
>Organization:
>Environment:
NetBSD 5.1.0_PATCH NETBSD 5.1.0_PATCH (GENERIC) #0: Sun Feb 13 19:06:43 BRST 
2011 root#fedora:/home/hugo/netbsd/src/sys/arch/amd64/compile/obj/GENERIC amd64
>Description:
Support for brazilian abnt2 keyboard layout.
http://en.wikipedia.org/wiki/Keyboard_layout#Portuguese_.28Brazil.29
>How-To-Repeat:

>Fix:
Index: src/sys/dev/wscons/wsksymdef.h
===================================================================
RCS file: /cvsroot/src/sys/dev/wscons/wsksymdef.h,v
retrieving revision 1.61.8.1
diff -c -r1.61.8.1 wsksymdef.h
*** src/sys/dev/wscons/wsksymdef.h      1 Nov 2009 16:13:10 -0000       1.61.8.1
--- src/sys/dev/wscons/wsksymdef.h      14 Feb 2011 17:34:22 -0000
***************
*** 641,646 ****
--- 641,647 ----
  action(KB_USER,       0,      0x0100, "user", ,       "User-defined") \
  action(KB_US, 0,      0x0200, "us",   ,       "US-English")   \
  action(KB_UK, 0,      0x0700, "uk",   ,       "UK-English")   \
+ action(KB_BR, 0,      0x1500, "br",   ,       "Brazilian")    \
  action(KB_BE, 0,      0x1300, "be",   ,       "Belgian")      \
  action(KB_DK, 0,      0x0400, "dk",   ,       "Danish")       \
  action(KB_FI, 0,      0x0900, "fi",   ,       "Finnish")      \
***************
*** 663,669 ****
  
  /* Define all the KB_xx numeric values using above table */
  #define KBF_ENUM(tag, tagf, value, cc, ccf, country) tag=value,
! enum { KB_ENC_FUN(KBF_ENUM) KB_NEXT=0x1500 };
  
  /* Define list of KB_xxx and country codes for array initialisation */
  #define KBF_ENCTAB(tag, tagf, value, cc, ccf, country) { tag, cc },
--- 664,670 ----
  
  /* Define all the KB_xx numeric values using above table */
  #define KBF_ENUM(tag, tagf, value, cc, ccf, country) tag=value,
! enum { KB_ENC_FUN(KBF_ENUM) KB_NEXT=0x1600 };
  
  /* Define list of KB_xxx and country codes for array initialisation */
  #define KBF_ENCTAB(tag, tagf, value, cc, ccf, country) { tag, cc },
---------------------------



I got this from OpenBSD:

Index: src/sys/dev/pckbport/wskbdmap_mfii.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pckbport/wskbdmap_mfii.c,v
retrieving revision 1.15.8.5
diff -c -r1.15.8.5 wskbdmap_mfii.c
*** src/sys/dev/pckbport/wskbdmap_mfii.c        15 Nov 2009 06:03:59 -0000      
1.15.8.5
--- src/sys/dev/pckbport/wskbdmap_mfii.c        14 Feb 2011 17:35:17 -0000
***************
*** 524,529 ****
--- 524,551 ----
      KC(184), KS_Mode_switch,  KS_Multi_key,
  };
  
+ static const keysym_t pckbd_keydesc_br[] = {
+ /*  pos      normal           shifted         altgr           shift-altgr */
+     KC(2),   KS_1,            KS_exclam,      KS_onesuperior,
+     KC(3),   KS_2,            KS_at,          KS_twosuperior,
+     KC(4),   KS_3,            KS_numbersign,  KS_threesuperior,
+     KC(5),   KS_4,            KS_dollar,      KS_sterling,
+     KC(6),   KS_5,            KS_percent,     KS_cent,
+     KC(7),   KS_6,            KS_dead_diaeresis,      KS_notsign,
+     KC(13),  KS_equal,                KS_plus,        KS_section,
+     KC(26),  KS_dead_acute,   KS_dead_grave,
+     KC(27),  KS_bracketleft,  KS_braceleft,   KS_ordfeminine,
+     KC(39),  KS_ccedilla,     KS_Ccedilla,
+     KC(40),  KS_dead_tilde,   KS_dead_circumflex,
+     KC(41),  KS_apostrophe,   KS_quotedbl,
+     KC(43),  KS_bracketright, KS_braceright,  KS_masculine,
+     KC(53),  KS_semicolon,    KS_colon,
+     KC(83),  KS_KP_Delete,    KS_KP_Decimal,
+     KC(86),  KS_backslash,    KS_bar,
+     KC(115), KS_slash,                KS_question,    KS_degree,
+ };
+ 
+ 
  static const keysym_t pckbd_keydesc_us_declk[] = {
  /*  pos      normal           shifted         altgr           shift-altgr */
      KC(1),    KS_grave,       KS_asciitilde, /* replace escape */
***************
*** 718,723 ****
--- 740,746 ----
        KBD_MAP(KB_PT,                  KB_US,  pckbd_keydesc_pt),
        KBD_MAP(KB_GR,                  KB_US,  pckbd_keydesc_gr),
        KBD_MAP(KB_HU,                  KB_US,  pckbd_keydesc_hu),
+       KBD_MAP(KB_BR,                  KB_US,  pckbd_keydesc_br),
  #endif /* WSKBD_USONLY */
  
        /* placeholders */
--------------------



Home | Main Index | Thread Index | Old Index