Romenagri Transliteration System

A formal specification of the Unicode Devanagari ↔ ACII ↔ Romenagri pipeline, with Sanskrit and Vedic extensions and the nukta layer.

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.

CharacterCode pointNameACIIRomenagrisaral (acii2hin)
ऌU+090Cletter vocalic l81_lilri
ॡU+0961letter vocalic ll82_leelri
ॠU+0960letter vocalic rr83_reeri
◌ॢU+0962vowel sign vocalic l84^_li^lri
◌ॣU+0963vowel sign vocalic ll85^_lee^lri
◌ॄU+0944vowel sign vocalic rr86^_ree^ri
॥U+0965double danda87_vd||
◌॑U+0951stress sign udatta88_vua(empty: the mark vanishes)
◌॒U+0952stress sign anudatta89_vna(empty: the mark vanishes)
◌॓U+0953grave accent8A_vga(empty: the mark vanishes)
◌॔U+0954acute accent8B_vca(empty: the mark vanishes)
ॐU+0950om8C_omom

Why these bytes

Why these strings

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.

LetterCode pointNameConsonant + nuktaACII of the pairBefore patch 0003Written now by uni2acii, in the formNFC composes the pair?
asisnfcnfd
ऩU+0929letter nnnaन + ◌़C6 E9C7C7C7C6 E9yes
ऱU+0931letter rraर + ◌़CF E9D0D0D0CF E9yes
ऴU+0934letter lllaळ + ◌़D2 E934 low byteD2 E9D2 E9D2 E9yes
क़U+0958letter qaक + ◌़B3 E958 low byteB3 E9B3 E9B3 E9no
ख़U+0959letter khhaख + ◌़B4 E959 low byteB4 E9B4 E9B4 E9no
ग़U+095Aletter ghhaग + ◌़B5 E95A low byteB5 E9B5 E9B5 E9no
ज़U+095Bletter zaज + ◌़BA E95B low byteBA E9BA E9BA E9no
ड़U+095Cletter dddhaड + ◌़BF E95C low byteBF E9BF E9BF E9no
ढ़U+095Dletter rhaढ + ◌़C0 E95D low byteC0 E9C0 E9C0 E9no
फ़U+095Eletter faफ + ◌़C9 E95E low byteC9 E9C9 E9C9 E9no
य़U+095Fletter yyaय + ◌़CD E95F low byteCD E9CD E9CD E9no

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:

ProgramInasis (default)nfcnfd
acii2uniC7ऩ U+0929ऩ U+0929ऩ U+0928 U+093C
acii2uniD0ऱ U+0931ऱ U+0931ऱ U+0930 U+093C
acii2uniC6 E9ऩ U+0928 U+093Cऩ U+0929ऩ U+0928 U+093C
acii2uniCF E9ऱ U+0930 U+093Cऱ U+0931ऱ U+0930 U+093C
acii2uniD2 E9ऴ U+0933 U+093Cऴ U+0934ऴ U+0933 U+093C
acii2uniBF E9ड़ U+0921 U+093Cड़ U+0921 U+093Cड़ U+0921 U+093C
uni2aciiऩ U+0929C7C7C6 E9
uni2aciiऱ U+0931D0D0CF E9
uni2aciiन and a nukta U+0928 U+093CC6 E9C7C6 E9
uni2aciiर and a nukta U+0930 U+093CCF E9D0CF E9
uni2aciiऴ U+0934D2 E9D2 E9D2 E9
uni2aciiड़ U+095CBF E9BF E9BF E9
uni2aciiड and a nukta U+0921 U+093CBF E9BF E9BF E9