This behavior is of course considered very bad practice, and is not
recommended in any standards. It would also limit one to be able to
display European numbers at all.

So, I would recommend not to turn on the feature, and nag to the
webadmins instead to use Persian digits in their Persian documents.


On Sun, 2005-03-27 at 21:31 +0430, Ehsan Akhgari wrote:
> Hi all,
> I just found something cool in Firefox which I had not come across 
> before, and thought some of you guys might not know it as well.  As far 
> as I can tell this is related to Gecko, so it must affect all Mozilla 
> based applications, though I have not tested it anywhere except Firefox 1.0.
> The default rendering behavior for numbers appearing inside Persian text 
> in Mozilla is to show them as Latin digits (1 2 3 ...), though in IE it 
> depends on the context (whether the direction of the containing text is 
> rtl or ltr.)  To make Firefox respect the direction of the text in this 
> regard, you can add the following line to your user.js file:
> user_pref("bidi.numeral", 1);
> which sets the number rendering mode to "context."  This enables ASCII 
> digits entered inside Persian text to be rendered as Persian numbers (Û 
> Û Û ...)  Of course this does not affect the behavior of rendering 
> numbers explicitly entered using Unicode character codes.
> Ehsan
> _______________________________________________
> PersianComputing mailing list

PersianComputing mailing list

Reply via email to