On 9/20/07, Jan Willem Stumpel <[EMAIL PROTECTED]> wrote:
> The "jp" keyboard layout (/usr/share/X11/xkb/symbols/jp) does not
> seem to specify any 3rd (or 4th) level symbols. I do not know what
> you want to do with your AltGr key, but if it is to get things
> like AltGr-5 = Euro symbol, or AltGr-minus = dead macron key, you
> could try
>
> setxkbmap="us(alt-intl)+jp"
>
> or perhaps in your case
>
> setxkbmap="us(alt-intl)+jp(OADG109A)"
>
> I do not have a Japanese keyboard so I cannot test it completely.
> Please tell if this works or not.


I didn't use setxkbmap, but I applied the same idea to xorg.conf,
and it works:

Section "InputDevice"
    Identifier      "Elecom Japanese Keyboard "
    Driver          "kbd"
    Option          "CoreKeyboard"
    Option          "XkbRules"      "xorg"
    Option          "XkbModel"      "jp106"
    Option          "XkbLayout"     "jp,us"
    Option          "XkbVariant"    "OADG109A,intl" # correct yen symbol
    Option          "XkbOptions"
"lv3:ralt_switch,compose:lwin,grp:shift_toggle"
EndSection

The only thing is that in us intl mode, the keys map in a weird
combination of jp106/JP and pc105/US.

the ^ ~ key produces = + (as the key in that position would with pc105/US)
but the ¥ | key still produces ¥ | (I guess because there is no equivalent
on a pc105/US keyboard).

Anyway, this should be good enough, since I don't need the AltGr
symbols very often.

Thanks for the tip.


Cheers,
Kelly

Reply via email to