A script for Sanskrit and the Devanagari languages, written with characters that readers across the world already know, one visual
unit for each Devanagari letter, and reversible to the byte. Base letters are Latin; length is a macron; retroflex is a dot below;
aspiration is a raised h, as in the IPA; the diphthongs are ê and ô, so that no vowel sequence can be misread; vocalic r and l carry a
ring below, which leaves ṛ for ड़. The letters are data (v7/ainagri/ainagri.csv), a proposal for the author's ruling.
Phrases
| Devanagari | Romenagri (the kernel) | AInagri |
|---|---|---|
| सत्यमेव जयते | sa_tyamaeewa jaya_taee | satyameva jayate |
| धर्मक्षेत्रे कुरुक्षेत्रे | _dharmakxaee_traee kurukxaee_traee | dʰarmakṣetre kurukṣetre |
| संस्कृतम् | sa_msk_ri_tam | saṁskr̥tam |
| कृष्ण | k_rix_nna | kr̥ṣṇa |
| भारत | bhaara_ta | bʰārata |
| ज़िंदगी | jzi_m_dagee | ziṁdagī |
The letters
| Devanagari | AInagri | Romenagri | Rule |
|---|---|---|---|
| अ | a | _a | vowel |
| आ | ā | _aa | length: macron |
| इ | i | _i | vowel |
| ई | ī | _ee | length: macron |
| उ | u | _u | vowel |
| ऊ | ū | _oo | length: macron |
| ऋ | r̥ | _ri | vocalic: ring below (ISO 15919) |
| ॠ | r̥̄ | _ree | length: macron |
| ऌ | l̥ | _li | vocalic: ring below (ISO 15919) |
| ॡ | l̥̄ | _lee | length: macron |
| ऎ | ĕ | _ae | vowel |
| ए | e | _aee | vowel |
| ऐ | ê | _ai | vowel |
| ऒ | ŏ | _ow | vowel |
| ओ | o | _oa | vowel |
| औ | ô | _ou | vowel |
| ऍ | è | _ao | vowel |
| ऑ | ò | _au | vowel |
| क | k | ka | Latin letter |
| ख | kʰ | kha | aspiration: raised h (IPA) |
| ग | g | ga | Latin letter |
| घ | gʰ | gha | aspiration: raised h (IPA) |
| ङ | ṅ | _nga | Latin letter |
| च | c | cha | Latin letter |
| छ | cʰ | chha | aspiration: raised h (IPA) |
| ज | j | ja | Latin letter |
| झ | jʰ | jha | aspiration: raised h (IPA) |
| ञ | ñ | _yna | Latin letter |
| ट | ṭ | ta | retroflex: dot below (ISO 15919) |
| ठ | ṭʰ | tha | aspiration: raised h (IPA) |
| ड | ḍ | da | retroflex: dot below (ISO 15919) |
| ढ | ḍʰ | dha | aspiration: raised h (IPA) |
| ण | ṇ | _nna | retroflex: dot below (ISO 15919) |
| त | t | _ta | Latin letter |
| थ | tʰ | _tha | aspiration: raised h (IPA) |
| द | d | _da | Latin letter |
| ध | dʰ | _dha | aspiration: raised h (IPA) |
| न | n | na | Latin letter |
| प | p | pa | Latin letter |
| फ | pʰ | pha | aspiration: raised h (IPA) |
| ब | b | ba | Latin letter |
| भ | bʰ | bha | aspiration: raised h (IPA) |
| म | m | ma | Latin letter |
| य | y | ya | Latin letter |
| र | r | ra | Latin letter |
| ल | l | la | Latin letter |
| व | v | wa | Latin letter |
| ळ | ḷ | lvra | retroflex: dot below (ISO 15919) |
| श | ś | sha | Latin letter |
| ष | ṣ | xa | retroflex: dot below (ISO 15919) |
| स | s | sa | Latin letter |
| ह | h | _ha | Latin letter |
| क़ | q | kza | Latin letter |
| ख़ | x | khza | Latin letter |
| ग़ | ġ | gza | Latin letter |
| ज़ | z | jza | Latin letter |
| ड़ | ṛ | _rda | retroflex: dot below (ISO 15919) |
| ढ़ | ṛʰ | _rdha | aspiration: raised h (IPA) |
| फ़ | f | phza | Latin letter |
| य़ | ẏ | yza | Latin letter |
| ऩ | ṉ | _nza | Latin letter |
| ऱ | ṟ | _rra | Latin letter |
| ऴ | ḻ | lvrza | Latin letter |
| ं | ṁ | _m | sign |
| ः | ḥ | _hh | retroflex: dot below (ISO 15919) |
| ँ | m̐ | _na | sign |
| ऽ | ʼ | _s | sign |
| । | | | | | sign |
| ॥ | ‖ | _vd | sign |
| ० | 0 | "e_f" | sign |
| १ | 1 | "e_g" | sign |
| २ | 2 | "e_h" | sign |
| ३ | 3 | "e_i" | sign |
| ४ | 4 | "e_j" | sign |
| ५ | 5 | "e_k" | sign |
| ६ | 6 | "e_l" | sign |
| ७ | 7 | "e_m" | sign |
| ८ | 8 | "e_n" | sign |
| ९ | 9 | "e_o" | sign |
Reversibility (v7/ainagri/test_ainagri.py): 1,610 of 1,610 synthetic strings and 202 of 202 lines of the Hindi corpora
come back exactly.