GUIDE

Typing accented letters and symbols

7 min readUpdated

There are five mechanisms, and they are not equally good. Dead keys and AltGr are built into national layouts and cost nothing once learned. Option sequences do the same job on a Mac. A compose key is the flexible option on Linux. Typing Unicode code points works everywhere and is worth avoiding. If you need the characters daily, change the layout rather than learning shortcuts.

Five mechanisms, in rough order of usefulness

Every method of producing a character that is not printed on your keycaps is one of these five. Knowing which one you are using explains most of the strange behaviour people run into — apostrophes that do not appear, a right Alt key that produces letters, a shortcut that works in one application and not another.

The five ways to reach a character that is not on the key
MechanismWhere it comes fromExampleThe catch
Dead keyBuilt into most European layoutsApostrophe, then E, gives éThe key produces nothing on its own, which surprises people typing ordinary English
AltGrThe right Alt key on European layoutsAltGr and A gives ą on a Polish layoutAbsent from US keyboards; Ctrl and left Alt together stand in for it on Windows
Option sequencemacOS, on the US layoutOption and E, then E, gives éMac only, and the sequences have to be memorised one at a time
Compose keyLinux, off by defaultCompose, apostrophe, E gives éHas to be enabled and assigned to a key first
Unicode code pointEvery operating system, differentlyAlt and 0233 on the numeric keypad gives éSlow, needs a memorised number per character, and the method differs on every platform
The first four all produce the character through the keyboard layout, so they work in every application. Code-point entry is handled by the operating system's input method and is the one most likely to fail somewhere.

What a dead key actually does

A dead key is a key that produces nothing when you press it, and modifies the next character instead. On a French, Spanish, Portuguese or Czech layout the accent keys work this way: press the acute accent, nothing appears, press E, and é arrives complete.

The mechanism is old — it is named after the typewriter keys that struck the accent without advancing the carriage, so the next letter landed underneath it — and it is still the best available, because it composes. One accent key and twenty-six letters give you every combination the layout permits, without a separate shortcut for each.

What it does when the combination does not exist varies, and this is worth knowing before it confuses you. Press the acute accent and then the letter K, and most layouts emit both characters separately: a standalone accent followed by a K. A few emit nothing. Either way the rule is that a dead key is always waiting for the next keystroke, and pressing space is how you tell it you wanted the accent on its own.

The layout that catches the most people out is Windows' US International, which turns the apostrophe, quotation mark, backtick, tilde and caret into dead keys on an otherwise American board. It is an excellent layout if you type Spanish or French on US hardware. It is baffling if you enabled it by accident, because typing don't in ordinary English now produces dont with the apostrophe waiting, and the fix — press space after the apostrophe — is not something anyone guesses.

AltGr, and why it is not the same thing

AltGr is the key to the right of the space bar on most keyboards sold outside the United States, and despite sitting where a second Alt key would, it is a different key doing a different job. It selects a third character from the key you press with it: the keycap shows a lower case letter, a capital with Shift, and something else again with AltGr.

This is how layouts fit an alphabet larger than the board onto it. A Polish keyboard is a US keyboard with AltGr added: AltGr and A gives ą, AltGr and C gives ć, AltGr and L gives ł. The letters stay where the corresponding Latin letters are, which is the entire design — a Polish typist who knows QWERTY already knows where every Polish letter is.

Unlike a dead key, AltGr does not compose. It is a direct third level, so each combination has to be provided by the layout, and if the layout does not define one nothing happens at all. That is the trade: dead keys are general and need two presses, AltGr is specific and needs one.

On a US keyboard with no physical AltGr, Windows treats Ctrl with the left Alt as equivalent. This is also the explanation for an occasional mystery: a Ctrl-and-Alt shortcut in an application quietly inserting a letter instead of doing what it was supposed to.

The method to avoid, and why people reach for it

Typing the Unicode code point — Alt and a number on the numeric keypad on Windows, Ctrl-Shift-U and a hex number on Linux, a special Unicode Hex Input layout on macOS — works, and it is almost always the wrong tool.

It requires a memorised number for every character, it is several keystrokes for one letter, it needs a numeric keypad on the platform where most people meet it, and it fails inside some applications. People reach for it because it is the first answer a search returns, and because it does not require changing any settings. Neither of those is a good reason to type a language one code point at a time.

The two other common workarounds deserve the same warning. Copying characters from a web page is fine once and unusable as a habit. Relying on autocorrect to put the accent back is worse than it looks: it is guessing, it is wrong on exactly the words where the accent carries meaning, and it teaches your hands nothing. Every language with diacritics has pairs that differ only by the mark, and the whole point of the mark is that they are different words.

The honest answer: change the layout

