#microformats 2011-02-21

2011-02-21 UTC
tobyink, kennyluck, GasbaKid, iwaim, iwaim__, matthewrankin, csarven, Hey_neken, mkaply and gym_jane joined the channel
#
gym_jane
hi all
#
gym_jane
any microformat ninjas around?
#
gym_jane
can you microformat a blog post?
#
singpolyma
gym_jane: you mean hAtom?
#
gym_jane
hmm i have no idea tbh
#
gym_jane
lol
#
gym_jane
its a wordpress blog
tantek joined the channel
#
csarven
gym_jane You may be able to find an existing microformats theme/plugin for WP. I don't know what state they are in however. Have your HTML output something like this: <div class="hentry"><h1 class="entry-title">Hello World!</h1><div class="entry-content"><p>My first post.</p></div><p>Written by <span class="vcard"><span class="fn">Jane Smith</span></span> on <span class="published"><span class="value">2011-02-21</span></span>
#
Phae
the sandbox theme was a pretty decent out-of-the-box starter with microformatty niceness
#
Phae
i assume it's 3.0+ compat
#
tantek
csarven - you don't actually need the <span class="value"> markup. just the "published" span is enough (with the ISO datetime inside)
#
csarven
tantek I see. I thought this value/value-title was the preferred method nowadays.
#
tantek
you only need value/value-title if you're duplicating the content with human and machine readable variants
#
csarven
I personally still use <abbr class="published" title= :)
#
tantek
the *preferred* method is to not duplicate the content
#
tantek
which, if you just use internationally human-readable ISOdates - work just fine
#
tantek
csarven - the abbr is fine if you *only* put the date
#
tantek
in the title
#
tantek
if you're putting a full iso datetime - then you're causing accessibility problems for some folks.
#
tantek
(in the title attribute)
#
tantek
you can still use abbr - for dates and times, but that's when you need to use class="value" and separate abbr elements for date and time
#
tantek
Phae, I just restarted apache btw
#
Phae
thanks
#
tantek
site seems to be back up - I couldn't find anything obvious in the error log that would indicate why it went down.
#
Phae
:/ odd
#
tantek
edited /parsers (-196) "Reverted edits by [[Special:Contributions/Leifnsn|Leifnsn]] ([[User talk:Leifnsn|Talk]]) to last version by [[User:TobyInk|TobyInk]]"
(view diff)
#
tantek
edited /Special:Log/block () "blocked [[User:Leifnsn]] with an expiry time of infinite (account creation disabled): Spamming links to external sites"
(view diff)
adactio joined the channel
#
phae
edited /admins (+1) "email update"
(view diff)
#
phae
edited /admins (+1) "can't even spell my own name, apparently :)"
(view diff)
#
tantek
hober, we should finalize plans for the microformats dinner/drinks on Tuesday
#
tantek
last we chatted I think we were chatting about moving the venue from 21A (since we've gone there a lot) to Naan 'N Chutney in the Lower Haight, followed by Toronado afterwards - does that still sound good to you?
#
Phae
don't over do it. you've gotta save yourselves up for the one I can actually come to :)
#
Phae
aw @ whoever added me as a special guest star on the event page
#
Phae
checks history
GasbaKid, jkridner and SimonW joined the channel
#
SimonW
Quick easy question: if I'm microformatting up something that's in Austin, what do I put after the Z ?
#
SimonW
(hate hate hate timezones)
#
tantek
SimonW - you don't use Z if you want to markup Austin's timezone
#
tantek
SimonW - also - is NatBat on here? Could you ask which docs in particular " are NOT clear at all" in reference to this tweet: https://twitter.com/Natbat/status/39764301744971777
#
tantek
would love to know which wiki pages she found unclear so we can improve them
#
SimonW
she was talking about this one http://microformats.org/wiki/datetime-design-pattern
#
tantek
note the note at the top of that page
#
SimonW
linked to from the hcalendar-cheetsheet page, which links to that for the "(ISO date)" text
#
SimonW
yes, that note makes things even more confusing!
#
tantek
apparently insufficient to indicate the page is out of date?
#
tantek
ah cheatsheet ok
#
tantek
now I understand how you got there
#
SimonW
is the value-class pattern supported by any of the microformats ecosystem tools yet?
#
SimonW
it doesn't look like h2v handles it
#
SimonW
and we were worried about Google's microformats parser as well
#
tantek
X2V, Google, and Operator all support value class pattern
#
SimonW
great, that's good to hear
#
tantek
edited /hcalendar-cheatsheet (-58) "unlink date-time-design until we have fixed that page - sending people there doesn't help."
(view diff)
#
SimonW
any hints on how can we represent a time of an event that's in Austin, complete with timezone?
#
tantek
edited /value-class-pattern (+241) "Google has parsed value-title since January 2010 as part of hCalendar parsing for rich snippets, split consuming/publishing tools"
(view diff)
#
tantek
wonders when http://austin.adactio.com/ will get updated
#
tantek
SimonW - do you have a sample URL to an event that's in Austin to use as a real world example?
#
tantek
oh and regarding "is the value-class pattern supported by any of the microformats ecosystem tools?" see: http://microformats.org/wiki/value-class-pattern#Implementations
#
SimonW
http://lanyrd.com/2011/sxsw/sgkp/ is an example event
#
tantek
edited /value-class-pattern (+308) "/* FAQ */ add FAQ re: Is the value-class pattern supported from SimonW in IRC, clean up a few prev Qs."
(view diff)
#
tantek
SimonW - your presenting of times and dates looks similar to the 2nd example documented here: http://microformats.org/wiki/hcalendar-authoring#Separate_dates_and_times
#
tantek
but as @ginader has pointed out on twitter, using abbr for the full datetime presents accessibility problems. abbr *just* for date is ok though (since ISOdates are the most internationally human usable/readable/accessible date format)
#
tantek
so the key is, do you know what the timezone offset from Z is for that event?
#
SimonW
no!
#
SimonW
well, it's 6 hours from UTC
#
SimonW
but... I'm not sure how to deal with daylight savings time
#
SimonW
(which, incidentally, changes half way through SXSW, just to make things extra tricky0
#
tantek
you have to know that in your backend - the timezone offset for any particular event
#
tantek
timezone offset is essentially just a number (+/-)
#
tantek
(there are places in the world with fractional timezones
#
tantek
but we'll leave that for later for the moment)
#
tantek
as far as how to deal with DST, you're going to need to keep track of location/city and their DST offset per time of year (start here for fun: http://en.wikipedia.org/wiki/Daylight_saving_time )
#
tantek
this may be more useful for programming: http://en.wikipedia.org/wiki/Zoneinfo
#
tantek
edited /value-excerption-value-title-test (+207) "see value-class-pattern instead"
(view diff)
#
tantek
edited /opening-hours-examples (+1211) "fixed up intro and suggestions for clearly paths forward, added issues to the only proposal so far"
(view diff)
#
tantek
edited /opening-hours-examples (+127) "add related"
(view diff)
SimonW, GasbaKid and Morphous joined the channel