Re: Arabic number in bidi algorithm

From: John Cowan (cowan@ccil.org)
Date: Tue Nov 02 1999 - 11:58:42 EST


Mark Leisher wrote:

> Marco> If a text file contains, in this order: U+0661 ARABIC-INDIC DIGIT
> Marco> ONE U+0662 ARABIC-INDIC DIGIT TWO U+0663 ARABIC-INDIC DIGIT THREE
> Marco> What is the numerical value of the number?
>
> Marco> And, similarly, if a text file contains, in this order: U+06F1
> Marco> EXTENDED ARABIC-INDIC DIGIT ONE U+06F2 EXTENDED ARABIC-INDIC DIGIT
> Marco> TWO U+06F3 EXTENDED ARABIC-INDIC DIGIT THREE What is the numerical
> Marco> value of the number?
>
> In both cases, "one-hundred-twenty-three."

Which has the advantage that a process wishing to interpret digit streams can
use the multiply-by-ten-and-add-the-next-digit algorithm as long as the digits
are of category Nd, without worrying about their BIDI category as well.

-- 

John Cowan http://www.reutershealth.com jcowan@reutershealth.com Schlingt dreifach einen Kreis vom dies / Schliess eurer Aug vor heiliger Schau Den er genoss vom Honig-Tau / Und trank die Milch vom Paradies. -- Coleridge (tr. Politzer)



This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:20:54 EDT