Skip to main content
Welcome guest. | Register | Login | Post

compose sequence customization ?

1 reply [Last post]
free-zombie's picture
Offline
Joined: 2006-03-08

Is there a way to customize the codes for the compose key in X11 ? for example: make produce ĉ)
The Compose files in /usr/share/X11/locale/ are not being followed (though subsets are accurate).
[I am running ubuntu dapper and debian sid)

free-zombie's picture
Offline
Joined: 2006-03-08
Solved. it was all a GTK

Solved. it was all a GTK issue. For GTK apps to use the standard X11 compose sequences, you must set the environment variable
export GTK_IM_MODULE=xim
In ubuntu, this is easiest done by adding the line to ~/.xprofile - it will thus be set before gnome (or other DE) starts.
For easy Esperanto typing, I added the following to /usr/share/X11/locale/en_US.UTF-8/Compose :

<Multi_key> <u> <x> : "Å­" U016D # LATIN SMALL LETTER U WITH BREVE
<Multi_key> <U> <x> : "Ŭ" U016C # LATIN CAPITAL LETTER U WITH BREVE
<Multi_key> <U> <X> : "Ŭ" U016C # LATIN CAPITAL LETTER U WITH BREVE

<Multi_key> <c> <x> : "ĉ" U0109 # LATIN SMALL LETTER   C WITH CIRCUMFLEX
<Multi_key> <C> <x> : "Ĉ" U0108 # LATIN CAPITAL LETTER C WITH CIRCUMFLEX
<Multi_key> <C> <X> : "Ĉ" U0108 # LATIN CAPITAL LETTER C WITH CIRCUMFLEX

<Multi_key> <g> <x> : "ĝ" U011C # LATIN SMALL LETTER   G WITH CIRCUMFLEX
<Multi_key> <G> <x> : "Ĝ" U011B # LATIN CAPITAL LETTER G WITH CIRCUMFLEX
<Multi_key> <G> <X> : "Ĝ" U011B # LATIN CAPITAL LETTER G WITH CIRCUMFLEX

<Multi_key> <h> <x> : "Ä¥" U0125 # LATIN SMALL LETTER   H WITH CIRCUMFLEX
<Multi_key> <H> <x> : "Ĥ" U0124 # LATIN CAPITAL LETTER H WITH CIRCUMFLEX
<Multi_key> <H> <X> : "Ĥ" U0124 # LATIN CAPITAL LETTER H WITH CIRCUMFLEX

<Multi_key> <j> <x> : "ĵ" U0135 # LATIN SMALL LETTER   J WITH CIRCUMFLEX
<Multi_key> <J> <x> : "Ä´" U0134 # LATIN CAPITAL LETTER J WITH CIRCUMFLEX
<Multi_key> <J> <X> : "Ä´" U0134 # LATIN CAPITAL LETTER J WITH CIRCUMFLEX

<Multi_key> <s> <x> : "ŝ" U015D # LATIN SMALL LETTER   S WITH CIRCUMFLEX
<Multi_key> <S> <x> : "Ŝ" U015C # LATIN CAPITAL LETTER S WITH CIRCUMFLEX
<Multi_key> <S> <X> : "Ŝ" U015C # LATIN CAPITAL LETTER S WITH CIRCUMFLEX

Comment viewing options