c z // d r m^u c 4 q^a g 3 r x // d r x n 4 p̸ r
p e r  l a  s p e ra n o  a d  l a  d i e ta
M: = ser.mo Re de Hungaria · a+ = Ex.tia Vostra · 7 = f · // = e

Buda → Milan · homophonic cipher with syllables and a nomenclator · 1489–1490 · read

The Milanese embassy at Buda, 1489–1490

Archivio di Stato di Milano, Sforzesco 650 (1489 no. 8) and 642/1, 4 · two letters of Maffeo da Treviglio to Ludovico Sforza from the court of Matthias Corvinus · one of four pages, all cipher, that nobody had deciphered

The key was reconstructed by Judit W. Somogyi in 2016 but printed only as numbers, with no picture of a single sign · her numbering runs in order of first appearance in a letter that survives with its clear copy, which turns the numbers back into signs · both letters now read

Daniel Bourdeau · solved

Summary. Maffeo da Treviglio (Maffeo de Bullis, 1430–1498) was Ludovico Sforza's man at Buda from the summer of 1489. His ciphered despatches are in the Milan state archive, some with a contemporary decipherment beside them and some without. Judit W. Somogyi reconstructed his cipher in 2016 from five cipher-and-clear pairs, but her article gives the key only in a numeric transcription: every sign appears as a two-digit number, and no image of any sign is printed, so the key could not be applied to anything. The numbers turn out to run in order of first appearance in the letter of 2 April 1490, which survives together with its contemporary clear copy in the Vestigia database. Matching the two restores the shapes behind the numbers, and about twenty further signs came out of the reading itself. With that, the two despatches that have no decipherment are now read. Buda, 12 January 1490: the king has left for Vienna and the ambassadors will follow on the 15th. Buda, 22 November 1489: four pages on the peace with the Emperor, the Diet, the marriage of John Corvinus, the rival Neapolitan match, the queen's anger, and a warning that intercepted cipher letters have been read. The 1489 letter is the oldest text this project has read; the previous mark was 1497.

01 The documents

Five letters of Maffeo survive with both a ciphered original and a contemporary clear copy; Somogyi used them to build her key. Two others are cipher with no decipherment of any kind, and those are the ones read here.

ItemDate, placeFormStatus before
Vestigia 267 / 268 · Sforzesco 642, aprile nos. 6 and 6bis2 April 1490, Viennacipher + clear copy (“Extractus litterarum in ziffra Maphei Trivilensis”)the pair Somogyi used; the crib for this work
Vestigia 276/277, 249/256, 213/214, 200/201April–September 1490cipher + clear copySomogyi's other four pairs
Vestigia 2831 · Sforzesco 650, 1489 no. 822 November 1489, Budafour pages; pp. 1–3 and the first two lines of p. 4 in cipher, the rest clearonly its first two lines had ever been deciphered (Somogyi, as a specimen)
DECODE R1098 · Sforzesco 642/1, 412 January 1490, Budap. 1 clear, then ten lines of cipher; p. 2 clear“Partially decrypted” in DECODE; no decipherment known

Three further DECODE records from these boxes were checked and set aside: R1155 (Paolo Lanterio to Maffeo, 14 September 1492) has a seven-page contemporary clear copy in the same archive, catalogued as Vestigia 2240; R1147 (the abbot of Forlì, 18 November 1491) has its clear “Extractus Cifare Abatis Forliviensis”, printed in Dóra Labancz's edition of the 1491 letters; and R1152 (2 April 1492) is a clear draft, not a cipher at all. R1146 and R1158 are in two other ciphers, not Maffeo's.

Above, a line of cipher signs from the letter of 2 April 1490; below, the same passage in the contemporary clear copy.
The crib. Above, the opening of the ciphered letter of 2 April 1490 (Vestigia 267, after the clear word “Lo”); below, the contemporary clear copy filed beside it (Vestigia 268), headed “Extractus litterarum in ziffra Maphei Trivilensis Ill.mo D. Lud.co, 2 Aprilis 1490, Vienne”. Because Somogyi numbered the signs in order of their first appearance in this letter, the copy assigns a shape to each of her numbers. Archivio di Stato di Milano, Carteggio Sforzesco, Potenze Estere, Ungheria 642; images Vestigia.

02 Turning Somogyi's numbers back into signs

Somogyi's appendix prints the key as a table of numbers: a = 11, 29, 39; m = 12; b = 13; and so on through five nulls, three word signs (et, in, che), five doubled-letter signs, thirty-two syllable signs and six nomenclator entries (“il vescovo varadino”, “S. V.”, “ser.mo Re de Hungaria”, “madonna Bianca”, “zo. Corvino”, “la sua Maestà”). She also prints the first two lines of the 1489 letter twice, once as numbers and once deciphered. What she does not print is any image of a sign, and her numbers are her own invention, not the fifteenth-century chancery's.

The way in is the sequence. Her numbers 11, 12, 13, 14, 15, 16 read a, m, b, sa, to, re — which is “ambasatore”, the first word of the letter of 2 April 1490. 17, 18, 19 are d, e, l (“del”), 20 to 23 t, u, r, co (“turco”). The numbering simply follows that letter word by word, so the ciphered original supplies the shapes in the same order. From there the clear copy carries the reading to the end of the letter and fixes about forty signs.

