Page MenuHomePhabricator

Rendering of devanagari numbers in automatic '#' number lists
Closed, ResolvedPublic

Description

Author: ksamudra

Description:
Dear Developers, currently on mr:wiki the number list generates English numbers (1,2,3,...).

Is there any possibility of getting these numbers in Marathi? (१,२,३,४,५,६,७,८,९ & ०)

Thanks / Regards,

Kaustubh


Version: unspecified
Severity: enhancement
URL: http://mr.wikipedia.org

Details

Reference
bz13896

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 10:08 PM
bzimport set Reference to bz13896.

ayg wrote:

The numbering is done in CSS, which does not support a significant number of numeral systems as currently implemented. CSS3 supports some more:

http://www.w3.org/TR/2002/WD-css3-lists-20021107/

But seemingly not Marathi. This can't be implemented reasonably without better browser support, as far as I can see (and that is not likely to arrive soon, since even the CSS3 numeral systems generally don't work in modern browsers). If anyone has any ideas on how to do it, feel free to suggest them.

ksamudra wrote:

(In reply to comment #1)

The numbering is done in CSS, which does not support a significant number of
numeral systems as currently implemented. CSS3 supports some more:
http://www.w3.org/TR/2002/WD-css3-lists-20021107/
But seemingly not Marathi. This can't be implemented reasonably without better
browser support, as far as I can see (and that is not likely to arrive soon,
since even the CSS3 numeral systems generally don't work in modern browsers).
If anyone has any ideas on how to do it, feel free to suggest them.

As per the given link, in the Numerals section, already Devanagari is defined.
(Devanagari is the script for Marathi Language). Whether this problem will be
solved after upgrading to CSS3?

Regards, Kaustubh

ayg wrote:

Test case to see what browsers

I don't think browsers support Devanagari numbering yet. This test case should show whether or not I'm correct. Should support be added to any browsers, the following line in [[MediaWiki:Common.css]] will use it:

ol { list-style-type: devanagari; }

Attached:

Resolving as later, because there isn't much we can do with current browser support.

ayg wrote:

content hidden as private in Bugzilla

Created attachment 4856
Complete test case of defined CSS 2.1 and 3 list style types

For completeness's sake. :)

Attached:

Loading that attachment & testing as of today...

Testing on Ubuntu 11.10:

  • Chrome 15.0.874.121 -- shows devanagari list numbers
  • Firefox 8.0 -- does not
  • Opera 11.52 -- does not

And on Mac OS X:

  • Safari 5.1.1 -- shows devanagari list numbers

On Windows 7:

  • IE 9.0.8112.16421 -- does not

On Windows 8 developer preview:

  • IE 10 -- does not

If folks do in fact want this on their ordered lists, you can add the line to http://mr.wikipedia.org/wiki/MediaWiki:Common.css as in comment #3 and it should work in current WebKit browsers, but not necessarily in others.

sbharti wrote:

The value for mozilla is -moz-devanagari. For html ol, have following in style property

list-style-type: -moz-devanagari

The devanagari numbering should work in mozilla too.

Fixed this in r114350 for mr and hi.