[uf-discuss] First version of Currency proposal

Mike Schinkel mikeschinkel at gmail.com
Sat Oct 14 12:47:12 PDT 2006

>> The book costs $<span class="USD">5.99</span> 

This gives me a chance to ask in a different way, why can we not assume
type=USD, amount=5.99, and symbol=$ from the following?

	The book costs <span class="currency" title="USD">$5.99</span>  

I believe you answer will be "what about unicode where we are not using
[A-Za-z0-9] and if so, I would say that is when you add a symbol. In my
example, <symbol> is the non-[A-Za-z0-9] character(s) *if* no symbol is
explicitly specified. Can you give me an example where that would not work?


-----Original Message-----
From: microformats-discuss-bounces at microformats.org
[mailto:microformats-discuss-bounces at microformats.org] On Behalf Of Andy
Sent: Saturday, October 14, 2006 6:53 AM
To: Microformats Discuss
Subject: Re: [uf-discuss] First version of Currency proposal

In message
<abbba2190610111855l5a7f92baw3e346db5a7874855 at mail.gmail.com>, Emiliano
Martinez Luque <martinezluque at gmail.com> writes

>Regarding the Straw man proposal, the symbol class seems to be 
>unnecesary since the symbol in most price representations is just a 
>convention to define which currency we are speaking of.

Not so. Suppose there is a page with the markup (simplified):

        The book costs $<span class="USD">5.99</span>

and I have a user agent (a Firefox extension, say) which replaces the dollar
value with the value in pounds sterling. I'd get:

        The book costs $£3.50

which is clearly nonsense.

By wrapping the dollar sign in a span (or whatever) with the class "symbol",
the user agent is made aware of its presence, and can hide it when inserting
the sterling value.

Likewise for the "unit" in

        50 <span class-"unit">cents</span>
Andy Mabbett
                Say "NO!" to compulsory ID Cards:  <http://www.no2id.net/>

                Free Our Data:  <http://www.freeourdata.org.uk>
microformats-discuss mailing list
microformats-discuss at microformats.org

More information about the microformats-discuss mailing list