At a glanceExisting decipherment · complete
- From
- The compiler (probably Ibn al-Durayhim)
- To
- Readers familiar with the tree script
- Exchange note
- The compiler says he re-enciphered the couplet in tree script for anyone who could read it.
- The folio
- University of Pennsylvania, Kislak Center, LJS 51, f. 63v. The compiler rewrote an Arabic couplet as five rows of trees. Read the English translation.
- The rule
- Count the branches on the right for the abjad group and on the left for the letter’s position.
- Earlier accounts
- The Shawq al-mustahām illustrates the alphabet. Ibn al-Durayhim’s Miftāḥ al-kunūz explains how to draw it.
- Prior identification
- Lisa Fagin Davis connected the manuscript’s tree script with the Shawq plate.
01 The folio
On f. 63v of Penn LJS 51, the compiler writes out a couplet as five rows of small trees. He calls it al-qalam al-mushajjar (القلم المشجّر), the tree script, and says he copied the verse this way so that whoever knew the script could read it. Two treatises help explain the page. The Shawq al-mustahām illustrates the alphabet. Ibn al-Durayhim’s Miftāḥ al-kunūz explains how to draw each letter by counting branches. Ibn al-Durayhim’s Cipher Casebook (Penn LJS 51).
The three scans side by side
Start with alif at the upper right of the Shawq alphabet and the Penn folio. Both give it one branch on each side of the stem. The Miftāḥ example starts at the right with mīm, drawn with three left branches and four right branches. Select any scan to enlarge it, or go to the letter-by-letter comparison.
02 The tree alphabet in the Shawq al-mustahām
The Shawq al-mustahām fī maʿrifat rumūz al-aqlām, traditionally attributed to Ibn Waḥshiyya, presents the tree alphabet under the name of Dioscorides. The accompanying story says he wrote about plants and their properties in this script and that other sages used it in their books. Joseph von Hammer’s 1806 edition prints the tree signs in abjad order. The plate begins with a Y-shaped alif, just like the folio. The signs that follow add branches on one side as the letters advance through the first abjad group. The treatise’s authorship is disputed. Hammer’s edition, Arabic p. 38 and English § XVI. Toral-Niehoff and Sundermeyer, p. 251.
Lisa Fagin Davis connected the tree script in LJS 51 to the Shawq plate in a description she prepared after examining the manuscript for Lawrence Schoenberg in the mid-1990s. She posted the description publicly in January 2026. The sign-by-sign reading below shows how the branch counts on f. 63v compare with Ibn al-Durayhim’s instructions. Davis’s manuscript description.
Letter-by-letter comparison
Hammer’s printed Shawq plate follows the Eastern abjad counts for all 28 letters. The Penn couplet contains 22 of those letters. Of its 79 trees, 76 match the plate, both trees for ṣād differ, and one tree for lām is damaged. The counts below exclude the tip of the central stem and the lines joining the trees at their base. Bavarian State Library copy, Arabic p. 38. UNC Chapel Hill copy, Arabic p. 38. Folio transcription and counts.
Ṣād (ص) has four left branches and five right in the Shawq. Both red-glossed occurrences on f. 63v, row 1 tree 12 and row 3 tree 1, have one left branch and five right. The right side still points to the fifth group. The left side moves ṣād from fourth to first within it. Hammer’s plate uses 1/5 for sīn (س), which is absent from the couplet.
Ṣād and sīn closeups
Row 1, tree 12 1 left5 right Image: Penn Libraries, LJS 51, f. 63v, via OPenn.
Row 3, tree 1 1 left5 right Image: Penn Libraries, LJS 51, f. 63v, via OPenn.
Middle row of the plate 4 left5 right Image: Hammer’s 1806 edition, Arabic p. 38, UNC Chapel Hill Libraries copy, via the Internet Archive.
Middle row of the plate 1 left5 right Image: Hammer’s 1806 edition, Arabic p. 38, UNC Chapel Hill Libraries copy, via the Internet Archive.
Lām (ل) matches the plate in six trees. A tear crosses the crown of the seventh, row 3 tree 15. The visible strokes can be counted as 3/4 if the possible stem tip is taken for a branch. The red gloss and parallel sign cipher support lām.
The crops show the printed Shawq signs and a representative tree for each letter present on f. 63v. Both Penn ṣād trees and the torn lām are included. Select a crop to view it at full size.
| Letter | Shawq | LJS 51, f. 63v | Comparison |
|---|---|---|---|
| ا | 1/1 |
Match | |
| ب | 2/1 |
Match | |
| ج | 3/1 |
Match | |
| د | 4/1 |
Match | |
| ه | 1/2 |
Match | |
| و | 2/2 |
Match | |
| ز | 3/2 |
Match | |
| ح | 1/3 |
Match | |
| ط | 2/3 |
Match | |
| ي | 3/3 |
Match | |
| ك | 1/4 |
Match | |
| ل | 2/4 |
Six match, one torn | |
| م | 3/4 |
— | Absent from folio |
| ن | 4/4 |
Match | |
| س | 1/5 |
— | Absent from folio |
| ع | 2/5 |
Match | |
| ف | 3/5 |
Match | |
| ص | 4/5 |
Different in both trees | |
| ق | 1/6 |
Match | |
| ر | 2/6 |
Match | |
| ش | 3/6 |
Match | |
| ت | 4/6 |
Match | |
| ث | 1/7 |
— | Absent from folio |
| خ | 2/7 |
— | Absent from folio |
| ذ | 3/7 |
Match | |
| ض | 1/8 |
— | Absent from folio |
| ظ | 2/8 |
— | Absent from folio |
| غ | 3/8 |
Match |
03 The branch rule in Ibn al-Durayhim’s Miftāḥ
Ibn al-Durayhim’s fourteenth-century treatise tells the reader to start with a stem. The branches on the viewer’s right give the number of the abjad group. The branches on the left give the letter’s position in that group. The groups are mnemonic words that preserve a traditional order of the Arabic alphabet. The treatise demonstrates the rule with محمد ابن عم علي, “Muḥammad is ʿAlī’s cousin.” Its first letter, م, is third in the fourth group, so it takes three left branches and four right branches. The editors flag a copyist’s error affecting the shapes for alif and dāl in the example. 1987 Arabic edition, vol. 1, pp. 313 and 335. Arabic Origins of Cryptology, vol. 3, pp. 42 and 74–76.
| Right branches | Group | Letters in order of increasing left branches |
|---|---|---|
| 1 | abjad | ا ب ج د |
| 2 | hawwaz | ه و ز |
| 3 | ḥuṭṭī | ح ط ي |
| 4 | kalaman | ك ل م ن |
| 5 | saʿfaṣ | س ع ف ص |
| 6 | qarashat | ق ر ش ت |
| 7 | thakhadh | ث خ ذ |
| 8 | ḍaẓagh | ض ظ غ |
An earlier positional method appears in Ibn Wahb’s work. He identifies each letter by its word and place in a verse containing every letter of the alphabet. The Damascus editors compare this with the tree script, which draws those two counts using the abjad groups. Al-Qalqashandī’s later summary of Ibn al-Durayhim lists several ways to conceal letters, including substituting pictures and names of trees, and passes over the branch-count rule. Damascus edition, vol. 2, p. 169. Al-Qalqashandī, Ṣubḥ al-aʿshā, vol. 9, pp. 229–232.
04 Reading the 79 trees on f. 63v
Shihāb al-Dīn al-Mutarjim sent the couplet in a sign cipher. The compiler records that cipher, then rewrites the verse in trees. Red Arabic letters stand over the trees, and a copy in ordinary Arabic runs up the right margin. The trees read right to left within each row, starting at the top. The first four give ا ي ر ي. The first is a fork with one branch on each side, the second has three on each side, and the third has two on the left and six on the right. Sign-by-sign transcription.
The Eastern table accounts for 76 of the 79 trees. Both occurrences of ṣād (ص), in rows 1 and 3, have one branch on the left and five on the right. This puts ṣād first in the fifth group, as in the Maghribi ṣaʿfaḍ. In the Eastern table, ṣād is fourth in that group. The signs for shīn and ghayn agree with the Eastern order. Giving ṣād the position it has on the folio brings the agreement to 78 of 79. The remaining tree, row 3, sign 15, is torn at the crown. Its recorded count gives mīm, while the gloss and parallel text support lām, which requires one fewer left branch. Six letters are absent from the verse, leaving their positions in this copy untested. Branch counts and comparison tables.
The two ciphers also help read the marginal copy. They support three corrected readings that can be made out in the margin, ايري, لا يجوز and يجوز. Both give فنكته before the final word, where the margin is rubbed. Parallel sign cipher. Checks against the margin.
ايري كبير والصغير يقول لي اطعن حشاي به وكن صنديدا
ناديت هذا لا يجوز فقال لي عندي يجوز فنكته تقليدا
English translation
My member is big, and the little one says to me, “Pierce my insides with it and be a hero.”
I cried, “This isn’t permitted.” He told me, “As far as I’m concerned, it is.” So I had sex with him, taking his word for it.
“The little one” translates al-ṣaghīr. The Arabic leaves its referent implicit. Fa-niktuhu is a blunt expression for having sex with him. Ibn Manẓūr, Lisān al-ʿArab, root n-y-k.
The closing taqlīdan (تقليدًا) tells how the speaker acted. “By imitation” is possible in isolation. In legal usage, taqlīd means accepting another person’s judgment without examining its grounds. Here lā yajūz, “it isn’t permitted,” is answered by ʿindī yajūz, “in my view it is.” “Taking his word for it” is a tentative reading of the joke. The speaker treats his companion’s permission as a ruling he can follow. Al-Jurjānī’s definition of taqlīd. Lane, root q-l-d. Casebook translation supplement.
The letter-sign encipherment on folio 63v
- From
- Possibly Shihāb al-Dīn Aḥmad al-Mutarjim
- To
- Unclear
- Exchange note
- The preceding folio mentions al-Mutarjim, but the cipher block has no separate introduction.
In lines 1–6 the couplet appears in letter signs. The tree script below it enciphers the same words with a different system. The marginal clear copy and the red letters over the trees preserve the reading for comparison. Read the shared translation.


