Romenagri Transliteration System

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

Challenges

What the converters leave open, and the decisions behind the nukta layer. The eight cases below were decided one by one by the author on 8 November 2026; each is run through the compiled converters in all three forms, and the tables show what they wrote.

The danda

Author’s note on the danda

The danda (। U+0964 and ॥ U+0965) was given a Romenagri spelling because the system is used primarily inside programming-language source: identifiers, string literals and comments. The linguistic layer was not the driving concern. The treatment of the danda is therefore recorded as a task that remains. The intention is to retire the special mapping and to leave sentence punctuation to the host language. Until that change is made, the existing bytes and keys remain in the tables for compatibility.

This note was carried over from an earlier draft of this site. The author has not yet confirmed its wording.

What the code does with the two dandas today, from runs of the compiled programs. The first three columns are the chain; the last says whether the text came back as it went in.

CaseInACIIRomenagriACII after rmn2aciiOutBack as it went in?
the danda। U+0964EA|7C| U+007Cno
the double danda॥ U+096587_vd87॥ U+0965yes
a word that ends in a dandaचोला। U+091A U+094B U+0932 U+093E U+0964B8 E5 D1 DA EAchoalaa|B8 E5 D1 DA 7Cचोला| U+091A U+094B U+0932 U+093E U+007Cno
a word that ends in a double dandaचोला॥ U+091A U+094B U+0932 U+093E U+0965B8 E5 D1 DA 87choalaa_vdB8 E5 D1 DA 87चोला॥ U+091A U+094B U+0932 U+093E U+0965yes

The eight cases of the nukta layer

Each case is a place where the layer, or the standard that it follows, asked for a decision or left a limit. A row says “all three” when the three forms give the same line, and otherwise has a row of its own for the forms that differ. Every code point is written out. The ACII column is what uni2acii wrote, the Romenagri column what acii2rmn made of it, and the last column what acii2uni wrote after rmn2acii had turned the Romenagri back into bytes.

C1. One letter in two spellings, and the eight composition exclusions

ड़ can be typed as the single code point U+095C or as ड and a nukta (U+0921 U+093C). The same holds for क़ख़ग़ज़ढ़फ़य़. Both spellings give BF E9.

Decision. The output is not fixed to NFC, and Unicode is not confused with the emission layers: it keeps a layer of its own, the form. The decomposition is not left as an “or” either: it is done explicitly at Level 1, the layer at which the sounds of the consonants are mapped, before the vowel signs are attached at Level 2. So the rule writes the consonant and the nukta, always, and no form writes the eight as single code points.

CaseInFormACIIRomenagriOut
the single code pointड़ U+095Call threeBF E9_rdaड़ U+0921 U+093C
a letter and a nukta, as a keyboard types itड़ U+0921 U+093Call threeBF E9_rdaड़ U+0921 U+093C
all eight, as single code pointsक़ख़ग़ज़ड़ढ़फ़य़ U+0958 U+0959 U+095A U+095B U+095C U+095D U+095E U+095Fall threeB3 E9 B4 E9 B5 E9 BA E9 BF E9 C0 E9 C9 E9 CD E9kzakhzagzajza_rda_rdhaphzayzaक़ख़ग़ज़ड़ढ़फ़य़ U+0915 U+093C U+0916 U+093C U+0917 U+093C U+091C U+093C U+0921 U+093C U+0922 U+093C U+092B U+093C U+092F U+093C

C2. The letters that have a code point of their own, against their pairs

Unicode gave a code point of its own to some letters with a nukta and none to others, with no uniform rule: ऩऱऴ against न, र, ळ and a nukta. ACII has two spellings of the first two (C7 and C6 E9, D0 and CF E9).

Decision. Inside, the layer is uniform: for all eleven, a character and a nukta. Nothing more is decided for this case (none). What comes out is the business of the form.

CaseInFormACIIRomenagriOut
the single code pointsऩऱऴ U+0929 U+0931 U+0934asisC7 D0 D2 E9_nza_rralvrzaऩऱऴ U+0929 U+0931 U+0933 U+093C
nfcC7 D0 D2 E9_nza_rralvrzaऩऱऴ U+0929 U+0931 U+0934
nfdC6 E9 CF E9 D2 E9nzarzalvrzaऩऱऴ U+0928 U+093C U+0930 U+093C U+0933 U+093C
consonant and nukta, three timesऩऱऴ U+0928 U+093C U+0930 U+093C U+0933 U+093Casis, nfdC6 E9 CF E9 D2 E9nzarzalvrzaऩऱऴ U+0928 U+093C U+0930 U+093C U+0933 U+093C
nfcC7 D0 D2 E9_nza_rralvrzaऩऱऴ U+0929 U+0931 U+0934

