Z52
Zmongol Zcode · A Position Paper

Why Z52 exists

Z52 is a private working encoding for the traditional Mongolian script, used inside one ecosystem of apps, fonts and corpora. This paper states precisely what Z52 is and is not, why it was created, where information is lost when text moves between encodings, and the conformance commitments under which it operates. It is written for readers of The Unicode Standard, whose model it respects — and whose current Mongolian encoding model it respectfully documents difficulties with, from production experience.

One house, one name. This project has travelled under three names, and we now unify them. Z52 is the name of the whole house: the encoding, the technology, and the family built on it. Zmongol is the name of the applications — the editors, keyboards, library and learning apps that Z52 powers. Zcode, the workshop name the project began with, is retired into Z52; there is one name now, and it is the foundation's.

Why 52? Because the classical Mongolian letter inventory, as Z52 encodes it, has exactly 52 letters (the remaining codes of the 81 are punctuation, marks and space). And the number is chosen to be remembered by the world's most widely read alphabet: the Latin alphabet has 26 capital letters and 26 small letters — 52 in all. The name therefore explains itself to any reader of Latin script, and it is anchored to the most durable writing system on earth: as long as the Latin letters survive, the meaning of “52” survives with them.

The number was earned, not picked once. Under the Zcode workshop the encoding was built in turn as Z65, then Z97, Z55 and Z49 — and after all of them, the project landed, finally, at Z52: the one count that is true twice over, in the Mongolian inventory and in the Latin alphabet alike.

1 · Background: the standard model and its difficulties

The Mongolian block of The Unicode Standard (U+1800–U+18AF) encodes the traditional script as abstract characters. The rendered form of a character depends on its position in a word (isolate, initial, medial, final) and is produced by shaping behaviour in the font. Where contextual rules do not determine a unique form, the encoded text must carry additional information: the Free Variation Selectors (FVS1–FVS3, U+180B–U+180D; FVS4, U+180F), the Mongolian Vowel Separator, and joiner controls. Unicode Technical Note #57 (UTN #57) describes a disciplined model for using these mechanisms consistently; in this paper, “UTN57” denotes standard Unicode Mongolian text encoded under that discipline.

From production experience — input methods, editors, a dictionary of 499,925 words, book corpora and an OCR engine — we record four recurring difficulties with the model as deployed in practice:

2 · The Z52 model

Z52 is a fixed inventory of 81 codes for the classical script: letters, punctuation and marks. Its defining property is that each code denotes one determinate letter. Z52 text contains no variation selectors, no separators and no joiner controls; determining what letter a code represents never requires context, a dictionary, or font-specific behaviour. A Z52 font requires one glyph per code, and rendering inside the ecosystem is deterministic: the same text produces the same display on every device, a property we verify character by character on physical hardware.

Z52 is deliberately small in scope. It is a working encoding — the internal representation for input, storage, processing and training within one product family — and it is specified in a published document (the Z52 specification, available from the author) with complete mapping tables to and from standard Unicode Mongolian.

3 · Comparison

The following checklist is stated in terms a standards reader can audit. ✓ = the property holds · ✗ = it does not.

PropertyZ52UTN57
Conforms to The Unicode Standard✗✓
Interchangeable without private agreement✗✓
Archival: legible in fifty years with no reference to its maker✗✓
Rendering is a deterministic function of the encoded text✓✗
Encoded text contains no invisible format or selector characters✓✗
Search, sorting and spell-checking operate on the text as written✓✗
Implementable completely and correctly by a small team✓✗
One glyph per encoded letter in the font✓✗
Encodes every distinction of the classical letter inventory✓✗
Repairable or extensible by its maintainer without a standards cycle✓✗

Neither column is an argument against the other. They describe two different optimisations: UTN57 optimises for universal interchange; Z52 optimises for determinism and completeness within a bounded domain. The architecture in §10 assigns each to the role it is suited for.

4 · Where the “13%” is lost

It is sometimes said that converting UTN57 text to Z52 “loses 13%”. The figure is real but widely misunderstood, including by its friends. The loss does not occur in conversion, and it is not a defect of UTN57 tooling. It occurs at the keyboard: the information is lost at the moment a user starts typing in UTN57, before any conversion is contemplated.

Let the conversion claim be stated exactly, because it is stronger than the misunderstanding: under the UTN57 discipline, conversion is 100% in both directions — Z52 to UTN57, and UTN57 to Z52. The converter loses nothing, in either direction, ever. It can only carry what was written down. What follows is about what ordinary UTN57 typing fails to write down.

