Posts Tagged ‘microformats’

Overdue measurement microformat: useful for radio station frequencies

July 24, 2010

This post has been moved to pigsonthewing.org.uk/measurement-microformat-for-radio-station-frequencies. Sorry, but WordPress.com won’t let me set an automatic redirect.

Lists in Microformats: Suggested Optimisation

May 27, 2010

Based on my extensive experience of applying microformats to templates in Wikipedia (and other MediaWiki installations) I’ve come to the following conclusion…

For attributes which can occur more than once (such as nickname or category in hCard), lists having, or in container having, that property should be parsed as lists of individual instances of that property.

For example:

<div class="category">
<ul>
<li>ornithologist</li>
<li>driver</li>
<li>gardener</li>
</ul>
</div>

and:

<ul class="category">
<li>ornithologist</li>
<li>driver</li>
<li>gardener</li>
</ul>

should be treated as equivalent to:

<ul>
<li class="category">ornithologist</li>
<li class="category">driver</li>
<li class="category">gardener</li>
</ul>

Manu Sporny recommends me on LinkedIn

November 28, 2009

I hope you will forgive me for immodesty repeating Manu Sporny’s kind and fulsome recommendation of me, from my LinkedIn profile, for the benefit of those of you who don’t have accounts there:

I had worked with Andy in the Microformats community, developing international standards for the Web. During this time Andy not only excelled at providing technical feedback and review, but led several bold initiatives to standardize the classification of planetary-geo-location and living species on the web. While a logically consistent and wise technical contributor, his influence on the direction of the community was also vital. Andy’s role in questioning and influencing the core philosophy and community process was and continues to be deeply appreciated.

I’m genuinely touched by that. Thank you, Manu!

Manu Sporny is CEO of Digital Bazaar.

Twitter: A microformat in lieu of a protocol

November 21, 2009

In May of this year I wrote about the problems of URLs for a given Twitter user’s profile, or for an individual post or “status” being different, depending the Twitter client in use. I suggested a new protocol for Twitter links. [You might want to read that, before the rest of this post]. I can’t believe I didn’t think of this simpler solution sooner!

The answer (in the short term) is to use a microformat (or a microformat-like “poshsformat”, if you prefer to call it that) for each case. Let’s say we use the classes twitter-user & twitter-status.

User-agents (that’s jargon for browsers) could then employ a script (such as those used by GreaseMonkey, or a Firefox extension) to ignore the encoded URL and substitute the equivalent for the user’s preferred Twitter client instead.

For links to user profiles:

<a
href="http://twitter.com/pigsonthewing">
Andy Mabbett
</a>

would become:

<a
class="twitter-user"
href= "http://twitter.com/pigsonthewing">
Andy Mabbett
</a>

and:

<a
href="http://accessibletwitter.com/app/user.php?uid=pigsonthewing">
Andy Mabbett</a>

would become:

<a
class="twitter-user"
href=" http://accessibletwitter.com/app/user.php?uid=pigsonthewing">
Andy Mabbett</a>

Likewise, for individual statuses:

<a
href="twitter.com/pigsonthewing/status/1828036334">
something witty</a>

would become:

<a
class="twitter-status"
href="twitter.com/pigsonthewing/status/1828036334">
something wittyg<a>

and:

<a
href="accessibletwitter.com/app/status.php?1828036334">
something witty<a>

would become:

<a
class="twitter-status"
href="accessibletwitter.com/app/status.php?1828036334">
something witty<a>

and:

<a
href="m.slandr.net/single.php?id=1828036334"
something witty</a>

would become:

<a
class="twitter-status"
href="m.slandr.net/single.php?id=1828036334">
something witty</a>

To simplify matters, the rules for extracting the user ID or the status update could be the same in both cases:

  1. Parse the value of the href attribute of the element to which the class applies.
  2. If there is a question mark, use everything after that.
  3. Otherwise, if there is an equals sign, use everything after that.
  4. Otherwise, use everything after the last slash.

That would deal with all the examples in my earlier post.

So, if you’re using a user-agent which is aware of this microformat, and find on a page:

<a
class="twitter-user"
href="http://twitter.com/pigsonthewing">
Andy Mabbett<a>
said
<a
class="twitter-status"
href="m.slandr.net/single.php?id=1828036334">
something witty<a>

but your preferred Twitter client is Dabr (one I recommend, BTW!) then your browser would treat (and possibly render) that as:

<a
href="dabr.co.uk/user/pigsonthewing">
Andy Mabbett<a>
said
<a
class="twitter-status"
href="dabr.co.uk/status/1828036334">
something witty<a>

