[whatwg] finding a number...

Henri Sivonen hsivonen at iki.fi
Tue Dec 12 12:21:32 PST 2006


On Dec 12, 2006, at 15:36, Anne van Kesteren wrote:

> On Tue, 12 Dec 2006 14:31:23 +0100, Henri Sivonen <hsivonen at iki.fi>  
> wrote:
>>> why does finding a number in text [1] insist on "." as a decimal  
>>> seperator, when , is also very commonly used?
>>
>> I think the format should be kept simple (and potentially  
>> politically incorrect), because the human-readability is only a  
>> legacy fallback issue. That is, users aren't exposed to the number  
>> formatting in UAs that actually implement progress bars and gauges.
>
> You might also want to use this algorithm for the proposed  
> class="price". In that case you really want to take into account  
> "," as well.

What would 2,500 mean? Would it mean two and a half or two-thousand- 
five-hundred?

How can this be dealt with without making the parsing dependent on  
lang and requiring the UAs to implement all-encompassing CLDR-aware  
number parsing?

-- 
Henri Sivonen
hsivonen at iki.fi
http://hsivonen.iki.fi/





More information about the whatwg mailing list