Where the classical inventory distinguishes two letters and the Unicode model provides one character — the distinction being carried, if at all, by an optional variation selector — uncontrolled UTN57 text in the field usually does not record which letter was intended. Different input methods emit selectors inconsistently or not at all. The encoded text therefore does not contain the distinction, and no converter, however sophisticated, can recover information that was never encoded. A converter can only infer it, from a dictionary and rules.

Measured behaviour of our production converter makes the three cases precise:

Information is lost at birth, or not at all. A distinction that the source encoding did not record cannot be restored downstream — it can only be guessed.

We ask readers from the standards community to note the implication: the 13% is a measurement of what the current model, as actually practised, fails to preserve of the classical script. It is field evidence about the model, offered as such.

5 · The difficulty budget — why the working inventory is shaped as it is

The traditional Mongolian script is vertical: text runs top to bottom, and columns advance left to right. This is not a property an encoding can choose or refuse — it is the script. But it is not free. Almost every text technology in general use — editors, browsers, layout engines, input frameworks — is built horizontal-first, so vertical presentation must be re-won on every platform, in every toolkit, against defaults that assume otherwise. For a script sustained by a small community, verticality is a fixed tax on every piece of software that will ever be written for it.

The current Unicode model adds a second tax on top of the first. Because one character must serve several classical letters, the displayed form of a word depends on free variation selectors, the Mongolian vowel separator and joining behaviour — invisible characters that every input method must emit with perfect consistency and every font must interpret identically, or the text renders wrongly and searches falsely. Neither tax is fatal alone. Together they mean a working Mongolian system must solve two hard, script-specific problems before it can do anything at all — and must keep solving them, correctly, on every new generation of platforms, forever.

The working inventory exists to remove the second tax, because the first cannot be removed. One code per classical letter. No variation selectors. No separator characters inside words. Letters that behave in plain text the way Latin letters behave — searchable, sortable, comparable, diffable with generic tools that were never written for Mongolian. The inventory is deliberately unoriginal: its 52 letters mirror the 26 + 26 of the Latin alphabet, because the strategy is inheritance. Every improvement the world's Latin-script infrastructure receives — every editor, every search engine, every accessibility tool — is inherited by text in this inventory at no cost to the script's own community. The vertical tax remains; it is the one difficulty the script must pay. Everything else, we declined to pay.

The inventory likewise follows the standard's orientation and layout tradition without alteration. The disagreement is not with how the script stands on the page, but with how much invisible machinery a single letter is asked to carry.

The alternative direction asks more of the future. A model whose correctness depends on disciplined selector usage requires every future input method, font and tool — including tools not yet written, by developers who may never have seen this script — to implement a complex, script-specific behavioural model correctly. That is an architecture that must be rebuilt in every generation of software. For a major script, with thousands of engineers, such costs are absorbed invisibly. For this script, they are the whole budget. And the risks compound: if the script falls behind on any one of its stacked difficulties — vertical layout, selector discipline, shaping agreement between fonts — it does not fall behind once; it falls behind at the speed at which the major scripts' ecosystems improve by default, while this one must be carried by hand. The measured 13% of Finding 2 is what that arithmetic looks like at the keyboard.

The claim made for the working inventory is therefore modest and economic, not ideological: remove every difficulty that can be removed, so that the one difficulty that cannot — the vertical line itself — remains affordable for the community that has to pay for it.

6 · What letters do not carry: pronunciation

It is sometimes objected that the working inventory merges distinctions of sound: it deliberately writes with one letter the two vowels ᠣ (U+1823, o) and ᠤ (U+1824, u); and, like the classical script before it, it gives ᠥ (U+1825, ö) and ᠦ (U+1826, ü) — different in pronunciation — the single written shape they have always shared. The inventory is therefore said to be missing information about correct pronunciation.

The objection mistakes what writing is. The classical script itself writes these vowels with one shape; no manuscript, and no inscription carved in stone, has ever carried a voice along with it. A letter records the written language. How a word is sounded belongs to the reader — and today, to the text-to-speech engine, whose proper work pronunciation is. Every mature script lives by this division: English writes read once and pronounces it two ways, and no one proposes a second letter to repair it, because the distinction lives in the lexicon, not in the alphabet.

Nothing is therefore lost in the inventory; the information is filed where it has always been filed. Where a machine must read a word aloud, its pronunciation is supplied from the word list — a table attached to words, written once — not from machinery attached to every letter in every word forever. To demand that the encoding itself carry pronunciation is to demand another tax of exactly the kind the difficulty budget counts: invisible apparatus in every text, doing a job that belongs to a different layer. The inventory keeps letters as letters, and leaves the voice to the voice.

