Page MenuHomePhabricator

Add Thai numerals to pagelist
Closed, ResolvedPublic

Description

Hello.

In Thai wikisource, almost all historical and official documents including some modern books have use Thai numerals. For example:

https://th.wikisource.org/wiki/ดัชนี:พระปกเกล้าฯ_กับ_รธน_ไทย_(vol_2).pdf
https://th.wikisource.org/wiki/ดัชนี:โฉมหน้าศักดินาไทย_(9th_ed).pdf
https://th.wikisource.org/wiki/ดัชนี:หนังสือ_สผ_๐๐๑๔-ร_๙_(๒๕๖๓-๐๙-๑๘).pdf

But because page numbers can set other numeral styles is only "roman" style. Our volunteer in thwikisource are faced with complicate for set numeral styles if the source has many pages.

Can you add "Thai numerals" style same as roman numerals?

Best regard,

Geonuch

Proposal by community: https://th.wikisource.org/wiki/วิกิซอร์ซ:เซ็นเตอร์พ้อยท์#เรื่องเกี่ยวเนื่อง

Event Timeline

Hi! It's definitely doable.

Is this mapping between "western" numerals and Thai numerals correct?

			'0' => '๐',
			'1' => '๑',
			'2' => '๒',
			'3' => '๓',
			'4' => '๔',
			'5' => '๕',
			'6'=>'๖',
			'7' => '๗',
			'8' => '๘',
			'9' => '๙'

Change 644010 had a related patch set uploaded (by Tpt; owner: Tpt):
[mediawiki/extensions/ProofreadPage@master] Adds thai number formatting using ICU

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

@Reedy Excuse me, can you help to review on gerrit?

Change 653937 had a related patch set uploaded (by Sohom Datta; owner: Sohom Datta):
[mediawiki/extensions/ProofreadPage@master] Use mw.config.get() to retrieve builtin labels for Pagelist Widget

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

Change 644010 merged by jenkins-bot:
[mediawiki/extensions/ProofreadPage@master] Adds thai number formatting using ICU

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

Change 653937 merged by jenkins-bot:
[mediawiki/extensions/ProofreadPage@master] Use mw.config.get() to retrieve builtin labels for Pagelist Widget

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