#microformats 2015-02-18

2015-02-18 UTC
tantek and caseorganic joined the channel
#
jcarver
edited /job-listing-examples (+1) "url typo fix"
(view diff)
KartikPrabhu joined the channel
#
@scarlettxstitch
Raging myself after ordering £20 worth of embroidery threads from Sew&So only to remember I have £20 on my @Hobbycraft Hcard 😢
(twitter.com/_/status/567868994813829120)
KartikPrabhu and tjgillies joined the channel
#
tantek
edited /hcard-brainstorming (+111) "/* Post vCard 3 additions */ note section out of date"
(view diff)
acegiak joined the channel
#
acegiak
tantek: so which heading SHOULD i be proposing new fields under?
#
tantek
acegiak - the page I thought existed doesn't - fixing now :)
#
Loqi
tantek: pfefferle left you a message on 2/16 at 2:47am: someone at the channel asked… I only forwarded it to you… I think it was because of better discovery…
#
Loqi
tantek: pfefferle left you a message on 2/16 at 3:42am: the discussion depending the profile-uris http://logs.glob.uno/?c=freenode%23microformats&s=6+Feb+2015&e=6+Feb+2015
#
acegiak
ok lol
KartikPrabhu joined the channel
#
tantek
edited /h-card (+251) "additions - h-card-brainstorming"
(view diff)
#
acegiak
edited /h-card-brainstorming (+373) "adding preferred pronouns proposal"
(view diff)
#
acegiak
tantek: imbad at wikis but its there now in some form
#
tantek
acegiak - no problem at all - adding some text content is the key
#
tantek
edited /h-card-brainstorming (+349) "/* Preferred Pronouns */ code formatting, provide alternative singular thinking of separate pronouns, note use of -x- for experimental properties"
(view diff)
#
tantek
edited /h-card-brainstorming (+8) "explicit TOC"
(view diff)
#
tantek
also, for experimenting with properties, we use -x- as a prefix
#
tantek
if you're going to keep the concept of p-pronouns, please use p-x-pronouns for the class name
#
acegiak
can do!
#
tantek
thank you for contributing this to the wiki
#
tantek
I have a vague feeling that I've seen some sort of pronoun preference on another site before
#
tantek
perhaps Flickr?
#
acegiak
ill update to the three separate fields model once im back home
#
acegiak
its more useful to parsers
KartikPrabhu joined the channel
#
tantek
and that point (the three separate fields) you'll need to talk to some folks who are more experts in language/linguistics to see if there are commonalities across languages of types or pronouns
#
tjgillies
Im kinda at a loss what to markup software as in microformats2. For example I'm making a link to microformats wiki but its not a person or organization so i'm hesitant to use h-card, and it's not really a tangible product so I'm hesitant to use h-product
#
tjgillies
ah
#
tantek
"at a loss" usually means don't bother to mark it up with anything more
#
tjgillies
h-item looks promising
#
tantek
though asking is a good approach!
#
tantek
h-item on its own is not really useful
#
tantek
that's kind of the point
#
tjgillies
tantek: I must semantically define all the things.
#
tantek
every element is potetially an items of some sort
#
tantek
tjgillies: semantic definitions absent use-cases lead to useless abstractions
#
tantek
be lazier ;)
#
tjgillies
tantek: I am obsessed with useless abstractions, thats why it's going on my personal site in the first place ;)
#
tantek
oh dear
#
tjgillies
I'm trying to get a nice rendering of my site as json with microformats2 parser
#
tjgillies
I want it to include all salient links
#
tantek
hah - be sure to use -x- for anything experimental!
#
tantek
or if you just want to express custom properties yourself
#
tantek
you can also use a "vendor" prefix
#
tantek
e.g. your irc nick
#
tjgillies
class="vendor:tjgillies-foo"?
#
tantek
e.g. p-tjgillies-…
#
tjgillies
ah
#
tantek
like vendor prefixes in CSS
#
tjgillies
I don't know that much css. I stay away from that hell
#
tantek
similarly for h-tjgillies-*
#
tjgillies
woo
#
tjgillies
the parser parsed my custom class
#
tjgillies
does a happy dance
#
tjgillies
tantek++
#
Loqi
tantek has 151 karma
#
Loqi
woot
#
tantek
glad it worked tjgillies
#
tantek
microformats2 extensibility for experimentation FTW!
#
tjgillies
there is now h-tjgillies-mbti muhahahaha
#
tjgillies
in case anyone is curious
#
tantek
tjgillies: love it - experimenting with your own site and markup!
#
tantek
tjgillies++
#
Loqi
tjgillies has 13 karma
#
tjgillies
is rel=me for things that I own or things related to me?
#
tjgillies
like should I use rel=me for my company site
#
tantek
tjgillies: rel=me is for other representations of *you*
#
tantek
not for things (whether you own or related to you)
#
tantek
I mean, unless you say a car you own is "you"
#
tjgillies
we are one, therefore all is rel=me
#
tjgillies
heh
#
acegiak
tjgillies: rel="mine" ?
#
tjgillies
acegiak: sure. Can we just add any value we want or is it good form to stay within the values listed on the wiki?
#
acegiak
im just throwing things around
#
tjgillies
that tends to be dangerous ;)
#
tantek
acegiak: except rel values are nouns - so you'd be saying that the destination of that link is a "mine" of you
#
tantek
which would only really make sense if you were a mountain or a hillside
#
acegiak
tantek: my initial research on pronouns suggests that having p-pronoun-[pronoun form] should work pretty well cross language?
#
tantek
acegiak: neat! can you document some URLs from your research accordingly in that section?
#
tantek
oh I was going to check mediawiki
#
tantek
tommorris would know
#
tantek
if mediawiki has a pronoun preference somewhere
#
acegiak
tantek: ive just read the wikipedia article :P
#
tantek
acegiak: good enough! link to it
#
tantek
How do you prefer to be described?
#
tantek
(*) (I prefer not to say)
#
tantek
( ) She edits wiki pages
#
tjgillies
microformat all the things! http://note.io/1BkWDIO
#
tantek
( ) He edits wiki pages
#
tantek
goodness!
#
tantek
edited /h-card-brainstorming (+350) "/* Preferred Pronouns */ Pronouns Prior Art / Mediawiki"
(view diff)
#
acegiak
link added
#
tantek
research added
#
tantek
edited /h-card-brainstorming (+6) "/* Preferred Pronouns */ linebreaks added for readability"
(view diff)
#
tjgillies
should vendored classes be kabob-case or camelCase?
#
tjgillies
like class="h-tjgillies-irc-network" or class="h-tjgillies-ircNetwork"
#
tantek
haha never heard of kabob-case before that's amazing but yes that
#
tantek
tjgillies: I believe I wrote a blog post somewhere about why you should always use lowercase letters in class names
#
tjgillies
ok. thanks
#
tantek
it might be more than 10 years old
#
tjgillies
tantek: thanks
kez_ and pfefferle joined the channel
#
pfefferle
good morning
tantek, eschnou, Soopaman, acegiak, krendil and alanpearce joined the channel
#
tommorris
tantek: MediaWiki does have pronoun preferences. there is the ability in templates to use the user’s stated gendered pronoun preference. also, on WP, I have a JS gadget that shows me the user’s stated gender using the ♀ and ♂ symbols.
#
tommorris
edited /gender-examples (+224) "adding MediaWiki"
(view diff)
#
tommorris
tantek: ^^ documented
eschnou, adactio, pfefferle, Acidnerd, alanpearce, KartikPrabhu, kez_, netweb, jgarber, TallTed, gRegor`, csarven, mettekou, tantek and LindsayMac joined the channel
#
LindsayMac
I have a quick question if anyone is around. I am looking at using microdata or microformats for my events website I am creating. \
#
LindsayMac
for microformats do I have to wrap the whole list of events in some type of scoper the way I would with mircodata ?
#
tantek
welcom LindsayMac!
#
tantek
no need to wrap the list for microformats
#
tantek
you can just markup each one as an h-event
#
tantek
and microformats are a lot less markup than microdata
#
LindsayMac
tantek: yea I am seeing that
#
LindsayMac
is there any pit falls or cons to using microformats over microdata?
#
tantek
LindsayMac not that I know of
#
tantek
a few folks for some reason prefer to use to 4 or so *different* microdata attributes, instead of simple microformats class names because of some odd bias against the class attribute
#
tantek
but that's the only "complaint" I've heard so far
#
LindsayMac
hm ok..
#
tantek
and it seem a matter of opinion / taste - not functionality
#
LindsayMac
in terms of it's use among search engines... they all kind of view and weigh them similarly?
#
tantek
in all other ways, microformats are easier (less to learn), faster (less markup to add)
#
tantek
yes, search engines treat such data the same no matter what syntax they get it from
#
LindsayMac
awesome....
#
tantek
though I think they tend to prefer visible markup (microformats / microdata / RDFa in the body) over *invisible* meta tags (e.g. OGP, Twitter Cards, Dubline Core)
#
tantek
because invisible meta tags lie and rot more often
#
LindsayMac
yea that makes sense.
#
tantek
like meta keywords is pretty much useless
#
LindsayMac
yea that I know.. thats kind of why i hae been keeping an eye on microformats/microdata but havent really had a great project to start it on. This event manager, however, is pretty perfect
#
LindsayMac
hEvent seems to be a new one though.. right?
#
LindsayMac
"still in draft"
#
tantek
the microformats 'drafts' are actually quite well established
#
tantek
and supported / used
#
LindsayMac
ok good
#
tantek
we just tend to be a bit conservative about calling something a 'standard' :)
#
LindsayMac
so hCalendar has mostly been replaced with hEvents?
#
LindsayMac
k.. thats where I was going with it
#
tantek
and it says how to also include the hCalendar class names for backward compat if you want: http://microformats.org/wiki/h-event#Publisher_Compatibility
#
tantek
which, frankly, even if you do include both h-event and the hCalendar class names, it's *still* less work and smaller than microdata
#
tantek
g2g breakfast, bbiab.
#
LindsayMac
and I dont have to put anything in my header
#
LindsayMac
to tell it to use events / etc
#
LindsayMac
ok
#
tantek
no - zero <head> / header / metacrap :)
#
LindsayMac
awesome
#
LindsayMac
this should go quickly in this case
#
LindsayMac
I am a but confused on the "duration" option for hevents... are they looking fro how many hours the event lasts or how many days it repeats?
KartikPrabhu and kez_ joined the channel
#
LindsayMac
if I have my events grouped by DATE where the container has the date for the event, how can I pass that to my events within that group without actually having to display it?
#
LindsayMac
my structure is something like this: https://gist.github.com/Lindsayanng/2c282d97e1ee388b41d4
#
LindsayMac
I would have thought that the addition of datetime="2013-06-30 12:00" to my HTML element would make it ignore what is between the tags and read the machine readable version better?
#
LindsayMac
but it seems to be ignoring that
#
LindsayMac
kylewm: yes
#
LindsayMac
well.. i tried it.. not in that example but i tried it with time and didnt see a difference in how it was reading it
#
tantek
LindsayMac: duration does tend to confuse people, and people rarely publish events by "duration". more often just start and end times, so mark those up and you're good. ignore duration unless you're explicitly already publishing it visibly.
#
LindsayMac
maybe I need to re-test that
#
kylewm
<time class="dt-start" datetime="2013-06-30 12:00">12:00</time> should work
#
tantek
LindsayMac: you say "how it was reading it" <-- what are the "its" in that sentence?
#
tantek
and kylewm is correct - the <time> element was specifically designed for that
#
tantek
huh - I know for a fact that php-mf2 supports the time element so that is odd
#
LindsayMac
Im going to retest
#
LindsayMac
can you take a look and tell me whats wrong? https://gist.github.com/Lindsayanng/d6168d18f17f1f3a2ccc
#
LindsayMac
i mean, I test it and all i get is 1200
#
LindsayMac
=OMG
#
LindsayMac
TYPO!
#
LindsayMac
stupid.. I added date-time instead of datetime
#
LindsayMac
it is kind of hurting my head how much this is complicating my otherwise clean markup.. i couldnt imagine if i went withmicrodata instead
#
LindsayMac
one last question for today.. the h-event ... can it also be hevent?? or does it NEED the dash in the class name to trigger it to be read as a microformat?
alanpearce, KartikPrabhu, krendil and KartikPrabhu1 joined the channel
#
kylewm
LindsayMac: I believe you are running up against the difference between microformats1 and microformats2
#
kylewm
it needs to have the hyphen to be mf2
#
LindsayMac
ok got it
#
tantek
LindsayMac - see the minimal backcompat example here: http://microformats.org/wiki/h-event#Publisher_Compatibility
#
tantek
for the precise root class names
#
tantek
i.e. class="h-event vevent"
#
tantek
and keep asking good questions!
#
tantek
thanks so much!
Soopaman, hectorMcSpector and pfefferle joined the channel