Simples!

Machine Tagging Flickr

July 16, 2009

I’ve posted some more thoughts on machine- (or triple-) tags and microformats on Flickr, in their Flickr Ideas group.

Update: There is now a tool to automatically generate tags for Flickr images of living things; iNaturalist tagger.

How microformat developments are blocked

January 9, 2009

The hCard microformat can distinguish between a person and an organisation, by the use of the org property:


<div class="vcard">
<span class="fn">Andy Mabbett</span>
</div>


<div class="vcard">
<span class="fn org">The Red Cross</span>
</div>

but it cannot distinguish between an organisation and a place:


<div class="vcard">
<span class="fn org">The Wembley Stadium fan club</span>
</div>


<div class="vcard">
<span class="fn org">Wembley Stadium</span>
</div>

treating them both as organisations.

On 31 December 2007, I described a way in which hCard microformat could be used to differentiate between hCards for places and organisations.

On 9 January 2008, having received favourable comment, I made a formal proposal to update the hCard specification.

Despite this ten-day gap, Brian Suda, one of the microformats “admins”, the cabal who control microformats, complained that he’d only had two days to consider the matter, and that “More time is needed to fully look over the implications of this change.”

No objections to the method, nor issues with it, have been raised.

Toby Inkster’s superb microformats parser Swignition (formerly called “Cognition”) has supported the method since version 0.1-alpha8, released in May 2008.

One year on from my formal proposal, what changes have been made to the hCard specification, in this regard? None.

hAccessibility: BBC drop hCalendar microformat

June 23, 2008

Almost two years after I first raised the issue (to a reaction from the cabal that runs the microformats “community” which began with denial and moved to hostility) the BBC have stopped using the hCalendar microformat due to accessibility concerns.

Maybe now something can be done to incorporate one of the several, more accessible proposed work-arounds, into the relevant standards?

Thanks to Bruce Lawson and Patrick Lauke for breaking the news.

Update: Patrick now has a post on the subject, at webstandards.org

Spotted Mimics

June 23, 2008

As a child, I was often taken to our local shopping centre in Perry Barr, north Birmingham (since replaced by a tin shed with pretensions of being a mall) to see a Mynah bird (Acridotheres tristis). It resided in what I now realise was a ridiculously small cage, on the counter of a petshop, and would delight all and sundry by asking repeatedly, “Where’s George?”, wolf whistling, or performing another of its many acts of mimicry.

Now my ears are more attuned to such things I realise that the journey was unnecessary. Still living in Birmingham, I can hear the avian equivalent of Rory Bremner any time I wish, simply by opening a window and listening to the Mynah’s relatives, my local Starlings (Sturnus vulgaris). With the onset of autumn, they flock in ever increasing numbers, resplendent in new, strikingly sleek and spotty plumage, and very vocal. As well as having an uncanny ability to sound like any number of other birds, they have been known to imitate car alarms and mobile phones, and even children’s playground screaming.

The quiet suburban road where I live is rarely without Starlings, at any time of day, but the city-centre skies are no longer darkened by the flocks which came in to roost there in my childhood. A backfiring car would see thousands take off at once, and have pedestrians reaching for tissues to remove their supposedly “lucky” deposits from clothing or — worse — hair.

The birds in my garden are far better behaved, except when treated to their favourite delicacy: leftover, raw, shortcrust pastry. They descend from my and my neighbours’ rooftops the second I step back from the bird table, and the food disappears in moments, in a cloud of flying feathers and squawking and pecking bills, the birds mingling too rapidly to count accurately.

One particularly convincing, if annoying, individual has perfected the art of reproducing a Buzzard‘s (Buteo buteo) mewing call, no doubt heard in more open country. Ever gullible, I rush into the garden each time it performs this trick, in the hope of adding the real thing to my “garden list”. So far, without success.

[The above was written some time ago, with the intention of emulating the Guardian’s Country Diary column. As such, it has exactly 200 words, not counting the subsequent addition of scientific names. These are marked up with the draft Species Microformat, which I developed, and which is already being used on Wikipedia.]

hAccessibility – Unhappy First Birthday

April 27, 2008

It’s one year today since Bruce Lawson and James Craig published “hAccessibility“, about the misuse of the ‘abbr’ element in microformats (an issue I first raised on 20 September 2006 in Accessify Forums).

As recent events show, the microformats cabal still has its collective head up its own^W^W^W in the sand.

Despite suggestions for a workaround, a solution seems no nearer, thanks to their apparent indifference. Shame on them.