At a glanceExisting decipherment · complete
- From
- Probably the patron, al-ʿAlāʾī
- To
- Ibn al-Durayhim
- Exchange note
- Probably the patron’s own verse (f. 3v l.9-11); the compiler solved it only after much toil (f. 49r l.4-5).
- The document
- One cipher in a Mamluk book of ciphers and their answers. The texts date from about 1330–1361; this copy is from the 15th century.
- Where
- University of Pennsylvania, Kislak Center, LJS 51. f. 3v l.12-13 (image 0011); f. 49r l.1-4 (image 0102)
- The cipher
- 70 signs. Invented signs stand for Arabic letters.
- How the text was obtained
- The compiler wrote the answer, two verses, in plain Arabic on f. 49r. The cipher starts on f. 3v and ends on f. 49r, two leaves that are now far apart. The project found that they belong together.
- What it says
- Two verses about doves cooing in a tree.
- Still open
- Six signs rest on the verse alone. How f. 3 came just before f. 49 is not explained. No Arabist has checked the text.
- Credit
- Brice Dudout rebuilt the key from a separate transcription and corrected one word.
Ibn al-Durayhim’s Cipher Casebook (Penn LJS 51) and cipher index
01 Manuscript and ciphertext


Open the full scans: Manuscript image 0011 · Manuscript image 0102
- Signs
- 70 in 20 word groups of 4, 3, 3, 3, 4, 5, 2, 4, 2, 4, 4, 3, 3, 5, 4, 3, 5, 4, 2, 3; by line 13, 15, 13, 12, 12, 5. The dividers are not counted.
- Distinct signs
- 23, the same in the by-eye inventory and the reviewed master list of signs.
Signs and letters in reading order
Each sign on the page, right to left, with the letter the key gives it. | is a word divider (one at the start of a line closes the word on the line before). The sign labels give one label to each distinct shape, so a label that recurs is the same sign.
| Line | Signs | Letters | Sign labels |
|---|---|---|---|
| 3v l.12 | 13 | ه ت ف ن | ض ح ي | ع ل ي | ب ا ن | | H5 T1 S7 S9 | D1 H1 S12 | S5 S17 S12 | S3 A2 S9 | |
| 3v l.13 | 15 | ب س ل ع | س و ا ج ع | ك م | س ل ي ن | | S3 S6b S17 S5 | S6 S13 A2 S2 S5 | S8 S11 | S6 S17 S3 S9 | |
| 49r l.1 | 13 | ش ج | ب ر ج ع | س ف ك ن | د م ي | | S1 S2 | S3 S4 S2 S5 | S6 S7 S8 S9 | S10 S11 S12 | |
| 49r l.2 | 12 | و م ا | ي د ر ي ن | ش و ق ا | | S13 S11 S14 | S12 S10 S4 S12 S9 | S1 S13 S16 S14 | |
| 49r l.3 | 12 | و ل ا | ي د ر ي ن | ي و م ا | | S13 S17 S14 | S12 S18 S4 S12 S9 | S12 S13 S11 S14 | |
| 49r l.4 | 5 | د ر | د م ع | | S10 S4 | S10 S11 S5 | |
02 Reading
Full transcription
هتفن ضحي علي بان بسلع سواجع كم سلين شج برجع سفكن دمي وما يدرين شوقا ولا يدرين يوما در دمع(as enciphered, from the by-eye key in keys_eye/3v.12+49r.1.json; written copy 49r l.6-7 (two verses). 3v l.12-13 enciphers the first 8 words, 49r l.1-4 the last 12; answered in full)
English translation
This translation follows the manuscript’s clear copy as recorded in the corpus translation files. Where it differs, the Arabic above follows the sign alignment.
At forenoon the cooing doves called on the ban-trees of Sal' - how many a grieving man have they consoled with their answering call! / They shed my blood, and they know nothing of longing, nor do they ever know the flow of tears. (confidence medium; the part on 49r begins at شج برجع; برجع as Brice Dudout read it, 2 Dec 2026)
The compiler says it "would not come apart except after much toil, because of its difficulty" (49r l.4-5).
Translation notes and confidence
In short
- The text. Two verses about cooing doves. The compiler also wrote them out in plain Arabic, on f. 49r.
- The find. The cipher on f. 49r starts in the middle of a verse. The missing start is at the foot of f. 3v.
- The evidence. The signs on f. 3v fit the eight missing words one for one, and 20 of the 28 signs have the same letter on both leaves.
- The caution. Seven of the 28 signs have shapes found only on f. 3v. Their letters rest on the verse alone.
One cipher on two leaves
Until 2 Dec 2026 the corpus counted two ciphers here. The 42 signs at the top of f. 49r begin in the middle of a verse: they take the last twelve words of the two verses the compiler writes out in clear on lines 6–7 of that page, and the first eight words, هتفن ضحى على بان بسلع سواجع كم سلين, had no cipher. The two rows at the foot of f. 3v had no plaintext that fitted them: the record gave them the text at the top of the facing page, f. 4r, which is the solution of another cipher (30v.7).
The two rows on f. 3v are those eight words. They have 28 signs in eight groups of 4, 3, 3, 3, 4, 5, 2 and 4 signs, the lengths of the eight words, and they are written in the alphabet of f. 49r. Twenty of the 28 signs are signs that also stand on f. 49r, with the letter they have there. Sixteen of them are in this table:
| Sign | Shape | Letter | On f. 3v | On f. 49r |
|---|---|---|---|---|
| S9 | the numeral 8 (a chevron) | ن | 3 | 3 |
| S5 | a loop on a zigzag with a long flat base | ع | 3 | 2 |
| S17 | the numeral 4 | ل | 3 | 1 |
| S6 | the ط shape | س | 2 | 1 |
| S7 | a small tooth joined to a tall stem with a bowl | ف | 1 | 1 |
| S13 | a stem with a slanting leg | و | 1 | 4 |
| S2 | a 6 shape | ج | 1 | 2 |
| S8 | two triangles on one base | ك | 1 | 1 |
| S11 | a hooked top over two crossing strokes | م | 1 | 4 |
The other four are two shapes. S3, a loop on a stem with a second small loop, is ب once on f. 49r (برجع) and twice on f. 3v (بان, بسلع). S12, a round loop with a rising arm, is the final ي of ضحي and علي, and every ي on f. 49r.
One sign goes against the key: S3 also stands once on f. 3v for ي (سلين). The other seven signs have six shapes that f. 49r does not have, and their letters rest on the verse alone: one each for ه, ت, ض and ح, a second sign for alif (twice), and a stem with a long tail that stands for the س of بسلع.
Together the two parts make one cipher of 70 signs for the 70 letters of the two verses, 20 groups for 20 words. The compiler’s introduction is on f. 3v, lines 9–11 (“then he, may God support him, wrote on the same theme from his own verse”), and his remark is on f. 49r, lines 4–5: the cipher “would not come apart except after much toil”. The text runs on from f. 3 to f. 49.
How it was checked
The rows on f. 3v were matched to the verse after the eight words were known, so that part of the key is not a blind reading. As a check, a separate model session was given the two rows of f. 3v and the rows of f. 49r as images, with no letters and no text, and asked which signs are the same shape. It counted the same 13 and 15 signs in the same groups, and matched the signs of f. 3v to those of f. 49r as the key does. It found no counterpart on f. 49r for the same six signs, and judged the stem with a long tail a different shape from the ط shape. It also noted that the numeral 4 sign is angular once on f. 3v and rounded twice; the key takes all three as ل.
On 2 Dec 2026 Brice Dudout, who already knew the proposed text, rebuilt the key from their own transcription of both leaves. It agrees with this one: 70 signs in 20 groups, with the same word lengths. Dudout also checked ten doubtful signs of this cipher and of 30v.7 by shape alone. The review led to two corrections here. The word on f. 49r, line 6 is برجع, not يرجع: there is one dot under the letter. That changes the translation to “with their answering call”. And the opening ي of يدرين is the same sign as the final one, so two labels became one. Both were checked on the scan here. Dudout also found that the verses are in the metre wāfir.
What is not settled
- Six signs on f. 3v are fixed by nothing but the verse. Five of them occur once, and the alif twice.
- Whether the stem with a long tail is a sign of its own or the ط shape with its loop left open. Brice Dudout’s blind check says it is the ط shape; the model session above said it is not.
- The alif of f. 3v is not the alif of f. 49r. It is close to a mirror image of the sign for د on f. 49r and was kept apart from it.
- The sign boxes of f. 3v in the list of signs were cut by a program and placed by the model; no person has reviewed the boxes.
- That f. 49 followed f. 3 rests on the text running on. Brice Dudout’s study of the binding on the images (28 Nov 2026) found that f. 49r opens in the middle of a verse and bears the quire signature “the third”. For the text to run on, f. 3 would have been the last leaf of the quire before. Today, by Penn’s count, it is the first leaf of its gathering. So the gatherings would have to have changed since. Nobody has checked the volume itself.
The record of the work is in solve_30v/REPORT.md.
03 Key
The signs of this cipher’s alphabet, with the Arabic letter each stands for in the key rebuilt from the compiler’s plaintext (23 signs, 70 occurrences placed on the page). The key was read by eye and then checked sign by sign in the master list of all signs, where every occurrence can be seen; the number links there. The last column gives the sign’s shape across the whole book: the same drawn shape in other ciphers, whatever letter it stands for there (the signs grouped by shape); “own” means no other cipher draws it; “not compared” means the sign was added or sorted again later and has not been compared.
| Sign | On the page | Letter | Times | Shape |
|---|---|---|---|---|
| A2 | ا | 2 | not compared | |
| D1 | ض | 1 | not compared | |
| H1 | ح | 1 | not compared | |
| H5 | ه | 1 | not compared | |
| S1 | ش | 2 | 173 · 3 ciphers | |
| S2 | ج | 3 | 30 · 28 ciphers | |
| S3 | ب / ي | 4 | 95 · 8 ciphers | |
| S4 | ر | 4 | 153 · 4 ciphers | |
| S5 | ع | 5 | 8 · 48 ciphers | |
| S6 | س | 3 | 4 · 54 ciphers | |
| S6b | س | 1 | not compared | |
| S7 | ف | 2 | 121 · 6 ciphers | |
| S8 | ك | 2 | 20 · 40 ciphers | |
| S9 | ن | 6 | 2 · 63 ciphers | |
| S10 | د | 4 | 3 · 57 ciphers | |
| S11 | م | 5 | 36 · 23 ciphers | |
| S12 | ي | 8 | not compared | |
| S13 | و | 5 | 104 · 7 ciphers | |
| S14 | ا | 4 | own | |
| S16 | ق | 1 | 217 · 2 ciphers | |
| S17 | ل | 4 | 24 · 35 ciphers | |
| S18 | د | 1 | 5 · 54 ciphers | |
| T1 | ت | 1 | not compared |
04 Sources
The corpus transcriptions were made with AI assistance. The source records give the evidence and uncertainties for this cipher.
- University of Pennsylvania manuscript facsimile and metadata
- Cipher transcription
- Arabic transcription and textual evidence
- Sign-by-sign key record or inventory
Transcriptions, keys and notes are in targets/ljs51corpus.
Cite this page
Daniel Bourdeau, “Probably the patron, al-ʿAlāʾī → Ibn al-Durayhim · cipher 3v.12+49r.1”, Cyphersolver, posted 2 December 2026, updated 3 December 2026, repository commit 980f16abb3, https://cyphersolver.com/ljs51-cipher-3v-12-49r-1.html.