C3. A nukta after a halant

NFC would move the nukta in front of the halant and compose it, and E8 E9 is also how ISCII writes a soft halant, which made acii2rmn crash on it before the layer.

Decision. None taken. The layer leaves the sequence alone in every form.

CaseInFormACIIRomenagriOut
na + halant + nukta (NFC would make U+0929 U+094D)ऩ् U+0928 U+094D U+093Call threeC6 E8 E9acii2rmn crashes (exit status 139)ऩ् U+0928 U+094D U+093C

In the table above, “acii2rmn crashes” means that the compiled acii2rmn was run on C6 E8 E9 and ended with a segmentation fault; the Out column is then what acii2uni writes for the bytes directly.

C4. A nukta that does not follow a consonant directly

After a vowel sign, after a space, at the start of a line there is nothing to rebuild, and NFC agrees: a vowel sign blocks the composition.

Decision. No fixed format is locked in. The choice of NFC or NFD for what comes out is a user option: a command-line flag, an environment variable, a build macro or a function call. The default stays aligned with what the converters did, and users and integrators have full control at every level.

CaseInFormACIIRomenagriOut
na + sign I + nukta (NFC does not compose it either)नि़ U+0928 U+093F U+093Call threeC6 DB E9(not run)नि़ U+0928 U+093F U+093C
na + space + nuktaन ़ U+0928 U+0020 U+093Call threeC6 20 E9(not run)न ़ U+0928 U+0020 U+093C

C5. The letter é is written as the nukta

uni2acii writes U+00E9 as its low byte E9, and E9 is the nukta. After न, र or ळ the byte is read as a nukta, as it was before the layer.

Decision. Encodings are not mixed. Once Unicode, or any other input encoding, has been consumed, it does not survive in a mixed state: the é is a normal character that has no ACII byte, and is treated like every other. What is added is a warning layer that notes this known bug of such converters. It is off by default, and enabled only by a flag (-w) or by the call that integrates the converter.

CaseInFormACIIRomenagriOut
na + e with acute accent: the e was never a nuktaनé U+0928 U+00E9asis, nfdC6 E9nzaऩ U+0928 U+093C
nfcC6 E9nzaऩ U+0929

With uni2acii -w the same input writes this on stderr (the bytes are the same):

uni2acii: note: a code point that unicode.h has no row for is written as its low byte, which ACII reads as another character; every converter of this kind does this (TRANSLITERATION.md, section 11.6)
uni2acii: warning: U+00E9 has no ACII byte and is written as its low byte E9, the nukta byte
uni2acii: 1 code point with no ACII byte was written as its low byte (0 further occurrences not listed)

C6. The cluster ड़्व with the single code point

Without the layer uni2acii wrote the low byte of U+095C, 5C, and acii2rmn lost it together with the halant behind it: with patch 0001 alone the chain gave 5C E8 D4, wa, and व alone came back (section 15.1 of the specification).

Decision. It is not a case of its own and gets no special rule, no fix that names a cluster. It is resolved by the rule of C1: the precomposed consonant is broken into its base sound and the nukta before the halant and the adjunct consonant are bound at Level 2, so the formation of clusters is general.

CaseInFormACIIRomenagriOut
the single code pointड़्व U+095C U+094D U+0935all threeBF E9 E8 D4_rdwaड़्व U+0921 U+093C U+094D U+0935
da + nuktaड़्व U+0921 U+093C U+094D U+0935all threeBF E9 E8 D4_rdwaड़्व U+0921 U+093C U+094D U+0935

C7. ऴ has no byte of its own

ISCII's D3 is free, and recipe A of the specification (tables only) would use it.

Decision. Nothing is assigned or mapped into D3, and no slot is made for it. Every internal representation keeps the one rule, a character and a nukta: ळ and the nukta, D2 E9.

CaseInFormACIIRomenagriOut
aloneऴ U+0934asis, nfdD2 E9lvrzaऴ U+0933 U+093C
nfcD2 E9lvrzaऴ U+0934
in a wordकऴन U+0915 U+0934 U+0928asis, nfdB3 D2 E9 C6kalvrzanaकऴन U+0915 U+0933 U+093C U+0928
nfcB3 D2 E9 C6kalvrzanaकऴन U+0915 U+0934 U+0928

