Code
Ways of writing that hide nothing by design — bases, bits, binary formats, floats, Unicode, Roman numerals, timestamps, coordinates, check digits — read and written both ways.
Numerals
Writes a number in ten systems from their prints, drawn in their signs: King’s cuneiform (1898), Budge’s hieroglyphs (1895) with Möller’s Horus eye (1910), Morley’s Maya numerals (1915), the Chinese figures and rods after Pihan (1860) and Wade (1886), Ethiopic, Kaktovik, every script’s digits, the abacus after Knott (1886), Bede’s fingers on Leupold’s hands (1727) and words in six languages; all but the abacus and the fingers read back.
History, how it works, how it was checked, limits
History
The Babylonians wrote places of sixty with no zero: their signs, Hilprecht warns (1906, p. 26), “can be read in many different ways, unless determined by the context and a sufficient number of smaller figures following”. Egyptian hieroglyphs repeat a sign for each power of ten; a unit fraction is the mouth over its number, and corn was measured by the Horus eye (Möller, 1910). The Maya counted in bars and dots (Morley, 1915); Chinese figures set a multiplier before each place (Pihan, 1860). Kaktovik’s numerals were made by Iñupiaq students in 1994. Bede (725) counted on the fingers, the units and tens on the left hand, the hundreds and thousands on the right.
How it works
Each system is written from the prints its note names. King’s cuneiform, Kugler’s late zero, Budge’s hieroglyphs, Morley’s zero, Möller’s eye and Leupold’s hands (1727) are traced from their pages, each pinned by its SHA-1, a right hand Leupold’s left mirrored as Bede’s text has it; bars and dots, rods, Kaktovik’s strokes and the abacus are drawn by their sources’ rules; Chinese, Ethiopic and the digits are the font’s. What is typed is read only where, accents, capitals, spaces and hyphens aside, it is one of the ways the prints write that number; anything else is refused, with the rule it breaks. Where the prints differ the reader chooses.
How it was checked
The prints’ own examples are its tests: Morley’s Fig. 63, Budge’s 992,750 and 1/45, the Chinese of Pihan, Rémusat, Wade and Mateer, Dillmann’s Ethiopic, the Kaktovik proposal’s sums, Knott’s abacus (his 3437·843 a misprint for 3437·343), the six languages’ printed words and Bede’s rule for the right hand (p. 143). Every system writes and reads back thousands of numbers.
The tests hold 86 checks of this tool; 46 rest on outside material, the first eight here:
- A standard’s own vectors UnicodeData.txt (17.0.0) names every run of decimal digits the engine knows; Bengali’s 1946 is ১৯৪৬, and digits of two scripts read together
- A print’s own example Thureau-Dangin, p. 50: a wedge and eleven, 1.11, is 71; 1.20 is 80 and 1.40 is 100
- A print’s own example Hilprecht, p. 26: with no zero the same signs read many ways, 1.0 as 60, or 3,600 or 216,000 with the last place higher, or 1 with it counted as sixtieths
- A print’s own example Hilprecht, p. 26: with no zero, 3,600 is a wedge and two empty places nothing marks; the note says the signs read the same as 1
- A print’s own example Kugler, Tafel IX and p. 129: 6 0 35 12, a place empty between written ones
- A print’s own example Erman, §140, p. 59: 12,635 is a finger, two lotuses, six coils, three hobbles and five strokes, the greater first
- A print’s own example Budge, p. 34: 992,750 is 900,000 + 90,000 + 2,000 + 700 + 50
- A print’s own example Budge, pp. 32–33: 5 to 9 stand two over three, three over three, three over four, four over four, four over five; 30 in a row, 40 two over two
The other 38, and every tool’s checks
Limits
King does not date his second forms. Peet’s very rare ¾ as “three parts” no print read draws, so ¾ is shown on the eye; ten million is Budge’s sign alone. Morley gives no count in pure twenties. Chinese stops at 99,999,999, the prints giving 億 as 100,000; Morrison’s 一千零一 is 1,010. Ethiopic past a million and Kaktovik’s figures follow rules, not prints. The billion is the American one; Fowler’s British billion is a million millions. Italian and Latin begin at one, and Latin stops below a million. Bede makes a unit and a ten on one hand at once, which the plate and the tool draw apart; his ten thousands, against the body, are not drawn.
- Bede, De temporum ratione, cap. I, in The Complete Works of Venerable Bede, ed. J. A. Giles, vol. 6 (London, 1843), pp. 141–144
- Jacob Leupold, Theatrum arithmetico-geometricum (Leipzig, 1727), Tab. I, “Der Alten Finger-Rechnung”
- L. W. King, First Steps in Assyrian (London, 1898), pp. CXXXIII–CXXXIV: the numerals
- H. V. Hilprecht, Mathematical, Metrological and Chronological Tablets from the Temple Library of Nippur (Philadelphia, 1906), pp. 23–26
- F. Thureau-Dangin, Esquisse d’une histoire du système sexagésimal (Paris, 1932), pp. 23, 50
- F. X. Kugler, Die babylonische Mondrechnung (Freiburg, 1900), Tafel IX and p. 129: the late zero
- E. A. W. Budge, First Steps in Egyptian (London, 1895), pp. 32–34
- A. Erman, Egyptian Grammar, tr. J. H. Breasted (London, 1894), §140
- G. Möller, “Die Zeichen für die Bruchteile des Hohlmaßes und das Uzatauge”, Zeitschrift für ägyptische Sprache 48 (1910), pp. 99–101
- T. E. Peet, The Rhind Mathematical Papyrus (London, 1923), pp. 15, 25
- S. G. Morley, An Introduction to the Study of the Maya Hieroglyphs (Washington, 1915), pp. 62–63, 87–94, 129–133
- A.-P. Pihan, Exposé des signes de numération usités chez les peuples orientaux (Paris, 1860), pp. 2–9, 188–193
- A. Rémusat, Élémens de la grammaire chinoise (Paris, 1822), pp. 50, 115–116
- T. F. Wade and W. C. Hillier, Yü yen tzŭ erh chi, 2nd ed., vol. 2 (Shanghai, 1886), pp. 3–6
- C. W. Mateer, A Course of Mandarin Lessons, revised ed. (Shanghai, 1900), pp. 3–4
- R. Morrison, A Grammar of the Chinese Language (Serampore, 1815), pp. 82–84
- A. Dillmann, Grammatik der äthiopischen Sprache (Leipzig, 1857), Tafel I and p. 27
- C. Marín Silva, J. Miller and C. Strand, Unicode request for Kaktovik numerals, L2/21-058R (2021), and its draft L2/20-070 (2020)
- The Unicode Standard: decimal digits (General Category Nd), and UnicodeData.txt, version 17.0.0
- C. G. Knott, “The Abacus, in its Historic and Scientific Aspects”, Transactions of the Asiatic Society of Japan 14 (1886), pp. 46–49
- D. E. Smith and Y. Mikami, A History of Japanese Mathematics (Chicago, 1914), pp. 30–32
- T. Kojima, The Japanese Abacus: Its Use and Theory (Tokyo: Tuttle, 1954), pp. 25–27 (cited for its facts)
- U.S. Government Publishing Office, Style Manual (2016), rules 6.36, 12.20 and 12.24
- The University of Chicago Press, Manual of Style (1906), §§ 85–86; H. Sweet, A New English Grammar (1891), §§ 1159–1169
- H. W. Fowler, A Dictionary of Modern English Usage (Oxford, 1926), pp. 52–53, “billion”
- Rat für deutsche Rechtschreibung, Amtliches Regelwerk (2024), § 36 and § 55; G. O. Curme, A Grammar of the German Language (1922), § 120
- Grammaire de l’Académie française (1932), pp. 68–70; Conseil supérieur de la langue française, “Les rectifications de l’orthographe”, Journal officiel, 6 December 1990
- Rules for Compositors and Readers at the University Press, Oxford (“Hart’s Rules”, 1912), p. 80
- É. Littré, Dictionnaire de la langue française, vol. 4 (Paris, 1889), p. 2497, “vingt”
- A. Brachet and J. Dussouchet, Grammaire française, cours supérieur (Paris, 1919), § 326, p. 167
- R. Fornaciari, Grammatica italiana dell’uso moderno (1882), pp. 139–142; L. Morandi and G. Cappuccini, Grammatica italiana (1895), §§ 338–346
- Treccani, Enciclopedia dell’Italiano (2011), “numerali” (cited for its facts)
- Real Academia Española, Diccionario panhispánico de dudas (2005), “cardinales” (cited for its facts); A. Bello, Gramática de la lengua castellana (1847), §§ 90–96
- Real Academia Española, Gramática de la lengua castellana (Madrid, 1920), § 65 e
- J. H. Allen and J. B. Greenough, New Latin Grammar (Boston, 1903), §§ 132–138