Re: [css3-fonts] ordinals

On 11/07/13 5:14 PM, fantasai wrote:

> What's used for the zeros in 1.00 when it's written looking kinda like 1°°?

Good question. That's a very problematic convention from a text encoding 
perspective, because if you treat the superscripted zeros as glyph 
variants, then your text is actually 100, and may display as such if the 
font is change (unless you get really funky with contextual substition 
such that the decimal separator is swallowed in the superscript 
substitution; but that's prone to problems because different locales use 
different decimal separators).

The only safe way to ensure that display is to use Unicode superscript 
numeral characters: 1⁰⁰. But, really, some vernacular writing 
conventions were only ever intended to be scribbled on a piece of 
cardboard by a greengrocer, not to subject of computer text encoding and 
interchange.


JH

Received on Friday, 12 July 2013 00:30:00 UTC