Bug 4002

Summary: [XKB] xorg rules of compat for jp-layout keyboards
Product: xkeyboard-config Reporter: Tatsuo Sekine <tsekine>
Component: docAssignee: xkb
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high Keywords: movetoxkc
Version: unspecified   
Hardware: x86 (IA32)   
OS: All   
i915 platform: i915 features:

Description Tatsuo Sekine 2005-08-06 16:34:01 UTC
Keyboards for japanese require some special "compat".
Though xc/programs/xkbcomp/compat/japan file has been prepared for that, it is
not used by default rule of xorg (in xc/programs/xkbcomp/rules/xorg file).

For example, rules/sgi has following entry:
  ! layout        =       compat
    jp            =       complete+japan
This "japana" compat file is not sgi architecture specific, so rules/xorg should
have similar entry like following:

 ! model         layout  =       compat
   pc98          nec/jp  =       pc98(basic)
   *             jp       =       complete+japan
   *             *       =       complete

To be exact, keyboards which use "symbols/jp" or "symbols/sgi/jp" need "japan"
compat file, because Caps_Lock is assigned to Shift+<CAPS>.
If "japan" compat file does not used in those keyboards, <CAPS> without Shift
modifier is also interpreted as a Lock modifier (because symbols in modifier_map
are translated to keycode at last). "japan" compat file fixes this odd behavior.
Comment 1 Sergey V. Udaltsov 2006-04-08 10:18:03 UTC
Well, the rule files sgi and sun are not actively maintained these days. About
the base rules file, the idea of adding 
*             jp       =       complete+japan
looks reasonable to me. So if you confirm it will work with all models - I'd
commit it.
Comment 2 Tatsuo Sekine 2006-05-29 00:57:02 UTC
Well, I' ll confirm now! The settings

 ! model         layout  =       compat
   pc98          nec/jp  =       pc98(basic)
   *             jp      =       complete+japan
   *             *       =       complete

will work fine. Thanks in advance.
Comment 3 Sergey V. Udaltsov 2006-05-29 05:54:37 UTC

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.