1

this is a partial duplicate of the question Linux 'compose' key sequence extensions:

I am using ubuntu 13.04 with unity and I would like to have a specific composition sequence to work as defined in the X11 rules (<Multi_key> <acute> <c> produces now "ç") and to add a new one (<Multi_key> <z> <z> to produce "ʒ")

my ~/.XCompose contains both above rules, but the above behaviour is not here yet.

mariotomo
  • 171
  • 8

1 Answers1

1

The default GTK input method, gtk-im-context-simple, uses a compiled-in list of Compose sequences. You will need to make it use the XIM module.

Add this line to your ~/.xprofile file, then log out and log in again:

export GTK_IM_MODULE='xim'

To undo, remove the line.

u1686_grawity
  • 426,297
  • 64
  • 894
  • 966
  • 'compiled-in list', you really mean that there's a piece of software that defines a hard-coded list? do you know anything more about it? I'd like to file a bug about the (wrong) behaviour of compose acute c, but I do not know who to alert about it. – mariotomo Jul 30 '13 at 12:26
  • @mariotomo: Yes. When GTK is being compiled, the default X11 `Compose` file is transformed by a script into a C header [`gtkimcontextsimpleseqs.h`](https://git.gnome.org/browse/gtk+/tree/gtk/gtkimcontextsimpleseqs.h), which becomes part of the compiled input method. See also the comments at the top of that file. Bug reports go to [GNOME Bugzilla for `gtk+`](https://bugzilla.gnome.org/enter_bug.cgi?product=gtk%2B). – u1686_grawity Jul 30 '13 at 12:35
  • @mariotomo: However, it seems that the header is only regenerated manually every now and then, so it might have gotten out-of-date. – u1686_grawity Jul 30 '13 at 12:37
  • but this way I cannot use shift-ctrl-u to type in an arbitrary unicode character, can I? – mariotomo Jul 30 '13 at 13:21
  • and there is no way to alter it once it has been compiled? no extra configuration files? – mariotomo Jul 30 '13 at 13:22
  • No. If you want to configure it, use `xim` (X11's default input module). – u1686_grawity Jul 30 '13 at 13:53
  • regarding the custom composition rules, I find your answer perfect, but for the ć, I have opened this bug report. https://bugzilla.gnome.org/show_bug.cgi?id=705168. maybe you have some ideas/corrections about it? – mariotomo Jul 30 '13 at 19:45