Re: Number display in Firefox

2005-03-29 Thread Mohsen Saboorian
 Date: Sun, 27 Mar 2005 21:31:55 +0430
 From: Ehsan Akhgari [EMAIL PROTECTED]
 Subject: Number display in Firefox
 To: Persian Computing persiancomputing@lists.sharif.edu
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=UTF-8; format=flowed

 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.

You can do it more easily by entering about:config at location bar.


___
PersianComputing mailing list
PersianComputing@lists.sharif.edu
http://lists.sharif.edu/mailman/listinfo/persiancomputing


Re: Number display in Firefox

2005-03-28 Thread Ali A. Khanban
I agree with Roozbeh. It also uses Arabic shapes of numbers, which is 
not suitable for Persian texts. But it is good to know about this 
feature, anyway.

Best
-ali-
Roozbeh Pournader wrote:
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.
roozbeh
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.

FWIW,
Ehsan
___
PersianComputing mailing list
PersianComputing@lists.sharif.edu
http://lists.sharif.edu/mailman/listinfo/persiancomputing
   

___
PersianComputing mailing list
PersianComputing@lists.sharif.edu
http://lists.sharif.edu/mailman/listinfo/persiancomputing
 

--

||   Ali Asghar Khanban
|| ||Research Associate in Department of Computing
|||  Imperial College London, London SW7 2BZ, U.K.
||   Tel: +44 (20) 7594 8241   Fax: +44 870 130 7263
|||  [EMAIL PROTECTED]   http://www.doc.ic.ac.uk/~khanban

___
PersianComputing mailing list
PersianComputing@lists.sharif.edu
http://lists.sharif.edu/mailman/listinfo/persiancomputing