Page MenuHomePhabricator

Add Bengali numerals to pagelist
Open, Needs TriagePublic

Description

In books of Bengali Wikisource, Bengali numbers are used as page numbers. For front matter pages, similar to roman numerals, Bengali currency numerals are used in old books.

Example having both types: https://bn.wikisource.org/wiki/নির্ঘণ্ট:গৌড়রাজমালা.djvu

So provision of these two types of numeral system is required for pagelist creation.

General Bengali numerals follow a decimal system ("0123456789" = "০১২৩৪৫৬৭৮৯") and thus adding support for "beng" numerals from the ICU, similarly to how the change from T268906 allows use of "thai" numerals, would suffice for this.

Bengali currency numerals, on the other hand, follow a hexadecimal system as follows:

i=৴
ii=৵
iii=৶
iv=৷
v=৷৴
vi=৷৵
vii=৷৶
viii=৷৷
ix=৷৷৴
x=৷৷৵
xi=৷৷৶
xii=৸
xiii=৸৴
xiv=৸৵
xv=৸৶
xvi=১৲

(Note how xvi uses the regular Bengali numeral "১" with the currency zero placeholder "৲".) The values from xvii-xxxii follow a similar pattern to the above with a prefix "১", except that xxxii will use a prefix "২" instead of a prefix "১". All values higher than xv are thus effectively written by rendering the number divided by 16 without remainder in regular Bengali numerals, rendering the number modulo 16 in currency numerals, and concatenating the two (so that clxviii becomes ১০৷৷). A custom ruleset à la those from https://github.com/unicode-org/cldr/blob/master/common/rbnf/root.xml will likely be necessary for this.

Related Objects

Event Timeline

@Bodhisattwa: Is this language specific, or is this about all and any All-and-every-Wikisource ? (See project description.)

@Bodhisattwa: Could you please answer the last comment? Thanks.

@Aklapper , this is mainly a request for Bengali Wikisource books, but also can be used for bilingual books present in other Wikisources as well.

Tpt claimed this task.
This comment was removed by Tpt.

Sorry, I confused this task with an other one.

Change 655989 had a related patch set uploaded (by Tpt; owner: Tpt):
[mediawiki/extensions/ProofreadPage@master] Allows formatting in a lot of indian systems inside of the <pagelist> tags

https://gerrit.wikimedia.org/r/655989

Change 655989 merged by jenkins-bot:
[mediawiki/extensions/ProofreadPage@master] Allows formatting in a lot of indian systems inside of the <pagelist> tags

https://gerrit.wikimedia.org/r/655989

Done and deployed

I donot see the Bengalu hexadecimal numerical system included in the widget.