← gutenberg-typist

Typing the untypeable

The classics are older than your keyboard.

Project Gutenberg texts keep their original typography: em dashes, curly quotes, the accents in fiancée and naïve, ligatures like æther. None of those have keys — but Vim has had an answer since before Unicode was cool: digraphs.

In insert mode, press Ctrl-K followed by two characters. Ctrl-K-M types an em dash. Ctrl-Ke' types é. The result matches the book's character exactly, so gutenberg-typist scores it green like any other keystroke.

Punctuation

namedigraph
em dash-M
en dash-N
left single quote'6
right single quote / apostrophe'9
left double quote"6
right double quote"9
ellipsis,.
«left guillemet<<
»right guillemet>>
¿inverted question mark?I
¡inverted exclamation!I

The quote mnemonics: 6 opens, 9 closes — the digits look like the quotes.

Accented letters

One pattern covers them all: the letter, then a mark that looks like the accent. Works for any letter, upper or lower case.

markaccentexamples
'acuteé á — e' a'
!graveè à — e! a!
>circumflexê ô î û â — e> o> i> u> a>
:diaeresis / umlautë ï ö ü — e: i: o: u:
?tildeñ — n?
,cedillaç — c,

Ligatures & symbols

namedigraph
æae ligature (æther, mediæval)ae
ÆAE ligatureAE
œoe ligature (manœuvre)oe
ŒOE ligatureOE
£pound sterlingPd
°degreeDG
§sectionSE
dagger/-
double dagger/=
½one half12
¼one quarter14
¾three quarters34

Everything else

:digraphs lists every code Vim knows. :help digraphs explains the system. And any character at all can be typed by codepoint: Ctrl-Vu then four hex digits — Ctrl-Vu2014 is the em dash again.

Not every book needs this: many Gutenberg transcriptions are plain ASCII, with -- for dashes and straight quotes. You'll meet these characters in the books that kept their original typography — which are the best ones to type.