CLDR Ticket #8164(accepted data)
RBNF rules for "alphabetic" numbering
|Reported by:||kent.karlsson14@…||Owned by:||grhoten|
I took another look at making RBNF rules for "alphabetic" numbering, most often used for
alphabetically itemized item lists. Like
a) first item
b) second item
aa) one after end of alphabet item
Another use (with A-Z) is to use them for column "numbering" in spreadsheets, Excel
allows columns up to around 16000, needing three letters for their maximal indices.
I may be rare that alphabetically numbered item lists in actual documents are very
long, so it is rare that even two letters are needed, let alone three. But CSS3
allows for (in principle) arbitrarily many letters in the alphabetic "numerals".
However 5 letters should be much more than enough for all but very rare uses
(these "numerals" are not really suitable for expressing numbers anyway, let alone
Generating such numerals via RBNF turned out to be perfectly feasible, with
reasonable size for the rule sets. But the rules contain a lot of numbers... To manage
that I wrote a script for generating all those numbers in the right places.
In the attached zip file you will find:
A) A bash script for generating RBNF rule sets (lttr.sh) for an alphabet given in arguments.
B) A bash script (indexs.sh), calling lttr.sh, for generating rule sets for a variety
of alphabets, most of them taken from the "index" exemplars in CLDR (sometimes modified,
usually for round-tripping), some also from http://www.w3.org/TR/predefined-counter-styles/
(with "system: alphabetic"). A number of possibilities have been commented out, for
various reasons. The alphabets also need to be reviewed, if CLDR is to cover these
C) The result of running the indexs.sh script, one (.txt) file per locale covered for this.
After doing changes to either script, remove the .txt files and rerun indexs.sh,
after moving them to the folder enclosing the arbnf folder (where they are in the