From codedread at gmail.com Tue Jan 11 10:19:39 2011 From: codedread at gmail.com (Jeff) Date: Tue Jan 11 10:20:10 2011 Subject: [uf-discuss] hCard, i18n and screen readers Message-ID: I'm new to hCard. ?Let's say I have the following markup:
?

T?l?phone Mobile

?
1-408-555-1234
What is the proper way to mark this up such that it is identified as a mobile phone number, but it is also i18n friendly (i.e. it does not require me to put "CELL" in the text contents of the page). This is what I think is one option:
?

T?l?phone Mobile

?
1-408-555-1234
However, it introduces the semantically incorrect 'abbr' element into my markup. ?It would also introduce an undesirable tooltip when hovering over Mobile Phone. Similar questions go for ADR types, gender (when hCard is presumably updated for vCard4), etc. Someone just now pointed me to http://microformats.org/wiki/value-class-pattern#Using_value-title_to_publish_machine-data which indicates that the following is another option:
?

T?l?phone Mobile

?
1-408-555-1234
The extra span seems ... dirty, but I guess it can work. My only question is whether screen readers interpret the title of the empty span in any way. Thanks, Jeff From lists at ben-ward.co.uk Tue Jan 11 16:32:17 2011 From: lists at ben-ward.co.uk (lists@ben-ward.co.uk) Date: Tue Jan 11 16:32:21 2011 Subject: [uf-discuss] hCard, i18n and screen readers In-Reply-To: References: Message-ID: <1294792337.16098.1414820133@webmail.messagingengine.com> On Tue, 11 Jan 2011 10:19 -0800, "Jeff" wrote: > Someone just now pointed me to > http://microformats.org/wiki/value-class-pattern#Using_value-title_to_publish_machine-data > which indicates that the following is another option: > >
> ?

title="cell">T?l?phone Mobile

> ?
1-408-555-1234
>
> > The extra span seems ... dirty, but I guess it can work. My only > question is whether screen readers interpret the title of the empty > span in any way. This is the correct way; you don't need to abuse for translation. value-title was worked out partially for this very issue. When we wrote up the pattern we ran thorough testing against screen readers; yes, it's a somewhat ugly markup cludge, but it's all we've got in HTML for the time being. Regards, Ben From codedread at gmail.com Tue Jan 11 17:06:33 2011 From: codedread at gmail.com (Jeff) Date: Tue Jan 11 17:06:59 2011 Subject: [uf-discuss] hCard, i18n and screen readers In-Reply-To: <1294792337.16098.1414820133@webmail.messagingengine.com> References: <1294792337.16098.1414820133@webmail.messagingengine.com> Message-ID: Hi Ben, On Tue, Jan 11, 2011 at 4:32 PM, wrote: > > This is the correct way; you don't need to abuse for translation. > value-title was worked out partially for this very issue. > > When we wrote up the pattern we ran thorough testing against screen > readers; yes, it's a somewhat ugly markup cludge, but it's all we've got > in HTML for the time being. Doesn't HTML5 microdata use the element for this purpose? > > Regards, > > Ben > Thanks, Jeff From mail at tobyinkster.co.uk Sun Jan 16 10:40:48 2011 From: mail at tobyinkster.co.uk (Toby Inkster) Date: Sun Jan 16 10:40:33 2011 Subject: [uf-discuss] hCard, i18n and screen readers In-Reply-To: References: <1294792337.16098.1414820133@webmail.messagingengine.com> Message-ID: <20110116184048.3889db6a@miranda.g5n.co.uk> On Tue, 11 Jan 2011 17:06:33 -0800 Jeff wrote: > Doesn't HTML5 microdata use the element for this purpose? That doesn't really work outside XHTML. The problem is that the HTML5 parsing algorithm hoists elements into the document head. In other words: Example Will alert "foobar". The browser assumes that you really meant to put the element in the head. This behaviour is inherited from legacy browsers who made this assumption because has never been allowed in the . RDFa's content attribute is a nice solution for hiding a machine readable value, and somewhat less of a hack: e.g.

I live in Lewes (50?52?N, 0?1?E)

-- Toby A Inkster From alex at nlpfu.com Sat Jan 29 19:07:15 2011 From: alex at nlpfu.com (Alexandre Patry) Date: Sat Jan 29 19:07:20 2011 Subject: [uf-discuss] The wiki has been spammed Message-ID: <4D44D5E3.6040204@nlpfu.com> Hi, I just wanted to inform you that your wiki (at least http://microformats.org/wiki/Main_Page) has been spammed. Best regards, Alexandre From tantek at cs.stanford.edu Sat Jan 29 19:38:30 2011 From: tantek at cs.stanford.edu (=?UTF-8?Q?Tantek_=C3=87elik?=) Date: Sat Jan 29 19:39:15 2011 Subject: [uf-discuss] The wiki has been spammed In-Reply-To: <4D44D5E3.6040204@nlpfu.com> References: <4D44D5E3.6040204@nlpfu.com> Message-ID: On Sat, Jan 29, 2011 at 19:07, Alexandre Patry wrote: > Hi, > > I just wanted to inform you that your wiki (at least > http://microformats.org/wiki/Main_Page) has been spammed. Thanks for the heads-up Alexandre - should be all cleaned up now. Tantek