The rest came out of the two unread letters themselves, each fixed by a word that could be nothing else: the long 7-shaped stroke is f (“Fedrico”, “fosse”, “satisfare”); an n with a crossed 4 is ss (“essere”, “potesse”); x with a tick is do (“quando”, “havendo”); a with a colon is gli (“meglio”); a looped b joined to o is st (“stato”, “questo”); d with a colon is fi (“figliolo”, “iustificare”); an n with a long crossbar is tt (“littere”); and a capital with a cross stands for “Ex.tia Vostra”. Numerals are written as figures, not enciphered: “ali 8 del presente”, “ali 15”, “in 20 o 25 di”. Latin words sometimes stand in the clear inside the cipher (“etiam apud”, “Sed hoc non fallet divinam sapientiam”).

03 Buda, 12 January 1490: the king rides to Vienna

The block of cipher on the first page of the letter of 12 January 1490.
The ten ciphered lines of the letter of 12 January 1490, below the clear text that breaks off at “…in mane sue”. ASMi, Sforzesco 642/1, 4; image DECODE (R1098).

The letter's clear first page is about church appointments; the cipher begins where the news turns delicate.

Questo Ser.mo Re partite de qua ali 8 del presente per andare ad Vienna, non ta[nto] per che la speranza de la dieta lo tiri, quanto per proprio desiderio de andarli; et che sia el vero, questi prelati mi hano dicto che in questo camino divertira ad [Tu…] … che sono molti et gr[an]di, et non si conduc[ono] ad Vienna a piu … che in 20 o 25 di. Lo legato et li altri oratori hano, et io con loro havemo, deliberato partire ali 15 de questo … rimasti dreto, perche … and[aremo per la] recta via ad Vienna.

“This Most Serene King left here on the 8th of this month to go to Vienna, not so much because the hope of the Diet draws him as from his own wish to go; and in proof of it, these prelates have told me that on this journey he will turn aside to [Tulln?] … which are many and great, and they will not reach Vienna in under 20 or 25 days. The legate and the other ambassadors have decided, and I with them, to leave on the 15th of this month … having stayed behind, because … we shall go by the direct road to Vienna.”

The reading checks itself: the letter's own second page says in clear words that “lo legato et li altri oratori et io siamo insieme deliberato partire alli 15 de questo … andare per la via ad Vienna”. The cipher says the same thing in the same order, and the word “Vienna” is spelled with the same signs in lines 2, 6 and 10.

04 Buda, 22 November 1489: peace, the Diet, and two marriages

Four pages. Somogyi printed the first two lines as a specimen; the rest had never been read. Matthias Corvinus had six months to live, his war with Frederick III was in suspense, and two marriages were in play for his illegitimate son John Corvinus: Bianca Maria Sforza, Ludovico's niece, and a daughter of don Federico of Aragon, Naples's candidate. Queen Beatrice of Aragon opposed the succession of her stepson.

The reading below is close but not word-perfect: bracketed words are uncertain, ellipses mark groups not yet read. Page 1 and page 2 are read nearly throughout, page 3 in its first half and in patches thereafter.

[Page 1] La Ex.tia vostra intende ad quali termine la pratica de pace et per consequente questa dieta. Questo Ser.mo Re de Hungaria e tenero del honore suo, como ho scripto altre volte; non e dubio che lui non desidera la pace, et non tanto pero che l[a] voglia receve[re] … andare ad la dieta … perche non se gli potesse imputare che per lui fosse rotta la pratica. Gli pare anche duro andarli per non cavare niente et riceverne scorno; et pero desidera havere l[ette]re da … che lo … affirmando li essere [tanto] disposto a la pace, et con questo si contenta andarli, anchora che fosse certo che niuna conclusione ne dovesse riuscire, perche gli pare … potersi sempre iustificare et satisfare ad honore suo.

… Etiam che questo novo ambasiatore de Napoli [ha] tractare la reconciliatione de la [Maestà] con lo [Imperatore] per [dispo]nerla a la voglia, como lui dice, de la … per [beneficio] de suo figliolo; habia una altra volta tentate et facto mentione de la figliola de don … Fedrico, et gli ne ho facte quelle coniecture … le parole che ha dicto al Ser.mo Re, che … voglia havere rispecto al honore de la [sua Maestà]. … Liberamente questa aff[init]a essere facta in suo dispecto … al honore suo, stando questa affinita … la figliola de don Federico, che gli e dispiaciuto da morte quando fosse stato … apresso uno gentilhomo napolitano che e con lo dicto ambasiatore.

[Page 2] … et, respondendoli colui parerli imposibile essendo [cocto] questo de Milano, solenemente replico essere vero, dicendo che la parentata de Milano era gia [conclusa]. Sono ancora stati de cortesani li quali, havendo inteso de la deliberatione che era facta, che messere Francisco and[a]sse ad Napoli, gli hanno dicto: “Voi andarete ad disfare quello che haveti cocto!” … Io li significo liberamente a la Ex.tia Vostra quello sento … ne pigliare[a] quella parte che gli parera … che non habia restare per lei ad [fare] omne prova se possi avertere … lo Ser.mo Re da proposito … et in questo non cedera a la insaciabile ira de Iunone …

