The Compose Key
% Remco Bloemen % 2014-02-27, last updated 2014-03-04
Unless you are shouting on online fora, the tab key is pretty much useless. I've remapped it to a compose key. With XCompose you can enter all sorts of unicode characters using the compose key followed by key sequences. But, the format to configure this is a bit verbose:
<Multi_key> <A> <A> : "∀"
<Multi_key> <C> <c> : "∁"
<Multi_key> <p> <d> : "∂"
<Multi_key> <E> <E> : "∃"
<Multi_key> <slash> <E> <E> : "∄"
<Multi_key> <q> <e> <d> : "∎"
<Multi_key> <slash> <o> : "∅"
<Multi_key> <plus> <minus> : "±"
<Multi_key> <minus> <plus> : "∓"
<Multi_key> <v> <slash> : "√"
<Multi_key> <slash> <asciitilde> <minus> : "≄"
<Multi_key> <asciitilde> <equal> : "≅"
<Multi_key> <slash> <asciitilde> <equal> : "≇"
<Multi_key> <asciitilde> <asciitilde> <space> : "≈"
To fix this I developed my own specification format that compiles to the above format. It looks like:
∀ AA
∁ Cc
∂ pd
∃ EE
∄ /EE
∎ qed
∅ /o
± +-
∓ -+
√ v/
≄ /~-
≅ ~=
≇ /~=
≈ ~~
#!/usr/bin/python
# coding=utf-8
= tryexceptbreakcontinue
&&
xmodmap -pke
Full source is available on https://github.com/Recmo/XCompile.