Rev | Author | # | Line |
---|---|---|---|
2 | LawrenceDoliveiro | 1 | A key recognized by [X] that you can use to enter a whole range of [Unicode] characters with mnemonic key sequences. For example, compose-singlequote-e to enter an “é” (e-acute) character. Note this is not a “modifier” key, it’s more like a “dead” key—you press it, let it go, then press the rest of the keys in the sequence in turn. |
6 | LawrenceDoliveiro | 2 | |
3 | Here’s how to get some of the more common accented characters: | ||
4 | <?plugin OldStyleTable | ||
5 | |*accents* | *key sequence* | ||
6 | | acute: á, é, í, ó, ú | compose-singlequote-''letter'' | ||
7 | | caret: â, ê, î, ô, û | compose-caret-''letter'' | ||
8 | | cedilla: ç | compose-comma-''letter'' | ||
9 | | grave: à, è, ì, ò, ù | compose-backquote-''letter'' | ||
10 | | macron: ā, ē, ī, ō, ū | compose-underscore-''letter'' | ||
11 | | tilde: ã, ñ, õ | compase-tilde-''letter'' | ||
12 | | umlaut: ä, ë, ï, ö, ü | compose-doublequote-''letter'' | ||
13 | ?> | ||
1 | LawrenceDoliveiro | 14 | |
15 | By default this function is not assigned to any key. You can tell the X server what key to use for this function with a command of the form | ||
16 | |||
17 | <tt>setxkbmap -option compose:</tt>''keyname'' | ||
18 | |||
19 | for example | ||
20 | |||
21 | <tt>setxkbmap -option compose:caps</tt> | ||
22 | |||
23 | to assign it to the caps-lock key. (Do you use caps-lock for anything else? I don’t.) GUI environments like [GNOME] and [KDE] probably provide some way you can configure this automatically every time you login. | ||
24 | |||
25 | The key sequences you can use depend on your [locale|LocaleName], and are defined in the file | ||
26 | |||
27 | <tt>/usr/share/X11/locale/</tt>''localename''<tt>/Compose</tt> | ||
28 | |||
29 | To get the largest choice of characters, make sure you select a [UTF-8]-encoded locale. | ||
2 | LawrenceDoliveiro | 30 | |
5 | LawrenceDoliveiro | 31 | But this can be useful even if you don’t write accented characters and text in multiple languages: the characters available include typographic niceties like the following: |
2 | LawrenceDoliveiro | 32 | |
33 | <?plugin OldStyleTable | ||
34 | |*description* | *looks like* | *key sequence* | ||
7 | LawrenceDoliveiro | 35 | | opening double quote | “ | compose-lessthan-doublequote |
2 | LawrenceDoliveiro | 36 | | closing double quote | ” | compose-greaterthan-doublequote |
37 | | opening single quote | ‘ | compose-lessthan-singlequote | ||
38 | | closing single quote/apostrophe | ’ | compose-greaterthan-singlequote | ||
39 | | em-dash | — | compose-hyphen-hyphen-hyphen | ||
3 | LawrenceDoliveiro | 40 | | paragraph symbol/pilcrow | ¶ | compose-p-exclamation |
41 | | section symbol | § | compose-s-o or compose-o-s | ||
42 | | degree sign | ° | compose-o-o | ||
4 | LawrenceDoliveiro | 43 | | multiplication | × | compose-x-x |
44 | | division | ÷ | compose-colon-dash | ||
45 | | not equal | ≠ | compose-slash-equals | ||
3 | LawrenceDoliveiro | 46 | | cents sign | ¢ | compose-c-slash or compose-slash-c |
47 | | euro sign | € | compose-c-equals or compose-equals-c | ||
4 | LawrenceDoliveiro | 48 | | pound sign | £ | compose-capitalL-minus |
3 | LawrenceDoliveiro | 49 | | copyright | © | compose-c-o or compose-o-c |
50 | | registered trademark | ® | compose-o-r | ||
51 | | trademark | ™ | compose-t-m | ||
2 | LawrenceDoliveiro | 52 | ?> |
4 | LawrenceDoliveiro | 53 | |
54 | If a character displays as an empty box, that means your currently-selected font does not define it. |
lib/blame.php:177: Warning: Invalid argument supplied for foreach()