Every tree, by letter
All 79 trees of f. 63v, cut one by one from Penn’s master image (the trees of a word share one ground line, so each tree was found from its trunk and the red letter over it) and grouped by the letter of the compiler’s plaintext they stand for, in reading order. Trees of one letter should share one branch count; the master list of all signs shows every tree large enough to compare, and the number links there.
| Tree | On the page | Letter | Times |
|---|---|---|---|
| tree ا | ا | 11 | |
| tree ب | ب | 4 | |
| tree ت | ت | 2 | |
| tree ث | ث | 2 | |
| tree ح | ح | 3 | |
| tree د | د | 5 | |
| tree ذ | ذ | 1 | |
| tree ر | ر | 4 | |
| tree ش | ش | 1 | |
| tree ص | ص | 2 | |
| tree ط | ط | 1 | |
| tree ع | ع | 2 | |
| tree غ | غ | 1 | |
| tree ف | ف | 1 | |
| tree ق | ق | 3 | |
| tree ك | ك | 2 | |
| tree ل | ل | 9 | |
| tree ن | ن | 5 | |
| tree ه | ه | 3 | |
| tree و | و | 6 | |
| tree ي | ي | 11 |
05 The tree script and the compiler
Penn dates the surviving copy to the fifteenth century, possibly in Syria. On f. 102v the compiler calls the Miftāḥ al-kunūz “my book” and names its chapter on maqlūb, or rearrangement. That chapter appears in Ibn al-Durayhim’s treatise. On f. 50r the compiler gives al-Durayhim as the sobriquet of a remote ancestor. Taken together with the branch counts on f. 63v, these details support identifying the compiler as Ibn al-Durayhim. The folio preserves the method in use on an exchanged verse, with glosses and parallel copies that make it possible to check the reading. Penn’s manuscript catalogue. The casebook’s account of the compiler.
06 Sources
- University of Pennsylvania Libraries, Kislak Center, LJS 51, ff. 50r, 63v and 102v. OPenn record and page images.
- Shawq al-mustahām fī maʿrifat rumūz al-aqlām, attributed to Ibn Waḥshiyya, edited and translated by Joseph von Hammer as Ancient Alphabets and Hieroglyphic Characters Explained (London, 1806), Arabic p. 38, English § XVI. Bavarian State Library scan.
- Ibn al-Durayhim, Miftāḥ al-kunūz fī īḍāḥ al-marmūz, edited by M. Mrayati, Y. Mīr ʿĀlam and M. H. al-Ṭayyān, ʿIlm al-taʿmiya wa-istikhrāj al-muʿammā ʿinda al-ʿArab, vol. 1 (Damascus, 1987), pp. 313 and 335. Arabic edition. English edition, vol. 3, pp. 42 and 74–76.
- Lisa Fagin Davis, description of LJS 51 for Lawrence Schoenberg, reposted 30 January 2026. Manuscript description.
Cite this page
Daniel Bourdeau, “The tree script in Penn LJS 51”, Cyphersolver, posted 29 November 2026, updated 30 November 2026, repository commit 5abf8bd9aa, https://cyphersolver.com/ljs51-tree-script.html.



















