… per la experientia del passato se po iudicare del futuro. Le littere in cifra che forono intercepte, le quale duplicate sono state scoperte a[n]cora qua, hanno indicato l'animo suo … no[n] i[n]coveniente usare de quelle rotte, se co[me] usa lui … omne volta che … del adiuto de quello stato … de insolente, intolerabile … che, overo, non e da prestare fede … qua gli ne … dare … sopra la dote.

[Page 3] … quando si parera, se dica qualche parola ad la sua Maestà … Francisco ad l'andare ad Napoli, e proceduto dal[la] sua Maestà … dal signore suo, de reconciliar[e] lo re con la sua Maestà … l'andar[e] ad Napoli, mando per … et gli disse che andasse con … animo … fructo de l'andar sua … habia dicto de volerlo mandare piu presto per tentarlo che per deliberatione … et dice ancora che ad … non havera ad dimorare piu che octo di, o dece al piu, et che vole affretare el camino per trovarsi presto … la singulare observantia de questo Ser.mo Re verso la … conveniente ad questo effecto, per disponer[e] la … del Turco … il Turco, dopoi … del re Ferdinando galiardamente, et co[n] tale modest[i]a che convi[e]ne … volendo la Santita sua …

[Page 4, the last two ciphered lines] … quello che sapia et possi [fare]. Sed hoc non fallet divinam sapientiam de la. Ma se e dicto ancora che la … al Soldano.

05 The clear postscript: an ambassador's expenses

The last page of the letter, where the cipher stops and the clear hand resumes.
Page 4: the cipher stops after two lines and Maffeo goes on in the clear, about money. ASMi, Sforzesco 650; image Vestigia.

Nothing on this page is secret, and it was never enciphered. It is also the only part of the letter that is about Maffeo himself.

Credo che la Ex.tia V.ra havera facto dar quelli ducento ad m. Fran.co; che, se cosi e, la ringratio infinite volte de la clementia et bonta sua infinita. Et perche quelli denari non mi portavano fin al fine de decembre, et partendosi lui non saperia da chi imprum[ut]are uno quatrino se non dal Thexaurero Regio, che seria con graveza de la persona vostra propria … Se de questa spesa non gli ne faria honor, sonno contento che non me ne proveda; io gli posso affirmar etiam cum iuramento che, doppoi che sonno qua, ultra quello ho havuto et tolto in nome del Ill.mo S. V.ro, ho speso di mei piu de centocinquanta ducati tra mi, veste et cavalli … che la provisione che me e ordinata non mi basta, dovendo tener questo loco secundo la dignita sua. Et perche in questa novita facta de Cancelleri forse poteria esser dome[n]ticato, La supplico ordini ad chi li par che provedi sia compreso in el numero de li altri Can[cellieri] et in lassignatione facta ad la Cancellaria. A V.ra Ex. de continuo me recomando. Bude xxij Novembris 1489. E[iusdem] Ill.me D[ominationis] V[ostre] servus, Magister Trivilien[sis].

“Since I have been here, beyond what I have had in Your Lordship's name, I have spent more than a hundred and fifty ducats of my own on myself, clothes and horses … the allowance assigned me is not enough to keep this post according to its dignity. And because in this recent reshuffle of the chancery clerks I might be forgotten, I beg you to order whoever you think fit to see that I am counted among the other chancellors.” The phrase “et in lassignatione facta ad la Cancellaria” is the explicit by which the archive catalogues the letter.

06 Method

The images are the Vestigia plates (3240×4320, no login needed: the record page at vestigia.hu/documents/<id> carries the whole record as JSON, and the originals are served from /media/<file id>/<file name>) and, for R1098, the DECODE scans of the same negatives.

The working loop was: connected-component segmentation of each page into glyph boxes, line assignment by the peaks of the horizontal ink projection, merging of the two-stroke signs and of superscripts with the letter below them; then numbered strips, one line at a time, transcribed into values by hand against a sheet of sign exemplars cut from the letters themselves; then the values segmented into Italian, and any place where the Italian failed sent back to the image. The 2 April pair was aligned by dynamic programming against its clear copy to seed the key. Several rounds were needed: the first pass on the 1489 letter produced letter strings, the second, working from contrast-stretched crops of whole lines rather than from boxes, produced sentences.

Two practical notes for anyone continuing. The automatic line segmentation misassigns glyphs in the lower half of pages 2 and 3 of the 1489 letter, where the lines converge; read those from the plate with per-row crops. And the stacked line crops drift from line 18 onward on page 3, which cost one pass its accuracy.

07 What remains uncertain

08 Sources

Transcriptions, the key with its sign exemplars, the segmentation and decoding scripts, and the line-by-line reading files are in buda1489/ in the repository. The archive images themselves are not redistributed here.