From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Sun, 2 Jan 2011 15:41:25 -0500 Message-ID: Subject: plan 9 compose sequences under X From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: 901137f2-ead6-11e9-9d60-3106f5b1d025 On Wed, Sep 22, 2010 at 1:56 PM, Russ Cox wrote: > Yes. =C2=A0https://help.ubuntu.com/community/ComposeKey has some > information on the X11 Compose sequence mechanism. =C2=A0I have > been meaning to prepare something in p9p to generate a config > that makes the X11 compose do exactly what p9p does (except > maybe the alt-X for spelling out Unicode by hex). =C2=A0If you make > one, please post it. =C2=A0mklatinkbd is probably a good start. Based on information from Anthony Martin, Tony Lainson, and Kris Maglione (thanks all!), I have added a -x flag to mklatinkbd, so that you can get the same compose sequences in GTK and QT programs that you can in Plan 9 programs. Quoting the updated keyboard(7): X WINDOWS Under X Windows, both the Alt key and the ``Multi key'' can begin a compose sequence in a Plan 9 program. It is also possible to configure X Windows to use the same keystroke mappings as the Plan 9 programs. First, generate an XCompose sequence list by using mklatinkbd: mklatinkbd -x $PLAN9/lib/keyboard >$HOME/.XCompose Second, configure a ``Multi key'' by running xmodmap -e 'keysym Super_L =3D Multi_key' (The name `Super_L' typically denotes the Windows key on recent keyboards.) Third, set these environment variables so that GTK- and QT- based programs will use the compose sequences: export GTK_IM_MODULE=3Dxim export QT_IM_MODULE=3Dxim Finally, start a new GTK- or QT-based program: gnome-terminal & In that terminal, typing the key sequence `Windows * a' should be interpreted as the Greek letter `=CE=B1'. If using the GNOME Window Manager, put the xmodmap and export commands into the file $HOME/.gnomerc to run them automatically at startup.