[uf-discuss] First version of Currency proposal
mikeschinkel at gmail.com
Fri Oct 20 01:52:46 PDT 2006
>> <html lang="en-gb">
Question: how would someone implement a wiki with different pages in different languages since they don't have access to changing the header or <HTML> element for each wiki page?
From: microformats-discuss-bounces at microformats.org [mailto:microformats-discuss-bounces at microformats.org] On Behalf Of Ciaran McNulty
Sent: Friday, October 20, 2006 4:34 AM
To: Microformats Discuss
Subject: Re: [uf-discuss] First version of Currency proposal
On 10/20/06, Mike Schinkel <mikeschinkel at gmail.com> wrote:
> Question: How does a human currently interpret a website that is have
> values such as $1,000 when it it was designed by a US company with US
> customers in mind? Is there something in the HTTP headers that makes
> this explicit that a machine could read, or does the Argentine viewing
> the web page just have to figure it out in context? If not, then we'd
> need a page-global currency seperator too...
The @lang attribute specifies an ISO639 or ISO3166 country code for the element it's applied to (and any descendant elements.
The W3C recommend that the HTML element have this for every page.
You could easily, for instance have:
<p>This product is $1,000 (<span lang="fr-pr">1.500€</span>)</p> [...] </html>
And hopefully a user agent would know how to parse the numbers. @lang also has benefits for things like screen readers and so on.
microformats-discuss mailing list
microformats-discuss at microformats.org
More information about the microformats-discuss