Characters
The twelve characters that patch 0001 added to ACII, and the eleven letters with a nukta that patch 0003 teaches the Unicode converters to carry. Both tables are generated from the headers of Romenagri/.
The twelve characters added to ACII
Twelve characters of the Devanagari block that Sanskrit and Vedic text needs had no ACII byte. Each got one byte, one Romenagri string and one saral spelling. The saral column is what acii2hin writes: a one-way, lossy rendering in which several letters share a spelling and the accents vanish.
| Character | Code point | Name | ACII | Romenagri | saral (acii2hin) |
|---|---|---|---|---|---|
| ऌ | U+090C | letter vocalic l | 81 | _li | lri |
| ॡ | U+0961 | letter vocalic ll | 82 | _lee | lri |
| ॠ | U+0960 | letter vocalic rr | 83 | _ree | ri |
| ◌ॢ | U+0962 | vowel sign vocalic l | 84 | ^_li | ^lri |
| ◌ॣ | U+0963 | vowel sign vocalic ll | 85 | ^_lee | ^lri |
| ◌ॄ | U+0944 | vowel sign vocalic rr | 86 | ^_ree | ^ri |
| ॥ | U+0965 | double danda | 87 | _vd | || |
| ◌॑ | U+0951 | stress sign udatta | 88 | _vua | (empty: the mark vanishes) |
| ◌॒ | U+0952 | stress sign anudatta | 89 | _vna | (empty: the mark vanishes) |
| ◌॓ | U+0953 | grave accent | 8A | _vga | (empty: the mark vanishes) |
| ◌॔ | U+0954 | acute accent | 8B | _vca | (empty: the mark vanishes) |
| ॐ | U+0950 | om | 8C | _om | om |
Why these bytes
- ISCII-91 assigns nothing to the bytes
80to9Fand ASCII does not reach them, and the first extension of ACII, U+0979 at80, already used that block. The twelve continue it in a fixed order: three vowels, three signs, the double danda, four accents, OM. - OM is not at
A0, though that looks natural.uni2aciiwrites the low byte of every code point that it has no row for, and the low byte of U+00A0 NO-BREAK SPACE isA0. With OM there, every no-break space in a text would become ॐ. - One byte each, not ISCII's two-byte sequences. ISCII-91 as ICU and Apple implement it writes OM as
A1 E9, and vocalic L asA6 E9, a code and the nukta.uni2aciiis a table of one byte per code point, and the decoder handles a nukta only after a consonant.
Why these strings
- An independent vowel is
_and its spelling (_li,_lee,_ree, next to the existing_ri); its sign is^and the spelling, and the_stays, as in^_ri, because the parser reads a_after^as the start of such a key. - The double danda and the four accents are a new family,
_v, for verse and Vedic signs:_vdand_vua,_vna,_vga,_vca(the udatta, anudatta, grave and acute). A mark that attaches to the letter before it ends ina, like the nukta (kza), so that the decoder's rule “a following sign pops thea” works for it unchanged. - OM extends the family
_o, which already held the O vowels:_om. Without the underscore,omwould be Latin text. - Each string was checked three ways: that no existing text changes meaning (a differential test of the parser before and after), that the new string does not extend an old token, and that the decoder gives the string back.
The eleven letters with a nukta
Unicode gave a code point of its own to eleven letters that are a consonant and a nukta, and none to the others, with no uniform rule. ACII writes every one as two bytes. In the table, before patch 0003 is what uni2acii wrote for the single code point: for nine of the eleven the low byte of the code point, which ACII reads as another character (U+095C became 5C). The three columns of forms are what the compiled converter writes now. The last column is Unicode's, read from Python's unicodedata: NFC composes the pair for U+0929, U+0931 and U+0934 only, and the other eight are Unicode's composition exclusions.
| Letter | Code point | Name | Consonant + nukta | ACII of the pair | Before patch 0003 | Written now by uni2acii, in the form | NFC composes the pair? | ||
|---|---|---|---|---|---|---|---|---|---|
| asis | nfc | nfd | |||||||
| ऩ | U+0929 | letter nnna | न + ◌़ | C6 E9 | C7 | C7 | C7 | C6 E9 | yes |
| ऱ | U+0931 | letter rra | र + ◌़ | CF E9 | D0 | D0 | D0 | CF E9 | yes |
| ऴ | U+0934 | letter llla | ळ + ◌़ | D2 E9 | 34 low byte | D2 E9 | D2 E9 | D2 E9 | yes |
| क़ | U+0958 | letter qa | क + ◌़ | B3 E9 | 58 low byte | B3 E9 | B3 E9 | B3 E9 | no |
| ख़ | U+0959 | letter khha | ख + ◌़ | B4 E9 | 59 low byte | B4 E9 | B4 E9 | B4 E9 | no |
| ग़ | U+095A | letter ghha | ग + ◌़ | B5 E9 | 5A low byte | B5 E9 | B5 E9 | B5 E9 | no |
| ज़ | U+095B | letter za | ज + ◌़ | BA E9 | 5B low byte | BA E9 | BA E9 | BA E9 | no |
| ड़ | U+095C | letter dddha | ड + ◌़ | BF E9 | 5C low byte | BF E9 | BF E9 | BF E9 | no |
| ढ़ | U+095D | letter rha | ढ + ◌़ | C0 E9 | 5D low byte | C0 E9 | C0 E9 | C0 E9 | no |
| फ़ | U+095E | letter fa | फ + ◌़ | C9 E9 | 5E low byte | C9 E9 | C9 E9 | C9 E9 | no |
| य़ | U+095F | letter yya | य + ◌़ | CD E9 | 5F low byte | CD E9 | CD E9 | CD E9 | no |
NUKTA_BYTE is E9, the byte of U+093C in unicode.h; the default form of this build is asis. The three columns of forms are what the compiled uni2acii wrote for the letter alone.
Two of the eleven have a byte of their own in unicode.h, so U+0929 and U+0931 have two spellings in ACII, the byte (C7, D0) and the pair (C6 E9, CF E9). In the form asis each comes out of acii2uni as it went in; in nfc and nfd the two spellings come out alike. U+0934 has no byte of its own: ISCII's D3 is free, but nothing is assigned or mapped into it, and every internal representation keeps the one rule, a character and a nukta: ळ and the nukta, D2 E9.
What each form writes
For the same letters, in the other direction and in the three forms:
| Program | In | asis (default) | nfc | nfd |
|---|---|---|---|---|
acii2uni | C7 | ऩ U+0929 | ऩ U+0929 | ऩ U+0928 U+093C |
acii2uni | D0 | ऱ U+0931 | ऱ U+0931 | ऱ U+0930 U+093C |
acii2uni | C6 E9 | ऩ U+0928 U+093C | ऩ U+0929 | ऩ U+0928 U+093C |
acii2uni | CF E9 | ऱ U+0930 U+093C | ऱ U+0931 | ऱ U+0930 U+093C |
acii2uni | D2 E9 | ऴ U+0933 U+093C | ऴ U+0934 | ऴ U+0933 U+093C |
acii2uni | BF E9 | ड़ U+0921 U+093C | ड़ U+0921 U+093C | ड़ U+0921 U+093C |
uni2acii | ऩ U+0929 | C7 | C7 | C6 E9 |
uni2acii | ऱ U+0931 | D0 | D0 | CF E9 |
uni2acii | न and a nukta U+0928 U+093C | C6 E9 | C7 | C6 E9 |
uni2acii | र and a nukta U+0930 U+093C | CF E9 | D0 | CF E9 |
uni2acii | ऴ U+0934 | D2 E9 | D2 E9 | D2 E9 |
uni2acii | ड़ U+095C | BF E9 | BF E9 | BF E9 |
uni2acii | ड and a nukta U+0921 U+093C | BF E9 | BF E9 | BF E9 |