|
List Info
Thread: Confused about telephone numbers in hCard
|
|
| Confused about telephone numbers in
hCard |

|
2007-06-29 12:07:43 |
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></d
iv>
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></d
iv>
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></sp
an></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 ontario.ca
Phone: (705) 670-5861, Fax: (705) 670-5881
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| Re: Confused about telephone numbers in
hCard |

|
2007-06-29 12:22:38 |
I believe you are running into a bug in tails export where
<abbr> doesn't work.
Can you try a test page that doesn't use abbr but still uses
type ,
and see what happens?
Mike
On 6/29/07, Rickards, Julian (NDM) <julian.rickards ontario.ca> wrote:
> 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></d
iv>
>
> 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></d
iv>
>
> 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></sp
an></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 ontario.ca
> Phone: (705) 670-5861, Fax: (705) 670-5881
>
> _______________________________________________
> microformats-discuss mailing list
> microformats-discuss microformats.org
> http://microformats.org/mailman/listinfo/microforma
ts-discuss
>
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| RE: Confused about telephone numbers in
hCard |
  United States |
2007-06-29 12:25:02 |
Would the following work?
<div class="tel">Toll-free Phone: <span
class="work">1-800-670-5861</span></di
v>
-----Original Message-----
From: microformats-discuss-bounces microformats.org
[mailto:microformats-discuss-bounces 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></d
iv>
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></d
iv>
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></sp
an></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 ontario.ca
Phone: (705) 670-5861, Fax: (705) 670-5881
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| RE: Confused about telephone numbers in
hCard |

|
2007-06-29 12:27:21 |
The third code block works in Tails Export and doesn't use
<abbr>, is
this what you want?
Jules
-----Original Message-----
From: Mike Kaply
I believe you are running into a bug in tails export where
<abbr>
doesn't work.
Can you try a test page that doesn't use abbr but still uses
type , and
see what happens?
Mike
On 6/29/07, Rickards, Julian (NDM) <julian.rickards ontario.ca> wrote:
> 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></d
iv>
>
> 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></d
iv>
>
> 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></sp
an></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?
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| RE: Confused about telephone numbers in
hCard |

|
2007-06-29 12:31:18 |
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 microformats.org
[mailto:microformats-discuss-bounces 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></di
v>
-----Original Message-----
From: microformats-discuss-bounces microformats.org
[mailto:microformats-discuss-bounces 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></d
iv>
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></d
iv>
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></sp
an></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 ontario.ca
Phone: (705) 670-5861, Fax: (705) 670-5881
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| Re: Confused about telephone numbers in
hCard |

|
2007-06-29 12:33:19 |
On 6/29/07, Rickards, Julian (NDM) <julian.rickards ontario.ca> wrote:
> The third code block works in Tails Export and doesn't
use <abbr>, is
> this what you want?
Do you have a URL, then we can more easily test it with
various
extraction applications and various address book
applications.
There is also a wiki page with know issues with
applications:
http://microformats.org/wiki/vcard-implement
ations#Microsoft_Outlook
thanks,
-brian
--
brian suda
http://suda.co.uk
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| Re: Confused about telephone numbers in
hCard |
  United States |
2007-06-29 12:47:32 |
On Jun 29, 2007, at 11:27 AM, Rickards, Julian (NDM) wrote:
>> So I changed the code to:
>>
>> <div>Toll-free Phone: <span
class="tel"><span
>>
class="work">1-800-670-5861</span></sp
an></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:
> I believe you are running into a bug in tails export
where <abbr>
> doesn't work.
>
> Can you try a test page that doesn't use abbr but still
uses type ,
> and
> see what happens?
> The third code block works in Tails Export and doesn't
use <abbr>, is
> this what you want?
The example above is not valid hCard. Types are not
classes, so
that's likely only working because it's ignoring the
class="work"
completely. I think what Mike was asking is if the
following works:
<div class="tel"><span
class="type">work</span>: <span
class="value">1-800-670-5861</span></d
iv>
Obviously that's not what you want to publish, but if that
works and
the <abbr> doesn't then we've narrowed the problem
down to Tails
failing to recognize <abbr> titles as content. Also,
do you have a
live URL of your first (correct) attempt we could use to
test with
other tools?
P.S. Please don't top-post; it's hard to read.
http:/
/microformats.org/mailinglists-policies/
Peace,
Scott
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| RE: Confused about telephone numbers in
hCard |
  United States |
2007-06-29 12:48:58 |
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></di
v></div>
-----Original Message-----
From: microformats-discuss-bounces microformats.org
[mailto:microformats-discuss-bounces 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 microformats.org
[mailto:microformats-discuss-bounces 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></di
v>
-----Original Message-----
From: microformats-discuss-bounces microformats.org
[mailto:microformats-discuss-bounces 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></d
iv>
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></d
iv>
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></sp
an></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 ontario.ca
Phone: (705) 670-5861, Fax: (705) 670-5881
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| RE: Confused about telephone numbers in
hCard |

|
2007-06-29 13:26:13 |
Sorry Scott for top-posting, will change that from now on.
>> So I changed the code to:
>>
>> <div>Toll-free Phone: <span
class="tel"><span
>>
class="work">1-800-670-5861</span></sp
an></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:
> The example above is not valid hCard. Types are not
classes, so
that's likely only working because it's ignoring the
> class="work" completely. I think what Mike
was asking is if the
following works:
This is a pity because for my work, I have to create a
contact page in
both French and English (the two official languages of the
province of
Ontario, Canada) so having "work" or
"fax" on a French page won't work
for us. It would have been great if the hCard specification
allowed
class="work" because then I could use <span
class="work">Bureau</span>
or alternate descriptions in English (or any language) such
as <span
class="work">Toll-free Phone</span>.
> <div class="tel"><span
class="type">work</span>: <span
class="value">1-800-670-5861</span></d
iv>
At http://jrickards.ca/hc
ard.html, I used code similar to the one you
have above. The phone number doesn't appear in Outlook when
using Tails
Export but, when using the link to X2V, it adds
"work" to the beginning
of the phone number.
Jules
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| Re: Confused about telephone numbers in
hCard |
  New Zealand |
2007-07-01 16:33:35 |
From: "Rickards, Julian (NDM)"
<julian.rickards ontario.ca>
> 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></d
iv>
This is the correct way to markup that you're after.
<snip>
> Why is this so hard to do?
The trouble you're facing is that Tails is at version 0.3.
The author says
" Thanks all for the feedback. I'm trying to construct
a list . . ."
At this stage, Tails is incomplete and you will either need
to be paitent
until it works more properly, or for the interim, find some
other solution
than Tails.
--
Paul Wilkins
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
|
|