[uf-discuss] Confused about telephone numbers in hCard

Montgomery, Mike MMontgomery at TerpSys.com
Fri Jun 29 10:48:58 PDT 2007


That's too bad.  I've come across the same issue with Toll-Free numbers.
If you come up with a good workaround, I would be interested in hearing
it.  Hopefully the bug in Tails will be fixed.

Even though it's not the best solution, could you make the first div in
the embedded span example a div and set the display to be inline instead
of block?

<div>Toll-free Phone: <div class="tel"><span
class="work">1-800-670-5861</span></div></div>

-----Original Message-----
From: microformats-discuss-bounces at microformats.org
[mailto:microformats-discuss-bounces at microformats.org] On Behalf Of
Rickards, Julian (NDM)
Sent: Friday, June 29, 2007 1:31 PM
To: Microformats Discuss
Subject: RE: [uf-discuss] Confused about telephone numbers in hCard

It gives me the same result as code block 2 below where "Toll-free
Phone: " appears in the Outlook field.

As Mike Kaply suggested, there may be bugs in Tails Export and maybe
this suggestion should work but not in Tails.

Jules

-----Original Message-----
From: microformats-discuss-bounces at microformats.org
[mailto:microformats-discuss-bounces at microformats.org] On Behalf Of
Montgomery, Mike
Sent: Friday, June 29, 2007 1:25 PM
To: Microformats Discuss
Subject: RE: [uf-discuss] Confused about telephone numbers in hCard

Would the following work? 

<div class="tel">Toll-free Phone: <span
class="work">1-800-670-5861</span></div>

-----Original Message-----
From: microformats-discuss-bounces at microformats.org
[mailto:microformats-discuss-bounces at microformats.org] On Behalf Of
Rickards, Julian (NDM)
Sent: Friday, June 29, 2007 1:08 PM
To: Microformats Discuss
Subject: [uf-discuss] Confused about telephone numbers in hCard

Hi:

I am still having a bit of trouble with telephone numbers in hCard
microformat. The instructions I have read seem to suggest that all I
need is to identify that a phone-number is within a class="tel", that
the type must be identified (such as work) and that the value should be
identified.  The rest of my hCard markup (class="adr") worked fine but
the phone numbers proved to be very challenging.

What I am doing is trying to make my markup work in Outlook 2003 by
exporting from Tails Export. 

I started with:

<div class="tel"><abbr class="type" title="work">Toll-free Phone:</abbr>
<span class="value">1-800-670-5861</span></div>

but the phone entry in Outlook is empty. So I changed the <abbr> to
<span> as follows:

<div class="tel"><span class="work">Toll-free Phone:</span> <span
class="value">1-800-670-5861</span></div>

but now the entry in Outlook appears but it appears as "Toll-free Phone:
1-800-670-5861". However, I don't want "Toll-free Phone: " in the phone
number field.

So I changed the code to:

<div>Toll-free Phone: <span class="tel"><span
class="work">1-800-670-5861</span></span></div>

and now it works properly but HTML Tidy gives me a warning about nested
spans. So I changed it once again to combine the classes to:

<div>Toll-free Phone: <span class="tel work">1-800-670-5861</span></div>

but this results in an empty field in Outlook.

Why is this so hard to do?
 
------------------------------
Julian Rickards
Geoscience Data Conversion Technician
Provincial Recording Office,
Willet Green Miller Building, Level B3,
933 Ramsey Lake Road,
Sudbury, ON  P3E 6B5
E-mail: julian.rickards at ontario.ca
Phone: (705) 670-5861, Fax: (705) 670-5881

_______________________________________________
microformats-discuss mailing list
microformats-discuss at microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss

_______________________________________________
microformats-discuss mailing list
microformats-discuss at microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss

_______________________________________________
microformats-discuss mailing list
microformats-discuss at microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss



More information about the microformats-discuss mailing list