Re: [uf-discuss] Mark-up for vCard in table rows

2007-03-25 Thread Paul Wilkins

From: "Jason Garber" <[EMAIL PROTECTED]>

Correction: those classes should be "vcard", not "hcard".


yeah, that could work.

Andy - how would you feel with the following sample code for your particular 
trouble.



Visitor Center
 class="country-name">Nepal
Okhaldhunga (40 km) href="...">map



--
Paul Wilkins 


___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Mark-up for vCard in table rows

2007-03-25 Thread Jason Garber

Jason Garber wrote:

Quick and dirty example:


   
  
 Jason Garber
 Vienna
 VA
  
   
   
  
 Andy Mabbett
 Sometown
 Somewhere
  
   



Correction: those classes should be "vcard", not "hcard".

Jason
[EMAIL PROTECTED]
___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Mark-up for vCard in table rows

2007-03-25 Thread Jason Garber

Andy Mabbett wrote:


Visitor Center

 
 Nepal
 Okhaldhunga (40 km)
 map




I'm trying to advise someone about marking up an existing table; uFs 
are not supposed to require the re-engineering of valid HTML.


This is a stretch, but you could wrap each row in a  tag and give 
_that_ a class of "hcard", then your  could have a class of "adr." 
It's hack-ish and adds a lot to the table, but is still valid and could 
solve the problem.


Quick and dirty example:


   
  
 Jason Garber
 Vienna
 VA
  
   
   
  
 Andy Mabbett
 Sometown
 Somewhere
  
   


Hopefully that doesn't get mungled format-wise, but could this maybe be 
a solution?


Jason
[EMAIL PROTECTED]
___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Mark-up for vCard in table rows

2007-03-25 Thread Andy Mabbett
In message <[EMAIL PROTECTED]>, Jason Garber 
<[EMAIL PROTECTED]> writes


I'm not sure my suggestion will work since multiple "adr" blocks would 
logically indicate multiple addresses. Unless anyone knows of a 
concatenation method, of course.


