List Info

Thread: Complete n00b: adr microformat




Complete n00b: adr microformat
country flaguser name
Australia
2007-11-06 21:20:31
Gday,

I would like to ask a few questions about the adr
microformat and I 
really hope I am in the correct place. I am so sorry if I am
not.

I am trying to learn about microformats, and so far so
good.


Q1. I have an address I would like to mark up as an adr. Now
the problem 
that I think I am having with this address is that it has a
country, a 
state, a city, a suburb, a postcode, and a street address.

As far as I know, adr only has region and locality.

Possible markup example:
<div class="adr"><div
class="work">Street Address</div>
    <div
class="street-address"></div>
    <div class="locality"></div>
--> suburb?
    <div class="postal-code"></div>
    <div class="region"></div> -- >
state?
    <div class="country-name"></div>
</div>

If locality equates to suburb, and region equates to state,
how do I add 
the city? Can I use extended address or is that reserved for
a more 
refined-grain part of the address than street-address, eg.
office 
number/building?


Q2. As far as I am aware, good typography insists that
colons are flush 
against the word they succeed, and are also styled in the
same manner. 
Is it OK to have colons in the <spans>?

For example:
<div class="tel"><span
class="type"
title="fax">Fax:</span>  <span 
class="value">+60 3 7880
7978</span></div>

Thanks!!

Kat



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

Re: Re: Complete n00b: adr microformat
country flaguser name
Canada
2007-11-06 21:57:06
A1. I would propose "locality"  for the suburb
maybe and if you must  
specify city AND suburb in different tags then I dont see
anything  
wrong with that, they are both class names and from the
xhtml  
standpoint they can be re-used. Or, you could stick the
suburb in  
with the city (which I think goes better with some
microformat  
parsers) separated by a coma unless you really need to have
them in  
separate tags. I don't see anything wrong with that but I'm
no guru.

A2.1. it is OK to have colons in spans but the colons would
be  
included by some parsers as being part of the content.
putting your  
colon outside the span wont add an extra space if node
right.

A2.2 AKA: Personal Vendetta

I hate the way microformats are going through that whole
adolescence  
phase and bringing back major disease like acute divitus and
severe  
spanitis, My personal take on this would be something the
likes of:

<address>
	<dl class="adr">
		<dt class="work">Street
Address</dt>
			<dd class="street-address">111 some
street</dd>
			<dd class="extended-address">suite
101</dd>
		<dt>City</dt>
			<dd class="locality">Cooltown</dd>
			<dd class="locality">Suburbia</dd>
		<dt>Postal Code</dt>
			<dd class="postal-code">H0H
0H0</dd>
		<dt>Region</dt>
			<dd class="region">OG</dd>
		<dt>Country</dt>
			<dd
class="country-name">Canada</dd>
	</dl>
	<dl class="tel">
		<dt class="type"
title="fax">Fax:</dt>
			<dd
class="value">+1-111-111-1111</dd>
		<dt class="type"
title="work">Work:</dt>
			<dd
class="value">+2-222-222-2222</dd>
	</dl>
</address>

we have markup language people... dont be affraid to use it!
And a  
plus, it adresses you colon issues pretty well I would say.



On 6-Nov-07, at 10:20 PM, Katrina wrote:

> Gday,
>
> I would like to ask a few questions about the adr
microformat and I  
> really hope I am in the correct place. I am so sorry if
I am not.
>
> I am trying to learn about microformats, and so far so
good.
>
>
> Q1. I have an address I would like to mark up as an
adr. Now the  
> problem that I think I am having with this address is
that it has a  
> country, a state, a city, a suburb, a postcode, and a
street address.
>
> As far as I know, adr only has region and locality.
>
> Possible markup example:
> <div class="adr"><div
class="work">Street Address</div>
>    <div
class="street-address"></div>
>    <div class="locality"></div>
--> suburb?
>    <div
class="postal-code"></div>
>    <div class="region"></div> --
> state?
>    <div
class="country-name"></div>
> </div>
>
> If locality equates to suburb, and region equates to
state, how do  
> I add the city? Can I use extended address or is that
reserved for  
> a more refined-grain part of the address than
street-address, eg.  
> office number/building?
>
>
> Q2. As far as I am aware, good typography insists that
colons are  
> flush against the word they succeed, and are also
styled in the  
> same manner. Is it OK to have colons in the
<spans>?
>
> For example:
> <div class="tel"><span
class="type"
title="fax">Fax:</span>  <span  
> class="value">+60 3 7880
7978</span></div>
>
> Thanks!!
>
> Kat
>
>
>
> _______________________________________________
> microformats-discuss mailing list
> microformats-discussmicroformats.org
> http://microformats.org/mailman/listinfo/microforma
ts-discuss

_______________________________________
-- The QuickRedFox loops over the lazy eval --
Francois Lafortune ( quickredfoxneuenode.com

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

Re: Complete n00b: adr microformat
country flaguser name
United States
2007-11-06 23:30:00
On 11/6/07 7:20 PM, "Katrina" <Kazt-tec.com.au> wrote:

> Gday,
> 
> I would like to ask a few questions about the adr
microformat and I
> really hope I am in the correct place. I am so sorry if
I am not.
> 
> I am trying to learn about microformats, and so far so
good.
> 
> 
> Q1. I have an address I would like to mark up as an
adr. Now the problem
> that I think I am having with this address is that it
has a country, a
> state, a city, a suburb, a postcode, and a street
address.
> 
> As far as I know, adr only has region and locality.
> 
> Possible markup example:
> <div class="adr"><div
class="work">Street Address</div>
>   <div
class="street-address"></div>
>   <div class="locality"></div>
--> suburb?
>   <div
class="postal-code"></div>
>   <div class="region"></div> --
> state?
>   <div
class="country-name"></div>
> </div>
> 
> If locality equates to suburb,

It doesn't.  locality equates to city.  this has been true
in common vCard
implementations for many years.


> Q2. As far as I am aware, good typography insists that
colons are flush
> against the word they succeed, and are also styled in
the same manner.
> Is it OK to have colons in the <spans>?

There is no need to put the colons in the spans in order to
have them flush
against the word they succeed.  inline markup must not add
extra space or
interrupt the typography (e.g. cause a line/word break)
unless styled to do
so.

> For example:
> <div class="tel"><span
class="type"
title="fax">Fax:</span>  <span
> class="value">+60 3 7880
7978</span></div>

Instead:


<div class="tel"><span
class="type">Fax</span>:  <span
class="value">+60 3 7880
7978</span></div>

Thanks,

Tantek

_______________________________________________
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 )