[uf-discuss] An Inconvenient hCard

Paul Wilkins pmw57 at xtra.co.nz
Sun Mar 11 17:49:32 PST 2007


From: "Ara Pehlivanian" <ara.pehlivanian at gmail.com>
> On 3/11/07, Paul Wilkins <pmw57 at xtra.co.nz> wrote:
>> Good news, the voice type is the default one, so you don't have to 
>> specify
>> the voice type at all, and only specify for the fax (in this case).
>>
>> With that, you can have
>> <p class="tel">Tel: <span class="value">(514) 123-4567</span></p>
>> <p class="tel"><span class="type">Fax</span>: <span class="value">(514)
>> 123-4568</span></p>
>
> Thanks Paul. That's really helpful.
>
> Any ideas about internationalization? How would I handle "fax" in
> French? I doubt that "Télécopieur" would be a valid type, since RFC
> 2426 doesn't seem to be geared toward types in other languages.

If the word doesn't appear in the expected english (yeah I know, us damned 
english) then you would have to use the abbr design pattern.

With the abbr design pattern, you encode the machine-readable info around 
the human-readable words.
<p class="tel"><abbr class="type" title="fax">Téléc</abbr>: <span 
class="value">(514) 123-4568</span></p>

http://microformats.org/wiki/abbr-design-pattern has more details on the 
abbre design pattern.

-- 
Paul Wilkins 



More information about the microformats-discuss mailing list