A code study edition
English ↔ Pigpen cipher
A Dream Within a Dream · in the Freemasons' cipher of grids and angles
Edition: complete · every letter in the common Pigpen key · unreviewed project draft
The Pigpen cipher swaps each letter for the piece of a grid that holds it: two noughts-and-crosses grids and two X shapes, with and without dots. Freemasons used it in the 18th century, and it is carved on gravestones and written in diaries since. Here the whole poem is set in Pigpen, and the panel enciphers anything you type.
Draw it
Each letter becomes the shape of its box in the grids below. Letters in the second grid and second X carry a dot. Try your own name.
Part one / The poem
The poem, line by line
Every letter of Poe's poem as its Pigpen symbol. Spaces between words are kept; punctuation is dropped. The symbols are a font, so the letters underneath can still be selected and searched. Select a line number for its study note.
| Line | English · source | Pigpen · grid symbols |
|---|---|---|
| Take this kiss upon the brow! | take this kiss upon the brow | |
| And, in parting from you now, | and in parting from you now | |
| Thus much let me avow — | thus much let me avow | |
| You are not wrong, who deem | you are not wrong who deem | |
| That my days have been a dream; | that my days have been a dream | |
| Yet if hope has flown away | yet if hope has flown away | |
| In a night, or in a day, | in a night or in a day | |
| In a vision, or in none, | in a vision or in none | |
| Is it therefore the less gone? | is it therefore the less gone | |
| All that we see or seem | all that we see or seem | |
| Is but a dream within a dream. | is but a dream within a dream | |
| I stand amid the roar | i stand amid the roar | |
| Of a surf-tormented shore, | of a surf tormented shore | |
| And I hold within my hand | and i hold within my hand | |
| Grains of the golden sand — | grains of the golden sand | |
| How few! yet how they creep | how few yet how they creep | |
| Through my fingers to the deep, | through my fingers to the deep | |
| While I weep — while I weep! | while i weep while i weep | |
| O God! Can I not grasp | o god can i not grasp | |
| Them with a tighter clasp? | them with a tighter clasp | |
| O God! can I not save | o god can i not save | |
| One from the pitiless wave? | one from the pitiless wave | |
| Is all that we see or seem | is all that we see or seem | |
| But a dream within a dream? | but a dream within a dream |
Part two / How it works
Two grids, two crosses
Write the alphabet into the four shapes, then replace each letter with the lines that box it in. The table shows the symbol beside every letter.
| Letter | Symbol | Letter | Symbol | Letter | Symbol |
|---|---|---|---|---|---|
| A | a | J | j | S | s |
| B | b | K | k | T | t |
| C | c | L | l | U | u |
| D | d | M | m | V | v |
| E | e | N | n | W | w |
| F | f | O | o | X | x |
| G | g | P | p | Y | y |
| H | h | Q | q | Z | z |
| I | i | R | r |
1 · The first grid
A to I fill a noughts-and-crosses grid, three to a row. A sits top left, so its symbol is the two lines below and to its right.
abc
2 · The dotted grid
J to R fill a second grid with a dot in every box, so N is a square with a dot.
jkn
3 · The crosses
S to V fill the four arms of an X, and W to Z a dotted X. S is the top arm, a V shape.
stuv
4 · Keys vary
Some versions fill the grids in a different order. This edition uses the most common one, the order taught in most books.
dream
Practice
Break the grid
A word from the poem is shown in Pigpen. Pick the English word.
0 of 0 correct
Practice with every word
Every word of the poem
All 85 different words of the poem, in the order they first appear. Match each symbol to its box in the grids, then reveal the English.
How to practise
- Look for a dot first: it means the second grid or the second X.
- Match the shape to its box in the grids above.
- Reveal, then find the word in the poem.
- Draw the grids on paper and write a note in Pigpen.
See the full word list (85 words)
| take | take | line 1 · 1× |
| this | this | line 1 · 1× |
| kiss | kiss | line 1 · 1× |
| upon | upon | line 1 · 1× |
| the | the | line 1 · 6× |
| brow | brow | line 1 · 1× |
| and | and | line 2 · 2× |
| in | in | line 2 · 5× |
| parting | parting | line 2 · 1× |
| from | from | line 2 · 2× |
| you | you | line 2 · 2× |
| now | now | line 2 · 1× |
| thus | thus | line 3 · 1× |
| much | much | line 3 · 1× |
| let | let | line 3 · 1× |
| me | me | line 3 · 1× |
| avow | avow | line 3 · 1× |
| are | are | line 4 · 1× |
| not | not | line 4 · 3× |
| wrong | wrong | line 4 · 1× |
| who | who | line 4 · 1× |
| deem | deem | line 4 · 1× |
| that | that | line 5 · 3× |
| my | my | line 5 · 3× |
| days | days | line 5 · 1× |
| have | have | line 5 · 1× |
| been | been | line 5 · 1× |
| a | a | line 5 · 10× |
| dream | dream | line 5 · 5× |
| yet | yet | line 6 · 2× |
| if | if | line 6 · 1× |
| hope | hope | line 6 · 1× |
| has | has | line 6 · 1× |
| flown | flown | line 6 · 1× |
| away | away | line 6 · 1× |
| night | night | line 7 · 1× |
| or | or | line 7 · 4× |
| day | day | line 7 · 1× |
| vision | vision | line 8 · 1× |
| none | none | line 8 · 1× |
| is | is | line 9 · 3× |
| it | it | line 9 · 1× |
| therefore | therefore | line 9 · 1× |
| less | less | line 9 · 1× |
| gone | gone | line 9 · 1× |
| all | all | line 10 · 2× |
| we | we | line 10 · 2× |
| see | see | line 10 · 2× |
| seem | seem | line 10 · 2× |
| but | but | line 11 · 2× |
| within | within | line 11 · 3× |
| I | i | line 12 · 6× |
| stand | stand | line 12 · 1× |
| amid | amid | line 12 · 1× |
| roar | roar | line 12 · 1× |
| of | of | line 13 · 2× |
| surf-tormented | surf tormented | line 13 · 1× |
| shore | shore | line 13 · 1× |
| hold | hold | line 14 · 1× |
| hand | hand | line 14 · 1× |
| grains | grains | line 15 · 1× |
| golden | golden | line 15 · 1× |
| sand | sand | line 15 · 1× |
| how | how | line 16 · 2× |
| few | few | line 16 · 1× |
| they | they | line 16 · 1× |
| creep | creep | line 16 · 1× |
| through | through | line 17 · 1× |
| fingers | fingers | line 17 · 1× |
| to | to | line 17 · 1× |
| deep | deep | line 17 · 1× |
| while | while | line 18 · 2× |
| weep | weep | line 18 · 2× |
| O | o | line 19 · 2× |
| God | god | line 19 · 2× |
| can | can | line 19 · 2× |
| grasp | grasp | line 19 · 1× |
| them | them | line 20 · 1× |
| with | with | line 20 · 1× |
| tighter | tighter | line 20 · 1× |
| clasp | clasp | line 20 · 1× |
| save | save | line 21 · 1× |
| one | one | line 22 · 1× |
| pitiless | pitiless | line 22 · 1× |
| wave | wave | line 22 · 1× |
Background
Grids on gravestones
The Freemasons
The cipher is often called the Masonic cipher. Freemasons used it in the 18th century to keep their records and rituals private.
Carved in stone
Pigpen inscriptions survive on gravestones, among them the 18th-century grave of James Leeson in Trinity Church yard, New York.
In war and fiction
Soldiers used it in letters during the American Civil War, and it turns up in novels and puzzle books to this day.
Sources
Pages consulted
- Pigpen cipher, Wikipedia
- David Kahn, The Codebreakers (1967)
- Trinity Church, New York: the James Leeson gravestone (1794)