List Info

Thread: Re: country-code may be missing from hCard/adr spec




Re: country-code may be missing from hCard/adr spec
country flaguser name
United States
2007-02-25 04:48:19
Nic James Ferrier wrote:

> James Craig wrote:
>
>> i18n note: country-code may be missing. Usually a
postal-code prefix,
>> such as "FIN-00630 Helsinki" or
"L-4750 Petange" (Luxembourg), used
>> in addition to, or in lieu of, the country-name.
Thoughts?
>
> I do <abbr class="country-name"
title="UK">United Kingdom</abbr>  
> when I want a country code.

Assuming you meant this:
<abbr class="country-name" title="United
Kingdom">UK</abbr>

That's fine, but country-name and country-code are not
mutually  
exclusive. See "in addition to" comment above. For
example:

Pazmaniteng 24-9
A-1020 Vienna
AUSTRIA

Sølvgade 83, opg. S
DK-1307 København K.
DENMARK


_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

Re: country-code may be missing from hCard/adr spec
user name
2007-02-25 07:10:15
On 2/25/07, James Craig <jcraigapple.com> wrote:
> Sølvgade 83, opg. S
> DK-1307 København K.
> DENMARK

hCard is modeled after the vCard RFC 2426. It uses a
different system
to mark-up addresses than the ISO model. But they can easily
be
combined; for example:

<div class="adr" lang="dk">
<div class="street-address">Sølvgade 83,
opg. S</div>
<span class="iso-country-code"><abbr
class="country-name"
title="Denmark">DK</abbr>-<span
class="postal-code">1307</span></span&
gt;
<span
class="locality">København</span> K.
<div>DENMARK</div>
</div>

You don't have to change the way you display your text, but
you have
several choices where you can add the semantics. You can
use
<div>DENMARK</div> to mark-up the country-name
and ignore the DK
postal-code prefix, or vice-versa.

because ADR is modeled after the RFC it is not likely that
the ISO
prefix will be added into the hCard property-List, but there
is
nothing stopping you from using it in any form you need.
postal-codes
are NOT just integers,

<span class="postal-code">EH9
2JT</span>

you could do:

<span
class="postal-code">DK-1307</span>
or
DK-<span
class="postal-code">1307</span>

it is a matter of preference and a matter of how consuming
applications deal with this? if i send this postal-code with
the ISO
prefix to Google or Yahoo ADR->GEO services does it
choke? depending
on what you intend to do with the data, that will help guide
you to
how best mark-it-up.

With or without the ISO prefix, ADR works just fine.

-brian

-- 
brian suda
http://suda.co.uk

_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

Re: country-code may be missing from hCard/adr spec
country flaguser name
United Kingdom
2007-02-25 05:23:34
In message <7D7E1EEB-CBAF-4CA7-84F9-046B151A65DCapple.com>, James Craig
<jcraigapple.com> writes

>A-1020

I'd mark that up as:

        <span class="postal
code">A-1020</span>

or possibly:

        <span class="postal code">
           <abbr
title="Austria">A</abbr>-1020
        </span>


After all, most on-line forms have a field for "postal
code" into which
such data goes.

-- 
Andy Mabbett
                 <http://www
.pigsonthewing.org.uk/uFsig/>

                    Welcome to the world's longest week!
_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )