Comment 3 for bug 213346

Revision history for this message
In , Bryce Harrington (bryce) wrote :

Created an attachment (id=22258)
be.patch

Forwarding this patch from a Ubuntu bug reporter:
https://bugs.edge.launchpad.net/ubuntu/+source/xkeyboard-config/+bug/213346

[Problem]
On Belgian keyboards a couple characters are missing. The attached patch fixes this by adding the following line:
key <AD09> { [ o, O, oe, OE ] }; // o O œ Œ

[Original Report]
My computer is configured in English:
$ locale
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=

But my keyboard is Belgian. Relevant section of xorg.conf:
Section "InputDevice"
        Identifier "Generic Keyboard"
        Driver "kbd"
        Option "XkbRules" "xorg"
        Option "XkbModel" "pc105"
        Option "XkbLayout" "be"
EndSection

Special characters are defined in this file:
/usr/share/X11/xkb/symbols/be

However the "œ" and "Œ" (o and e attached) are missing in this file. Normally, they should be accessed via ALT-Gr+o and ALT-Gr+O

This is fixed by adding this line in /usr/share/X11/xkb/symbols/be :
key <AD09> { [ o, O, oe, OE ] }; // o O œ Œ

I don't know about the variants but it should be at least in the "basic" section. My corrected file is attached.

Once this file has been modified, restart X or type
$ setxkbmap -layout be