I configure xcompose and faced with strange behavior.

add a ~/.XCompose string

 <Multi_key> <Cyrillic_de>: "1" 

then “everything works”: after pressing (and releasing) the compose key followed by entering the letter d, the character 1 is entered.

and if you replace the line with this (one character added to the wildcard string):

 <Multi_key> <Cyrillic_de>: "11" 

then after pressing the compose key and then d nothing is entered, but a signal is heard, as if there is no such compose- sequence.

    1 answer 1

    If the input is made to a window using gtk , then you need to change the default input method module ( input method , ab for short).

    for example, the xim module is quite efficient with strings longer than one character.

    The method name is passed to x-clients using gtk via the GTK_IM_MODULE environment GTK_IM_MODULE . in order for all x-clients to receive it, it is better to assign it a value somewhere at the start of the x-session.

    This is usually easiest to do through the x-session resource file, which by default is called ~/.xsessionrc .

    add a line to it:

     export GTK_IM_MODULE="xim" 

    and restart the x-session.


    addition:

    for programs using qt , you must [re] define the variable QT_IM_MODULE :

     export QT_IM_MODULE="xim"