C8. Extended clusters: ऱ्ह, ल्ह and the like

Clusters of a consonant, a halant and ह for which the table has special keys.

Decision. They are managed strictly as code point to code point mappings. The layer makes no assumption about how a font shapes them and takes nothing from the behaviour of an external transliteration; it adds nothing of its own to them. The fifteen reserved keys of section 11.3 of the specification stay untouched.

CaseInFormACIIRomenagriOut
RRA, halant, HA and LA, halant, HAऱ्हल्ह U+0931 U+094D U+0939 U+0932 U+094D U+0939asis, nfcD0 E8 D8 D1 E8 D8_rr_hal_haऱ्हल्ह U+0931 U+094D U+0939 U+0932 U+094D U+0939
nfdCF E9 E8 D8 D1 E8 D8rz_hal_haऱ्हल्ह U+0930 U+093C U+094D U+0939 U+0932 U+094D U+0939

The fifteen reserved keys

Fifteen keys that the parser can ask for have no row in acii.h. When the parser asks for a missing key, lookup() returns NULL and the next strcat crashes. They are two things of different kinds. Thirteen are the Latin letter v typed after a consonant stem: v is not a letter of Romenagri (व is w), and the one spelling in which the parser accepts it is that of ळ, lvra, so every other stem followed by v asks for a key that no script has. Two are conjuncts typed as aspirates: Devanagari has no letter for an aspirated l or an aspirated ऱ, and Hindi and Marathi write those sounds as ल्ह and ऱ्ह; Romenagri's own spelling is l_ha and _rr_ha, but lh is what a person at a keyboard types.

The author is working on these himself, and nothing in this package changes them. The table shows what the compiled rmn2acii did with each typed form when the site was built. The nukta layer does not touch them either: ऱ्ह and ल्ह have always passed through the chain from Unicode (case C8).

TypedKey the parser asks forRow in acii.hWhat rmn2acii did
bvrbvranocrashes (signal 11)
dvrdvranocrashes (signal 11)
gvrgvranocrashes (signal 11)
jvrjvranocrashes (signal 11)
kvrkvranocrashes (signal 11)
lhlhanocrashes (signal 11)
pvrpvranocrashes (signal 11)
svrsvranocrashes (signal 11)
tvrtvranocrashes (signal 11)
chvrchvranocrashes (signal 11)
_dvr_dvranocrashes (signal 11)
_rdvr_rdvranocrashes (signal 11)
_rrh_rrhanocrashes (signal 11)
_rrvr_rrvranocrashes (signal 11)
_tvr_tvranocrashes (signal 11)

What is open

Decided on 8 November and closed: the form is a user option and the default is what the converters always wrote (C1, C4); the rule is uniform, a character and a nukta, and is applied before anything is bound (C1, C2, C6); ऴ takes no byte of its own and D3 is not assigned (C7); the clusters get no special cases (C6, C8); a mixed encoding is not repaired, only reported, on request (C5); no decision on a nukta after a halant (C3); the fifteen reserved keys are not touched (C8).

Left to the reader:

  1. The form for a pipeline. The default is asis. A pipeline that compares or stores text in NFC sets nfc on both converters (ROMENAGRI_NUKTA_FORM=nfc does it for a whole script); one that wants every nukta letter as a pair sets nfd.
  2. Reordering. Folding a nukta that follows a halant needs a decision between a nukta and ISCII's soft halant, which is written E8 E9 as well. The converters do not make it.
  3. A fourth form, all eleven letters as single code points, is a table row and a few lines away. Any normaliser would split the eight again.
  4. The converters as functions. The conversion loops are in the main of each program. nukta_set_form() and nukta_options() give a program that includes nukta.h the form and the options; calling the loops themselves as functions would mean moving them out of main, which the patch does not do.
  5. The low-byte fallback for everything else. A code point that has no row is written as its low byte, which ACII reads as another character (the table below). The cure is to deal with such characters before uni2acii; the warning layer shows which ones there are.
CharacterCode pointNameuni2acii writesComes back as
 U+00A0no-break spaceA0 U+0020
U+00ADsoft hyphenADऐ U+0910
·U+00B7middle dotB7ङ U+0919
×U+00D7multiplication signD7स U+0938
éU+00E9latin small letter e with acuteE9़ U+093C
₹U+20B9indian rupee signB9छ U+091B

The specification lists these in section 15.9, together with the question whether to fold patch 0003 into patch 0001.