If you need these characters more than occasionally, the right move is not a shortcut. It is to install the keyboard layout for the language and learn it, which takes a fortnight of short sessions and then never costs anything again.

The objection is always that the characters are not printed on the keys, and it is worth meeting directly: that is true, and it stops mattering the moment you stop looking down. A touch typist does not read the keycaps. The letters on your keyboard are a crutch for the two weeks in which you are learning, and stickers or a printed keycap set will extend those two weeks rather than shorten them, because a visible answer removes the need to recall one.

It is a setting rather than a purchase on every operating system — a list of layouts, an Add button, and usually a key combination to switch between them. The language pages on this site name the standard layout for each of the languages they teach, and the keyboard guide shows the physical key and the character it produces at the same time, which is the part a printed keycap cannot do for a script you are still learning.

Which languages need which character

Everything above is about how a character is produced, and that depends on the layout in front of you. This is the other question: which of these characters you will actually be asked for. It is counted from the practice words on this site rather than asserted — which makes it a floor rather than an alphabet, because sixty words sample a language without exhausting it. German writes ä, ö and ß; the German bank here happens to contain only ü.

Across the forty-seven Latin-alphabet languages here, the practice words need 92 characters beyond a-z between them. Twelve banks stay inside a-z entirely — English, Indonesian, Malay, Swahili and Zulu among them — which is why a plain US keyboard serves those exercises completely. At the other end Vietnamese needs 33, more than three times the next widest, and 23 of the 92 are needed by Vietnamese and nothing else.

The table below is the shared middle: the characters three or more languages need. Learn to produce those comfortably and you have covered most of what most European languages will ask of you.

Characters that three or more of these languages' practice words need
CharacterLanguagesWhich ones
á8Spanish, Portuguese, Vietnamese, Czech, Slovak, Hungarian, Icelandic, Irish
é8Spanish, French, Portuguese, Hungarian, Catalan, Icelandic, Irish, Luxembourgish
ö7Turkish, Swedish, Finnish, Hungarian, Estonian, Icelandic, Azerbaijani
ó6Portuguese, Vietnamese, Hungarian, Catalan, Icelandic, Irish
š6Czech, Slovak, Croatian, Latvian, Lithuanian, Slovenian
ž6Czech, Slovak, Croatian, Latvian, Lithuanian, Slovenian
í5Spanish, Czech, Catalan, Icelandic, Irish
ä4Swedish, Finnish, Estonian, Luxembourgish
č4Czech, Slovak, Croatian, Slovenian
è4French, Italian, Catalan, Haitian Creole
ú4Vietnamese, Hungarian, Icelandic, Irish
ü4German, Turkish, Estonian, Azerbaijani
å3Swedish, Norwegian, Danish
ç3Turkish, Albanian, Azerbaijani
ê3French, Vietnamese, Afrikaans
ë3Afrikaans, Albanian, Luxembourgish
ù3French, Italian, Vietnamese
ū3Latvian, Lithuanian, Māori
ý3Czech, Slovak, Icelandic
Counted from each language's own practice words, so a character appears here only if that language genuinely uses it. The 58 characters a single language needs are named on that language's own page instead.

Questions

How do I type é on Windows?

Three ways, in descending order of sense. On a layout with dead keys, such as US International, press the apostrophe and then E. With AltGr available, the layout may define a direct combination. As a last resort hold Alt and type 0233 on the numeric keypad. If you need é regularly, add the layout rather than memorising the number.

Why does my apostrophe not appear until I press another key?

You are on a layout where the apostrophe is a dead key, almost certainly US International. It is waiting to see whether the next letter takes an accent. Press space immediately after it to get a plain apostrophe, or switch back to the plain US layout if you do not need the accents.

What is the AltGr key for?

It selects a third character from a key, which is how layouts fit an alphabet larger than the keyboard onto it — AltGr and A gives ą on a Polish layout. It sits to the right of the space bar on most non-US keyboards. Where there is no physical AltGr, Windows accepts Ctrl with the left Alt instead.

Do I need to buy a keyboard with the characters printed on it?

No, and it will slow you down. A keyboard layout is a software setting on every operating system. Printed keycaps and stickers only help while you are still looking down, which is the habit that is actually limiting you.

Can I just let autocorrect add the accents?

Not safely. Autocorrect is guessing from context, and it is least reliable on exactly the words where the mark changes the meaning — which, in every language that uses diacritics, is why the mark is there. It also teaches your hands nothing, so you stay dependent on it.

Put it into practice

Reading about typing is the smaller half. The beginner course starts on the home row, the speed test will tell you where you stand, and all of it works in 86 languages without an account.

Start in Esperanto, Spanish, Russian, Czech or Lithuanian — or pick from all 86.

← All guides