Last modified: 2012-03-21 05:51:12 UTC
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
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.
(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
Created attachment 4852 [details] 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; }
Resolving as later, because there isn't much we can do with current browser support.
Created attachment 4856 [details] Complete test case of defined CSS 2.1 and 3 list style types For completeness's sake. :)
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.
Don't suggest local mod. We have done this in core for some time now, see: http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/shared.css?view=markup&pathrev=104160#l834
+i18n keyword
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.