A code study edition
English ↔ Baudot code
A Dream Within a Dream · five holes on a paper tape
Edition: complete · every letter as an ITA2 five-bit code · AI-assisted project draft, not yet independently reviewed
Before email and fax, typed messages crossed continents as five-bit codes punched across paper tape. The Baudot code, in the form standardised as International Telegraph Alphabet No. 2 (ITA2), gives every letter five marks, each one either a hole (1) or no hole (0). Here the whole poem is set in ITA2, and the panel turns anything you type into five-bit codes.
Punch it out
Each group of five is one letter: 1 is a punched hole, 0 is no hole. A teleprinter sends the space between words as its own code, 00100.
Part one / The poem
The poem, line by line
Every letter of Poe’s poem as its ITA2 code. Spaces separate letters and a slash marks each word space, which a teleprinter sends as 00100. Punctuation is dropped here; on a real machine it needs a shift to the figures case. Select a line number for its study note.
| Line | English · source | ITA2 · five bits a letter |
|---|---|---|
| Take this kiss upon the brow! | 00001 11000 11110 10000 / 00001 00101 01100 10100 / 11110 01100 10100 10100 / 11100 01101 00011 00110 / 00001 00101 10000 / 10011 01010 00011 11001 | |
| And, in parting from you now, | 11000 00110 10010 / 01100 00110 / 01101 11000 01010 00001 01100 00110 01011 / 10110 01010 00011 00111 / 10101 00011 11100 / 00110 00011 11001 | |
| Thus much let me avow — | 00001 00101 11100 10100 / 00111 11100 01110 00101 / 01001 10000 00001 / 00111 10000 / 11000 01111 00011 11001 | |
| You are not wrong, who deem | 10101 00011 11100 / 11000 01010 10000 / 00110 00011 00001 / 11001 01010 00011 00110 01011 / 11001 00101 00011 / 10010 10000 10000 00111 | |
| That my days have been a dream; | 00001 00101 11000 00001 / 00111 10101 / 10010 11000 10101 10100 / 00101 11000 01111 10000 / 10011 10000 10000 00110 / 11000 / 10010 01010 10000 11000 00111 | |
| Yet if hope has flown away | 10101 10000 00001 / 01100 10110 / 00101 00011 01101 10000 / 00101 11000 10100 / 10110 01001 00011 11001 00110 / 11000 11001 11000 10101 | |
| In a night, or in a day, | 01100 00110 / 11000 / 00110 01100 01011 00101 00001 / 00011 01010 / 01100 00110 / 11000 / 10010 11000 10101 | |
| In a vision, or in none, | 01100 00110 / 11000 / 01111 01100 10100 01100 00011 00110 / 00011 01010 / 01100 00110 / 00110 00011 00110 10000 | |
| Is it therefore the less gone? | 01100 10100 / 01100 00001 / 00001 00101 10000 01010 10000 10110 00011 01010 10000 / 00001 00101 10000 / 01001 10000 10100 10100 / 01011 00011 00110 10000 | |
| All that we see or seem | 11000 01001 01001 / 00001 00101 11000 00001 / 11001 10000 / 10100 10000 10000 / 00011 01010 / 10100 10000 10000 00111 | |
| Is but a dream within a dream. | 01100 10100 / 10011 11100 00001 / 11000 / 10010 01010 10000 11000 00111 / 11001 01100 00001 00101 01100 00110 / 11000 / 10010 01010 10000 11000 00111 | |
| I stand amid the roar | 01100 / 10100 00001 11000 00110 10010 / 11000 00111 01100 10010 / 00001 00101 10000 / 01010 00011 11000 01010 | |
| Of a surf-tormented shore, | 00011 10110 / 11000 / 10100 11100 01010 10110 / 00001 00011 01010 00111 10000 00110 00001 10000 10010 / 10100 00101 00011 01010 10000 | |
| And I hold within my hand | 11000 00110 10010 / 01100 / 00101 00011 01001 10010 / 11001 01100 00001 00101 01100 00110 / 00111 10101 / 00101 11000 00110 10010 | |
| Grains of the golden sand — | 01011 01010 11000 01100 00110 10100 / 00011 10110 / 00001 00101 10000 / 01011 00011 01001 10010 10000 00110 / 10100 11000 00110 10010 | |
| How few! yet how they creep | 00101 00011 11001 / 10110 10000 11001 / 10101 10000 00001 / 00101 00011 11001 / 00001 00101 10000 10101 / 01110 01010 10000 10000 01101 | |
| Through my fingers to the deep, | 00001 00101 01010 00011 11100 01011 00101 / 00111 10101 / 10110 01100 00110 01011 10000 01010 10100 / 00001 00011 / 00001 00101 10000 / 10010 10000 10000 01101 | |
| While I weep — while I weep! | 11001 00101 01100 01001 10000 / 01100 / 11001 10000 10000 01101 / 11001 00101 01100 01001 10000 / 01100 / 11001 10000 10000 01101 | |
| O God! Can I not grasp | 00011 / 01011 00011 10010 / 01110 11000 00110 / 01100 / 00110 00011 00001 / 01011 01010 11000 10100 01101 | |
| Them with a tighter clasp? | 00001 00101 10000 00111 / 11001 01100 00001 00101 / 11000 / 00001 01100 01011 00101 00001 10000 01010 / 01110 01001 11000 10100 01101 | |
| O God! can I not save | 00011 / 01011 00011 10010 / 01110 11000 00110 / 01100 / 00110 00011 00001 / 10100 11000 01111 10000 | |
| One from the pitiless wave? | 00011 00110 10000 / 10110 01010 00011 00111 / 00001 00101 10000 / 01101 01100 00001 01100 01001 10000 10100 10100 / 11001 11000 01111 10000 | |
| Is all that we see or seem | 01100 10100 / 11000 01001 01001 / 00001 00101 11000 00001 / 11001 10000 / 10100 10000 10000 / 00011 01010 / 10100 10000 10000 00111 | |
| But a dream within a dream? | 10011 11100 00001 / 11000 / 10010 01010 10000 11000 00111 / 11001 01100 00001 00101 01100 00110 / 11000 / 10010 01010 10000 11000 00111 |
Part two / How it works
Five holes, thirty-two codes
Five holes give 2 × 2 × 2 × 2 × 2 = 32 possible codes. ITA2 uses 26 for letters and the rest for space, carriage return, line feed and two shift codes.
| Letter | Code | Letter | Code | Letter | Code | Letter | Code |
|---|---|---|---|---|---|---|---|
| A | 11000 | I | 01100 | Q | 11101 | Y | 10101 |
| B | 10011 | J | 11010 | R | 01010 | Z | 10001 |
| C | 01110 | K | 11110 | S | 10100 | Space | 00100 |
| D | 10010 | L | 01001 | T | 00001 | CR | 01000 |
| E | 10000 | M | 00111 | U | 11100 | LF | 00010 |
| F | 10110 | N | 00110 | V | 01111 | FIGS | 11011 |
| G | 01011 | O | 00011 | W | 11001 | LTRS | 11111 |
| H | 00101 | P | 01101 | X | 10111 |
1 · Five marks a letter
Every character is exactly five marks, read in a fixed order. There are no short and long letters as in Morse.
d → 10010
2 · Two cases
Thirty-two codes cannot cover letters and figures, so two codes switch case. After FIGS (11011) the same codes mean digits and punctuation; LTRS (11111) switches back.
FIGS 11011 · LTRS 11111
3 · Machine housekeeping
Some codes print nothing. They return the carriage, feed the paper and mark word spaces.
CR 01000 · LF 00010 · space 00100
4 · Built for the keyboard
Murray placed the commonest letters on codes with few holes to save wear on the punches: E is a single hole.
e → 10000
Practice
Read the tape
A word from the poem is shown as five-bit codes. Pick the English word.
0 of 0 correct
Practice with every word
Every word of the poem
All 86 different words of the poem, in the order they first appear. Decode each group with the table, then reveal the English.
How to practise
- Read each group of five as one letter.
- Find it in the code table above.
- Reveal, then find the word in the poem.
- Write your own name as five-bit groups.
See the full word list (86 words)
| take | 00001 11000 11110 10000 | line 1 · 1× |
| this | 00001 00101 01100 10100 | line 1 · 1× |
| kiss | 11110 01100 10100 10100 | line 1 · 1× |
| upon | 11100 01101 00011 00110 | line 1 · 1× |
| the | 00001 00101 10000 | line 1 · 6× |
| brow | 10011 01010 00011 11001 | line 1 · 1× |
| and | 11000 00110 10010 | line 2 · 2× |
| in | 01100 00110 | line 2 · 5× |
| parting | 01101 11000 01010 00001 01100 00110 01011 | line 2 · 1× |
| from | 10110 01010 00011 00111 | line 2 · 2× |
| you | 10101 00011 11100 | line 2 · 2× |
| now | 00110 00011 11001 | line 2 · 1× |
| thus | 00001 00101 11100 10100 | line 3 · 1× |
| much | 00111 11100 01110 00101 | line 3 · 1× |
| let | 01001 10000 00001 | line 3 · 1× |
| me | 00111 10000 | line 3 · 1× |
| avow | 11000 01111 00011 11001 | line 3 · 1× |
| are | 11000 01010 10000 | line 4 · 1× |
| not | 00110 00011 00001 | line 4 · 3× |
| wrong | 11001 01010 00011 00110 01011 | line 4 · 1× |
| who | 11001 00101 00011 | line 4 · 1× |
| deem | 10010 10000 10000 00111 | line 4 · 1× |
| that | 00001 00101 11000 00001 | line 5 · 3× |
| my | 00111 10101 | line 5 · 3× |
| days | 10010 11000 10101 10100 | line 5 · 1× |
| have | 00101 11000 01111 10000 | line 5 · 1× |
| been | 10011 10000 10000 00110 | line 5 · 1× |
| a | 11000 | line 5 · 10× |
| dream | 10010 01010 10000 11000 00111 | line 5 · 5× |
| yet | 10101 10000 00001 | line 6 · 2× |
| if | 01100 10110 | line 6 · 1× |
| hope | 00101 00011 01101 10000 | line 6 · 1× |
| has | 00101 11000 10100 | line 6 · 1× |
| flown | 10110 01001 00011 11001 00110 | line 6 · 1× |
| away | 11000 11001 11000 10101 | line 6 · 1× |
| night | 00110 01100 01011 00101 00001 | line 7 · 1× |
| or | 00011 01010 | line 7 · 4× |
| day | 10010 11000 10101 | line 7 · 1× |
| vision | 01111 01100 10100 01100 00011 00110 | line 8 · 1× |
| none | 00110 00011 00110 10000 | line 8 · 1× |
| is | 01100 10100 | line 9 · 3× |
| it | 01100 00001 | line 9 · 1× |
| therefore | 00001 00101 10000 01010 10000 10110 00011 01010 10000 | line 9 · 1× |
| less | 01001 10000 10100 10100 | line 9 · 1× |
| gone | 01011 00011 00110 10000 | line 9 · 1× |
| all | 11000 01001 01001 | line 10 · 2× |
| we | 11001 10000 | line 10 · 2× |
| see | 10100 10000 10000 | line 10 · 2× |
| seem | 10100 10000 10000 00111 | line 10 · 2× |
| but | 10011 11100 00001 | line 11 · 2× |
| within | 11001 01100 00001 00101 01100 00110 | line 11 · 3× |
| i | 01100 | line 12 · 6× |
| stand | 10100 00001 11000 00110 10010 | line 12 · 1× |
| amid | 11000 00111 01100 10010 | line 12 · 1× |
| roar | 01010 00011 11000 01010 | line 12 · 1× |
| of | 00011 10110 | line 13 · 2× |
| surf | 10100 11100 01010 10110 | line 13 · 1× |
| tormented | 00001 00011 01010 00111 10000 00110 00001 10000 10010 | line 13 · 1× |
| shore | 10100 00101 00011 01010 10000 | line 13 · 1× |
| hold | 00101 00011 01001 10010 | line 14 · 1× |
| hand | 00101 11000 00110 10010 | line 14 · 1× |
| grains | 01011 01010 11000 01100 00110 10100 | line 15 · 1× |
| golden | 01011 00011 01001 10010 10000 00110 | line 15 · 1× |
| sand | 10100 11000 00110 10010 | line 15 · 1× |
| how | 00101 00011 11001 | line 16 · 2× |
| few | 10110 10000 11001 | line 16 · 1× |
| they | 00001 00101 10000 10101 | line 16 · 1× |
| creep | 01110 01010 10000 10000 01101 | line 16 · 1× |
| through | 00001 00101 01010 00011 11100 01011 00101 | line 17 · 1× |
| fingers | 10110 01100 00110 01011 10000 01010 10100 | line 17 · 1× |
| to | 00001 00011 | line 17 · 1× |
| deep | 10010 10000 10000 01101 | line 17 · 1× |
| while | 11001 00101 01100 01001 10000 | line 18 · 2× |
| weep | 11001 10000 10000 01101 | line 18 · 2× |
| o | 00011 | line 19 · 2× |
| god | 01011 00011 10010 | line 19 · 2× |
| can | 01110 11000 00110 | line 19 · 2× |
| grasp | 01011 01010 11000 10100 01101 | line 19 · 1× |
| them | 00001 00101 10000 00111 | line 20 · 1× |
| with | 11001 01100 00001 00101 | line 20 · 1× |
| tighter | 00001 01100 01011 00101 00001 10000 01010 | line 20 · 1× |
| clasp | 01110 01001 11000 10100 01101 | line 20 · 1× |
| save | 10100 11000 01111 10000 | line 21 · 1× |
| one | 00011 00110 10000 | line 22 · 1× |
| pitiless | 01101 01100 00001 01100 01001 10000 10100 10100 | line 22 · 1× |
| wave | 11001 11000 01111 10000 | line 22 · 1× |
Background
From the telegraph to the teleprinter
Baudot
The French telegraph engineer Émile Baudot patented a five-unit printing telegraph in 1874. The unit of signalling speed, the baud, is named after him.
Murray
Donald Murray reworked the code around 1901 for a typewriter-style keyboard and punched paper tape. Most later teleprinter codes descend from his version.
ITA2 and Telex
The international telegraph authorities adopted Murray’s layout as International Telegraph Alphabet No. 2. Telex networks used it for much of the twentieth century.
Sources
Pages consulted
- Baudot code, Wikipedia
- ITU-T Recommendation S.1, International Telegraph Alphabet No. 2
- Émile Baudot, Wikipedia
- Donald Murray (inventor), Wikipedia
Keep exploring
Related editions
Other editions of “A Dream Within a Dream” close to Baudot code, chosen from the project’s 137 editions.
Signals sent at a distance
- Bacon's cipher Biliteral
- Flag semaphore Hand flags
- Lantern signals Light
- Morse code International
- NATO alphabet ICAO spelling
- Signal flags Maritime
More signals and codes
- Back slang Victorian cant
- Dead letter drop Spy tradecraft
- Gold-Bug cipher Poe's own key
- Hieroglyphs Egyptian signs