7 · Room to grow: Todo, Manchu, and the scripts of the same family

The inventory was drawn for the classical Mongolian script, but its shape is the shape of a family. Todo — the Oirat script devised in 1648 from the same stock — and Manchu, whose letter forms were adapted from Mongolian, are vertical scripts built from largely the same letters; and in the current standard they carry the same selector machinery as Mongolian itself.

Because the inventory's principle is one code per written letter, extending it is an act of addition, not of redesign. The letters a sister script shares are already present; the few it does not share take a small number of new codes in the same plain-text manner — searchable, sortable, free of selectors. The architecture does not change; the family resemblance does the work. A community as small as Todo's, or a scholarly corpus like Manchu's, cannot fund a bespoke encoding architecture of its own. It can, however, inherit one.

This is stated as a capability, not as a claim staked. The additional letters for Todo and for Manchu will be assigned under the same open, published mapping discipline as the base inventory, and published the same way, when they are made.

8 · Difficulties and limitations of Z52

Stated without mitigation, because a proposal that conceals its costs deserves no support:

9 · Conformance and interchange commitments

Z52 operates under the following commitments, which we regard as the conditions under which a private working encoding is a legitimate neighbour to the Standard rather than a squatter on it:

10 · The architecture: one script, two codes

The dual-code architecture: UTN57 external code for interchange, the converter bridge, and Z52 as the internal single master
The dual-code architecture — Z52 inside · the converter bridge · UTN57 outside.

Internal code — Z52, the single master

Text is born, stored, typed, searched, corrected and used for training in Z52: the input method, the dictionary, the book library, the OCR engine and the master corpora. This is the layer where determinism and completeness are requirements, and where the maintainer has full control.

The bridge — a disciplined converter

Mapping tables, the UTN57 variant rules and dictionary disambiguation join the two codes. Export is total and lossless because the master is the richer code. Import is partial for the reason established in §4 — a property of the source texts, not of the bridge.

External code — UTN57, the public standard

Publishing, the web, other applications, search engines, schools, libraries and archives operate in standard Unicode Mongolian: readable by anyone, with no special fonts or software, and stable on archival timescales.

11 · Principles

We offer the following principles to any developer working on a script whose standard encoding model serves it imperfectly — and, in that spirit, to the standards community as a description of how private encodings can behave responsibly:

  1. Store text in the richest code you control. Conversion from rich to poor is mechanical and lossless; the reverse is impossible. Choose the master accordingly.
  2. One master. Every text has exactly one authoritative encoded form. Everything else is generated from it.
  3. Generated text is never edited by hand. The interchange form is produced by the converter, always. Hand edits fork the truth.
  4. Keep the exit lossless. Users' words are not a hostage. If anyone can leave with everything they wrote, no one needs to fear entering.
  5. Inside a product, rendering must be deterministic. The encoded text alone should determine the display, verifiably, character by character.
  6. No invisible characters in stored text. Distinctions belong in the letters, not in format characters a reader cannot see.
  7. Prefer a code a small team can implement perfectly to a standard everyone implements approximately — inside your own domain. Correctness users can see is worth more than compliance they cannot.
  8. Honour the standard at the border. Publish, share and archive in the public encoding. Interoperability is a duty at the boundary, not a reason to compromise the interior.
  9. Keep an interchange copy beside the master for anything irreplaceable. Corpora deserve a second life in the standard, generated automatically at zero ongoing cost.
  10. An encoding you control is an encoding you can repair. Fix defects at the source and ship the same day — while continuing to report what the field teaches you to the community that maintains the standard.

An invitation

We invite two audiences to use this approach. Developers of underserved scripts: you need not choose between correctness and interoperability — keep a rich master inside, generate the standard at the border, and never trap your users. Members of the Unicode community: we offer Z52 as documented field evidence — a complete, production-tested demonstration that the writers of this script need determinism and distinctions the current model does not deliver in practice. The specification and mapping tables are available from the author; criticism, correction and dialogue are welcome, and convergence with the Standard remains the stated goal.

The discussion document prepared for the Unicode Technical Committee is published in full: The Mongolian Encoding Model in Production.

The complete Z52 ↔ Unicode Mongolian conversion mapping table — all 81 codes, generated from the reference converter — is published here: Z52 ↔ Unicode Mongolian mapping table.

See the approach in production: the Zmongol Zcode apps and the free Z52 fonts.