There's the "include -pattern", but that would seem to be a 
sledgehammer, to crack this particular nut (the URL of which I'm not at 
liberty to divulge - I'll ask if I may).


--
Andy Mabbett
 

Welcome to the world's longest week!
___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Mark-up for vCard in table rows

2007-03-25 Thread Paul Wilkins

From: "Andy Mabbett" <[EMAIL PROTECTED]>
I'm trying to advise someone about marking up an existing table; uFs are 
not supposed to require the re-engineering of valid HTML.


Modern markup techniques can't be expected to work with ancient coding 
troubles.


The only way to group address parts in separate td elements is to group them 
from the tr element.


With the adr class in the tr element, the hcard grouping has to be further 
up, so with the current manner of marking up microformats, the table code 
you're working with isn't able to be marked up without modification.


A way of successfully marking it up is to combine the td elements together, 
and use div and span to adjust the layout with css.



Visitor Center

  class="country-name">Nepal
 Okhaldhunga (40 km) href="...">map




But if you want to mark up the original code with no structural changes, 
because of the structured nature of microformats, that won't be possible.


--
Paul Wilkins 


___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Mark-up for vCard in table rows

2007-03-25 Thread Paul Wilkins

From: "Paul Wilkins" <[EMAIL PROTECTED]>

http://microformats.org/wiki/hcard-parsing
Other properties, like "adr", "email", "url", "tel", etc., may (and often 
do) appear more than once, and thus the parser continues to look for each 
occurrence within the contents of the hCard


So you can mark it up properly, with a class="adr" on each appropriate td.


Sorry, correction, thanks Tantek, separate adr sections are for separate 
addresses.


--
Paul Wilkins 


___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Mark-up for vCard in table rows

2007-03-25 Thread Jason Garber

Andy Mabbett wrote:
In message <[EMAIL PROTECTED]>, Jason Garber 
<[EMAIL PROTECTED]> writes


You "should" be able to put class="adr" in multiple times and still 
get a complete and/or valid address.


Thank you. Is that documented anywhere? I would understand multiple 
"adr" to refer to *different* addresses ("my house in the city and my 
apartment at the beach").
The hCard cheetsheat[1] notes that "adr" should "match 0 or more times" 
but to your point, this is probably to handle multiple addresses, not 
split-up single addresses.
I did a real brief test using multiple spans with classes of "adr" 
and Operator didn't blow up and Tails still recognizes a complete 
address.


In Operator, though, it does list out multiple objects under the 
"object adr".


If your interpretation of multiple "adr" being concatenated to one 
address is correct, than that is "blowing up".
On further reflection, I'm not sure my suggestion will work since 
multiple "adr" blocks would logically indicate multiple addresses. 
Unless anyone knows of a concatenation method, of course.


[1] http://microformats.org/wiki/hcard-cheatsheet

Jason
[EMAIL PROTECTED]
___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Mark-up for vCard in table rows

2007-03-25 Thread Paul Wilkins

From: "Andy Mabbett" <[EMAIL PROTECTED]>
I'm trying to advise someone about marking up an existing table; uFs are 
not supposed to require the re-engineering of valid HTML.


http://microformats.org/wiki/hcard-parsing
Other properties, like "adr", "email", "url", "tel", etc., may (and often 
do) appear more than once, and thus the parser continues to look for each 
occurrence within the contents of the hCard


So you can mark it up properly, with a class="adr" on each appropriate td.

If the tool doesn't correctly take the multiple instances and bring them 
together, that ais a problem that the tool will need to remedy.


--
Paul Wilkins 


___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


each "adr" is its own address (was Re: [uf-discuss] Mark-up for vCard in table rows)

2007-03-25 Thread Tantek Çelik
On 3/25/07 2:37 PM, "Andy Mabbett" <[EMAIL PROTECTED]> wrote:

> In message <[EMAIL PROTECTED]>, Jason Garber
> <[EMAIL PROTECTED]> writes
> 
>> You "should" be able to put class="adr" in multiple times and still get
>> a complete and/or valid address.

vCards can contain multiple ADR properties for multiple addresses.  Thus in
hCard, multiple class="adr" instances are for multiple addresses, not
concatenation into a single address.  Each class="adr" indicates a separate
address.

Added to FAQ:

http://microformats.org/wiki/hcard-faq#How_do_I_markup_multiple_addresses

>> I did a real brief test using multiple spans with classes of "adr" and
>> Operator didn't blow up and Tails still recognizes a complete address.
>> 
>> In Operator, though, it does list out multiple objects under the
>> "object adr".
> 
> If your interpretation of multiple "adr" being concatenated to one
> address is correct, than that is "blowing up".

The concatenation interpretation of "adr" is incorrect.

Thanks,

Tantek

___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Mark-up for vCard in table rows

2007-03-25 Thread Andy Mabbett
In message <[EMAIL PROTECTED]>, Paul Wilkins 
<[EMAIL PROTECTED]> writes



Andy Mabbett wrote:

Given that the only place class="vcard" can go is the , where can I
put class="adr"?


If you have to stick to using tables (ugh), you can nest them together.


I don't - but then, it's not my website.

Then again, what's wrong with tables fir tabular data?



Visitor Center

 
 Nepal
 Okhaldhunga (40 km)
 map




I'm trying to advise someone about marking up an existing table; uFs are 
not supposed to require the re-engineering of valid HTML.


--
Andy Mabbett
 

Welcome to the world's longest week!
___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Mark-up for vCard in table rows

2007-03-25 Thread Andy Mabbett
In message <[EMAIL PROTECTED]>, Jason Garber 
<[EMAIL PROTECTED]> writes


You "should" be able to put class="adr" in multiple times and still get 
a complete and/or valid address.


Thank you. Is that documented anywhere? I would understand multiple 
"adr" to refer to *different* addresses ("my house in the city and my 
apartment at the beach").


I did a real brief test using multiple spans with classes of "adr" and 
Operator didn't blow up and Tails still recognizes a complete address.


In Operator, though, it does list out multiple objects under the 
"object adr".


If your interpretation of multiple "adr" being concatenated to one 
address is correct, than that is "blowing up".


--
Andy Mabbett
 

Welcome to the world's longest week!
___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Mark-up for vCard in table rows

2007-03-25 Thread Paul Wilkins

Andy Mabbett wrote:

Given that the only place class="vcard" can go is the , where can I
put class="adr"?


If you have to stick to using tables (ugh), you can nest them together.


Visitor Center

  
  Nepal
  Okhaldhunga (40 km)
  map



My mother always said tables would be bad for my health.

--
Paul Wilkins
___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Mark-up for vCard in table rows

2007-03-25 Thread Jason Garber
You "should" be able to put class="adr" in multiple times and still get 
a complete and/or valid address.


I did a real brief test using multiple spans with classes of "adr" and 
Operator didn't blow up and Tails still recognizes a complete address.


In Operator, though, it does list out multiple objects under the "object 
adr". The one hangup I did find was importing the contact into Address 
Book (mac) results in multiple addresses, so this may not be the perfect 
solution.


Jason
[EMAIL PROTECTED]

Andy Mabbett wrote:

I'm advising someone on marking up some content, where each table row
refers to a specific place.

Stripped of extraneous detail, the markup looks like:



Visitor Center

  Nepal

Okhaldhunga (40 km) map



Okhaldhunga is a place ("locality") and Nepal, obviously, the
"country-name". "Visitor Center" will be the "fn org".

The URLs are to maps, and need not be marked-up in the hCard.

Given that the only place class="vcard" can go is the , where can I
put class="adr"?

  

___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss