several APL compose sequences work only when redefined
To reproduce, add the following three lines at the end of the
first layout ("basic") in /usr/share/X11/xdb/symbols/us
:
key <AB08> {[ U22A4, U2218 ]};
key <AB09> {[ U22A5, U25CB ]};
key <AB10> {[ U22C4, U2395 ]};
Then run setxkbmap us
and type the following keys to verify
that they now produce APL symbols: ,
.
/
<
>
and ?
.
They should produce: ⊤
⊥
⋄
∘
○
and ⎕
.
Now try to compose "⌶" by typing Cmps , .
(or in fact: Cmps ⊤ ⊥
).
It does not work, and not in the reverse order either -- at the first
keystroke after "Cmps", there is a beep, indicating that there is no
compose sequence that starts with ⊤ or ⊥, and the subsequent keystroke
is entered verbatim. But the following two compose sequences are
found in /usr/share/X11/locale/en_US.UTF-8/Compose
:
<Multi_key> <U22a5> <U22a4> : "⌶" U2336 # ⊥ ⊤ APL FUNCTIONAL SYMBOL I-BEAM
<Multi_key> <U22a4> <U22a5> : "⌶" U2336 # ⊥ ⊤ APL FUNCTIONAL SYMBOL I-BEAM
Somehow they do not take effect. :|
Now create an ~/.XCompose
file with the following lines:
<Multi_key> <U22a5> <U22a4> : "⌶"
<Multi_key> <U22a4> <U22a5> : "⌶"
<Multi_key> <U2395> <U22c4> : "⌺"
<Multi_key> <U22c4> <U2395> : "⌺"
<Multi_key> <U2395> <U2218> : "⌻"
<Multi_key> <U2218> <U2395> : "⌻"
<Multi_key> <U2395> <U25cb> : "⌼"
<Multi_key> <U25cb> <U2395> : "⌼"
Log out and log back in, run setxkbmap us
again, and now see that
Cmps , .
and Cmps . ,
do produce ⌶ (the I-beam symbol).
The same goes for the other listed compose sequences (and several others):
they all occur in /usr/share/X11/locale/en_US.UTF-8/Compose
, but they
only work when they are copied into ~/.XCompose
.
What is going wrong here? Is it some interaction with the compose sequences of GTK?
(To restore the basic us layout, delete the three added lines and run
setxkbmap us
again.)