From glenn.jones at madgex.com Sat May 8 02:10:55 2010 From: glenn.jones at madgex.com (Glenn Jones) Date: Sat May 8 02:12:25 2010 Subject: [uf-dev] Correction to hCard cheatsheet Message-ID: <36A319113CF910438942741C4727ADFF046365E2@MOBY.Clarence.local> Hi All It looks like there may be a few errors in the http://microformats.org/wiki/hcard-cheatsheet document. Eugene Strizhok emailed me earlier this week to question some of the test cases in the ufxtract test suite. The 'type' subproperty of 'adr', 'email' and 'tel' properties is singular on the cheatsheet, while your tests assume it to be plural. Also on the cheatsheet 'role' property is marked as plural, but is singular in the tests. The affected tests are: * http://ufxtract.com/testsuite/hcard/hcard12.htm (vcard[0].adr[0].type[0]) * http://ufxtract.com/testsuite/hcard/hcard6.htm (vcard[3].email[0].type[0]) * http://ufxtract.com/testsuite/hcard/hcard14.htm (vcard[0].tel[0].type[0]) * http://ufxtract.com/testsuite/hcard/hcard13.htm (vcard[0].tel[0].type[0]) * http://ufxtract.com/testsuite/hcard/hcard1.htm (vcard[0].role) I have looked at the original vcard spec - http://tools.ietf.org/html/rfc2426#section-3.3.1 The type property is mark as a single value, but carries any array of items. The give the example looks like: TEL;TYPE=work,voice,pref,msg:+1-213-555-1234 This has typical been converted into hCard specs as "OPTIONAL, and MAY occur more than once". The cheatsheet would seem to be wrong. Also the role is singular value "OPTIONAL, but MUST NOT occur more than once", the cheatsheet looks wrong again. Before I edited the wiki, I just wanted to check that my interpretation is correct Thanks Glenn Jones From danbri at danbri.org Sat May 8 02:32:41 2010 From: danbri at danbri.org (Dan Brickley) Date: Sat May 8 02:32:47 2010 Subject: [uf-dev] Correction to hCard cheatsheet In-Reply-To: <36A319113CF910438942741C4727ADFF046365E2@MOBY.Clarence.local> References: <36A319113CF910438942741C4727ADFF046365E2@MOBY.Clarence.local> Message-ID: On Sat, May 8, 2010 at 11:10 AM, Glenn Jones wrote: > Hi All > > It looks like there may be a few errors in the > http://microformats.org/wiki/hcard-cheatsheet document. Eugene Strizhok > emailed me earlier this week to question some of the test cases in the > ufxtract test suite. > > The 'type' subproperty of 'adr', 'email' and 'tel' properties is > singular on the cheatsheet, while your tests assume it to be plural. > Also on the cheatsheet 'role' property is marked as plural, but is > singular in the tests. Interesting. Is the notion of 'subproperty' common across all the microformats, or hcard-specific? Are there any any conventions around plurality, eg. that a singular property can only have singular subproperties? cheers, Dan From glenn.jones at madgex.com Sat May 8 05:19:52 2010 From: glenn.jones at madgex.com (Glenn Jones) Date: Sat May 8 05:20:59 2010 Subject: [uf-dev] Correction to hCard cheatsheet In-Reply-To: References: <36A319113CF910438942741C4727ADFF046365E2@MOBY.Clarence.local> Message-ID: <36A319113CF910438942741C4727ADFF046365E4@MOBY.Clarence.local> Hi Dan Copied the terminology out of Eugene email. I don't think there really is a notion of 'subproperty' just hierarchies of properties. The design of hCard follows vCard in terms of whether an item is a single or multiple values. I have not noticed any pattern or conventions around multiple value and parent property relationships. Maybe I need to be a little more careful with the terminology I use in relation detailed description Microformats. When setting up the test cases I found this was one of the areas where the parsers operated differently. Michael Kaply (operator author) and me spent some time trying to make sure the test where correct and updating our parsers. Looks like elements wiki documentation needs checking. Glenn -----Original Message----- From: microformats-dev-bounces@microformats.org [mailto:microformats-dev-bounces@microformats.org] On Behalf Of Dan Brickley Sent: 08 May 2010 10:33 To: A list for people developing tools with microformats. Subject: Re: [uf-dev] Correction to hCard cheatsheet On Sat, May 8, 2010 at 11:10 AM, Glenn Jones wrote: > Hi All > > It looks like there may be a few errors in the > http://microformats.org/wiki/hcard-cheatsheet document. Eugene Strizhok > emailed me earlier this week to question some of the test cases in the > ufxtract test suite. > > The 'type' subproperty of 'adr', 'email' and 'tel' properties is > singular on the cheatsheet, while your tests assume it to be plural. > Also on the cheatsheet 'role' property is marked as plural, but is > singular in the tests. Interesting. Is the notion of 'subproperty' common across all the microformats, or hcard-specific? Are there any any conventions around plurality, eg. that a singular property can only have singular subproperties? cheers, Dan _______________________________________________ microformats-dev mailing list microformats-dev@microformats.org http://microformats.org/mailman/listinfo/microformats-dev From mail at tobyinkster.co.uk Wed May 12 15:30:38 2010 From: mail at tobyinkster.co.uk (Toby Inkster) Date: Wed May 12 15:32:02 2010 Subject: [uf-dev] Re: Perl module - HTML::Microformats In-Reply-To: <20100416233516.7212c084@miranda.g5n.co.uk> References: <1266654664.14928.12.camel@ophelia2.g5n.co.uk> <03cf8d8e39c7aef21865069627f7ca08.squirrel@goddamn.co.uk> <1267406263.15017.35.camel@ophelia2.g5n.co.uk> <1268178894.19575.16.camel@ophelia2.g5n.co.uk> <1269164757.8745.36.camel@ophelia2.g5n.co.uk> <20100416233516.7212c084@miranda.g5n.co.uk> Message-ID: <20100512233038.2b81b3d9@miranda.g5n.co.uk> On Fri, 16 Apr 2010 23:35:16 +0100 Toby Inkster wrote: > http://search.cpan.org/~tobyink/HTML-Microformats/ Version 0.00_09 is now out; heading towards the first stable version. The HTML-Microformats distribution now offers support for all but two of the microformat specifications listed on the microformats wiki front page, and all but four of the drafts[1]. It also offers support for the draft figure, hMeasure and species microformats (not listed on the wiki front page) and the OpenURL COinS poshformat. ____ 1. No support for XMDP, rel-nofollow, hMedia, rel-directory, rel-home or robots exclusion. -- Toby A Inkster