mkogg.py: Fix 'self.get_mp4_metadata(self, source)'
[blog.git] / posts / Compose_key.mdwn
1 Add the [compose key][wikipedia] to your [[Xmodmap]] file with something like
2
3     keycode 134 = Multi_key
4
5 The compose key has it's own unicode symbol: ⎄, which I'll use in the
6 following composition tables.
7
8 Accents
9 -------
10
11 * ⎄`a à
12 * ⎄'a á
13 * ⎄^a â
14 * ⎄ca ǎ
15 * ⎄ba ă
16 * ⎄oa å
17 * ⎄!a ạ
18 * ⎄.a ȧ
19 * ⎄"a ä
20 * ⎄~a ã
21 * ⎄_a ā
22 * ⎄;a ą
23 * ⎄,c ç
24
25 Weird letters
26 -------------
27
28 * ⎄AE Æ
29 * ⎄ae æ
30 * ⎄ss ß
31 * ⎄TH Þ
32 * ⎄th þ
33
34 Currency
35 --------
36
37 * ⎄=C €
38 * ⎄|c ¢
39 * ⎄-L £
40
41 Typography
42 ----------
43
44 * ⎄<< «
45 * ⎄>> »
46 * ⎄"< “
47 * ⎄"> ”
48 * ⎄'< ‘
49 * ⎄'> ’
50 * ⎄.. …
51 * ⎄p! ¶
52 * ⎄os §
53 * ⎄?? ¿
54 * ⎄!! ¡
55 * ⎄--- — (em dash)
56 * ⎄--. – (em dash)
57
58 Math
59 ----
60
61 * ⎄oo °
62 * ⎄^0 ⁰
63 * ⎄^1 ¹
64 * ⎄_1 ₁
65 * ⎄12 ½
66 * ⎄+- ±
67 * ⎄xx ×
68 * ⎄:- ÷
69 * ⎄/o ø
70 * ⎄mu µ
71
72 Business
73 --------
74
75 * ⎄oc ©
76 * ⎄or ®
77 * ⎄tm ™
78
79 Emoticons
80 ---------
81
82 * ⎄:) ☺
83 * ⎄:( ☹
84
85 As you can imagine, the list goes on and on.  The compositing system
86 depends on your application (see the [Ubuntu wiki][ubuntu] for Gnome
87 notes), but if you're using the X Input Method (XIM), your compose
88 table depends on your locale:
89
90     $ echo $LANG
91     en_US.UTF-8
92     $ grep $LANG\$ /usr/share/X11/locale/compose.dir
93     en_US.UTF-8/Compose             en_US.UTF-8
94     en_US.UTF-8/Compose:            en_US.UTF-8
95     $ less /usr/share/X11/locale/en_US.UTF-8/Compose
96
97 If you want to customize your compose keys, just add your own rules to
98 an `~/.XCompose` file:
99
100     $ cat ~/.XCompose
101     include "%L"
102
103     <Multi_key> <h> <o> <m> <e> : "http://tremily.us/"  # Home page
104
105 Read `Compose(5)` for more information.  You may need to log out and
106 log back in (or use the [[newgrp]] trick) for your new `~/.XCompose`
107 file to take effect.
108
109 [wikipedia]: http://en.wikipedia.org/wiki/Compose_key
110 [ubuntu]: https://help.ubuntu.com/community/ComposeKey
111
112 [[!tag tags/fun]]
113 [[!tag tags/linux]]