Tecla Compose
Uma tecla (geralmente Alt direito ou mapeada de forma personalizada) que inicia uma sequência de composição de várias teclas. Recurso do Linux/Unix: Compose + a + e → æ. Configurável via XCompose.
What is a Compose Key?
The Compose key is a special keyboard key (or a regular key designated as Compose in software) that initiates a multi-keystroke sequence for typing special characters. After pressing Compose, the user types a sequence of ordinary keys — and the OS combines them into a single special character. No key needs to be held simultaneously; Compose acts as a latch, waiting for the sequence to complete.
For example: Compose, then e, then ' produces é. Compose, then c, then , produces ç. Compose, then <, then < produces «. The Compose key is particularly popular in Unix/Linux environments but is also available on macOS and Windows with third-party tools.
How Compose Sequences Work
The Compose system uses a compose table — a list of sequences and their resulting characters. On Linux/X11 systems, the default compose table is usually at /usr/share/X11/locale/en_US.UTF-8/Compose and contains thousands of entries. Users can create custom sequences in ~/.XCompose.
| Compose Sequence | Result | Character |
|---|---|---|
Compose + e + ' |
é | U+00E9 |
Compose + a + " |
ä | U+00E4 |
Compose + o + / |
ø | U+00F8 |
Compose + c + , |
ç | U+00E7 |
Compose + n + ~ |
ñ | U+00F1 |
Compose + < + < |
« | U+00AB |
Compose + - + - + . |
– | U+2013 |
Compose + - + - + - |
— | U+2014 |
Compose + 1 + 2 |
½ | U+00BD |
Compose + t + m |
™ | U+2122 |
Compose + c + o |
© | U+00A9 |
Setting Up a Compose Key
Linux (X11/Wayland): In GNOME, go to Settings → Keyboard → Special Character Entry → Compose Key. Common choices for the physical key: Right Alt, Caps Lock, Menu key, Right Ctrl.
Command line (X11):
# Set Compose to Right Alt for current session
setxkbmap -option compose:ralt
# Persistent: add to /etc/default/keyboard
XKBOPTIONS="compose:ralt"
macOS: Not built in. Use the free Ukelele app or install X Compose tools via Homebrew. The dead-key system (Option + key) is more native on macOS.
Windows: The WinCompose application adds a Compose key that uses the same X11 compose table format.
Custom Compose Sequences
On Linux, ~/.XCompose lets you define personal sequences:
# ~/.XCompose
include "%L" # include default system sequences
# Custom entries
<Multi_key> <e> <m> : "📧" # email emoji
<Multi_key> <t> <h> <e> : "the" # abbreviation expansion
<Multi_key> <minus> <gt> : "→" # arrow
Quick Facts
| Property | Value |
|---|---|
| Mechanism | Latch key + sequence → single character |
| Platform support | Linux (native X11), Windows (WinCompose), macOS (third-party) |
| Compose table location | /usr/share/X11/locale/en_US.UTF-8/Compose |
| User overrides | ~/.XCompose |
| Common physical key choices | Right Alt, Caps Lock, Menu key |
| Sequences for dashes | Compose + -- + . → –; Compose + --- → — |
| Copyright symbol | Compose + c + o → © |
| Trademark symbol | Compose + t + m → ™ |
Mais em Métodos de entrada
A system-level tool for browsing and inserting Unicode characters. macOS Character Viewer …
Método de entrada do Windows usando Alt + dígitos do teclado numérico …
Entrada direta de pontos de código Unicode digitando o valor hexadecimal. Mac: …
Componente de software que permite a entrada de caracteres complexos (CJK, coreano, …
Utilitário gráfico para navegar e inserir caracteres Unicode. Windows: charmap.exe. Mac: Visualizador …
Qualquer método para inserir caracteres pelo seu ponto de código Unicode: entrada …
Componente de interface de usuário (nativo ou baseado na web) para navegar …
Uma tecla que não produz saída imediata, mas modifica o próximo pressionamento …