Page MenuHomePhabricator

Add Bengali numerals to pagelist
Open, Needs TriagePublic


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:নির্ঘণ্ট:গৌড়রাজমালা.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:


(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 will likely be necessary for this.

Related Objects

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 29 2020, 3:12 AM
Mahir256 updated the task description. (Show Details)Nov 29 2020, 3:31 AM
Mahir256 updated the task description. (Show Details)Nov 29 2020, 3:57 AM
Soda added a subscriber: Soda.Nov 29 2020, 6:25 AM

@Bodhisattwa: Is this language specific, or is this about all and any 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 closed this task as Resolved.Wed, Jan 13, 8:16 PM
Tpt claimed this task.
This comment was removed by Tpt.
Tpt reopened this task as Open.Wed, Jan 13, 8:17 PM

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