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.
| Case | In | ACII | Romenagri | ACII after rmn2acii | Out | Back as it went in? |
|---|---|---|---|---|---|---|
| the danda | । U+0964 | EA | | | 7C | | U+007C | no |
| the double danda | ॥ U+0965 | 87 | _vd | 87 | ॥ U+0965 | yes |
| a word that ends in a danda | चोला। U+091A U+094B U+0932 U+093E U+0964 | B8 E5 D1 DA EA | choalaa| | B8 E5 D1 DA 7C | चोला| U+091A U+094B U+0932 U+093E U+007C | no |
| a word that ends in a double danda | चोला॥ U+091A U+094B U+0932 U+093E U+0965 | B8 E5 D1 DA 87 | choalaa_vd | B8 E5 D1 DA 87 | चोला॥ U+091A U+094B U+0932 U+093E U+0965 | yes |
- The single danda (U+0964) has the ISCII byte
EA. The decoder writes|for it, and the lexical layer ofrmn2aciinever hands|to the parser: it copies it as the ASCII byte7C, whichacii2unireads as U+007C. In the repository's own corpus, चोला। comes back as चोला|. The danda is outside the round-trip contract. - The double danda (U+0965) was written as its low byte
65, the lettere, before patch 0001, so that चोला॥ came back as चोलाe. Patch 0001 gave it the byte87and the string_vd, and it round-trips. - Nothing in this package retires or changes either of them. What the note says is to be done is for the author to decide. The row of the single danda (
EA,|) is in the original tables; the row of the double danda (87,_vd) was added by patch 0001.
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.
| Case | In | Form | ACII | Romenagri | Out |
|---|---|---|---|---|---|
| the single code point | ड़ U+095C | all three | BF E9 | _rda | ड़ U+0921 U+093C |
| a letter and a nukta, as a keyboard types it | ड़ U+0921 U+093C | all three | BF 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+095F | all three | B3 E9 B4 E9 B5 E9 BA E9 BF E9 C0 E9 C9 E9 CD E9 | kzakhzagzajza_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.
| Case | In | Form | ACII | Romenagri | Out |
|---|---|---|---|---|---|
| the single code points | ऩऱऴ U+0929 U+0931 U+0934 | asis | C7 D0 D2 E9 | _nza_rralvrza | ऩऱऴ U+0929 U+0931 U+0933 U+093C |
| nfc | C7 D0 D2 E9 | _nza_rralvrza | ऩऱऴ U+0929 U+0931 U+0934 | ||
| nfd | C6 E9 CF E9 D2 E9 | nzarzalvrza | ऩऱऴ 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+093C | asis, nfd | C6 E9 CF E9 D2 E9 | nzarzalvrza | ऩऱऴ U+0928 U+093C U+0930 U+093C U+0933 U+093C |
| nfc | C7 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.
| Case | In | Form | ACII | Romenagri | Out |
|---|---|---|---|---|---|
| na + halant + nukta (NFC would make U+0929 U+094D) | ऩ् U+0928 U+094D U+093C | all three | C6 E8 E9 | acii2rmn 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.
| Case | In | Form | ACII | Romenagri | Out |
|---|---|---|---|---|---|
| na + sign I + nukta (NFC does not compose it either) | नि़ U+0928 U+093F U+093C | all three | C6 DB E9 | (not run) | नि़ U+0928 U+093F U+093C |
| na + space + nukta | न ़ U+0928 U+0020 U+093C | all three | C6 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.
| Case | In | Form | ACII | Romenagri | Out |
|---|---|---|---|---|---|
| na + e with acute accent: the e was never a nukta | नé U+0928 U+00E9 | asis, nfd | C6 E9 | nza | ऩ U+0928 U+093C |
| nfc | C6 E9 | nza | ऩ 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.
| Case | In | Form | ACII | Romenagri | Out |
|---|---|---|---|---|---|
| the single code point | ड़्व U+095C U+094D U+0935 | all three | BF E9 E8 D4 | _rdwa | ड़्व U+0921 U+093C U+094D U+0935 |
| da + nukta | ड़्व U+0921 U+093C U+094D U+0935 | all three | BF 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.
| Case | In | Form | ACII | Romenagri | Out |
|---|---|---|---|---|---|
| alone | ऴ U+0934 | asis, nfd | D2 E9 | lvrza | ऴ U+0933 U+093C |
| nfc | D2 E9 | lvrza | ऴ U+0934 | ||
| in a word | कऴन U+0915 U+0934 U+0928 | asis, nfd | B3 D2 E9 C6 | kalvrzana | कऴन U+0915 U+0933 U+093C U+0928 |
| nfc | B3 D2 E9 C6 | kalvrzana | कऴन 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.
| Case | In | Form | ACII | Romenagri | Out |
|---|---|---|---|---|---|
| RRA, halant, HA and LA, halant, HA | ऱ्हल्ह U+0931 U+094D U+0939 U+0932 U+094D U+0939 | asis, nfc | D0 E8 D8 D1 E8 D8 | _rr_hal_ha | ऱ्हल्ह U+0931 U+094D U+0939 U+0932 U+094D U+0939 |
| nfd | CF E9 E8 D8 D1 E8 D8 | rz_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).
| Typed | Key the parser asks for | Row in acii.h | What rmn2acii did |
|---|---|---|---|
bvr | bvra | no | crashes (signal 11) |
dvr | dvra | no | crashes (signal 11) |
gvr | gvra | no | crashes (signal 11) |
jvr | jvra | no | crashes (signal 11) |
kvr | kvra | no | crashes (signal 11) |
lh | lha | no | crashes (signal 11) |
pvr | pvra | no | crashes (signal 11) |
svr | svra | no | crashes (signal 11) |
tvr | tvra | no | crashes (signal 11) |
chvr | chvra | no | crashes (signal 11) |
_dvr | _dvra | no | crashes (signal 11) |
_rdvr | _rdvra | no | crashes (signal 11) |
_rrh | _rrha | no | crashes (signal 11) |
_rrvr | _rrvra | no | crashes (signal 11) |
_tvr | _tvra | no | crashes (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:
- The form for a pipeline. The default is
asis. A pipeline that compares or stores text in NFC setsnfcon both converters (ROMENAGRI_NUKTA_FORM=nfcdoes it for a whole script); one that wants every nukta letter as a pair setsnfd. - Reordering. Folding a nukta that follows a halant needs a decision between a nukta and ISCII's soft halant, which is written
E8 E9as well. The converters do not make it. - 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.
- The converters as functions. The conversion loops are in the
mainof each program.nukta_set_form()andnukta_options()give a program that includesnukta.hthe form and the options; calling the loops themselves as functions would mean moving them out ofmain, which the patch does not do. - 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.
| Character | Code point | Name | uni2acii writes | Comes back as |
|---|---|---|---|---|
| U+00A0 | no-break space | A0 | U+0020 | |
| U+00AD | soft hyphen | AD | ऐ U+0910 | |
| · | U+00B7 | middle dot | B7 | ङ U+0919 |
| × | U+00D7 | multiplication sign | D7 | स U+0938 |
| é | U+00E9 | latin small letter e with acute | E9 | ़ U+093C |
| ₹ | U+20B9 | indian rupee sign | B9 | छ U+091B |
The specification lists these in section 15.9, together with the question whether to fold patch 0003 into patch 0001.