#microformats 2015-03-28

2015-03-28 UTC
KartikPrabhu, gRegor`, tantek, kylewm and alanpearce joined the channel
#
kylewm
Have a question. Parsing microformats to JSON is lossy wrt type information... urls, dates, and strings are all strings in the output. Is that by design? I.e. are the types meant to always be implied by the property name (e.g. in-reply-to is always a url)?
#
Loqi
kylewm: tantek left you a message 1 week, 5 days ago: I saw you mention earlier in the discussion about pronouns about different property names for different (human) languages - here's why we don't do that: http://microformats.org/wiki/faq#Q:_Why_do_microformats_use_English_terms_for_property_names.3F
#
tantek
kylewm: it's not that the type information is lossy, but rather that any type canonicalization is performed at parse time, such that the strings given are readily recognizable
#
tantek
hence URLs are made absolute, and dates are figured out etc.
#
kylewm
so in Woodwind, I don't yet recognize likes, reposts, bookmarks, etc. , but I was thinking a useful half-measure would be to show the unrecognized details at the bottom of the post
#
kylewm
so it would show the content and then <ul><li>like-of: <a href="...">...</a></li></ul> after it
#
kylewm
are you saying I would recognize links basically by "if it looks like a url, it's a url"?
#
tantek
more specifically http(s):// URLs
#
tantek
because if they were specified via "u-*" then they were made absolute
#
tantek
you're not going to see any relative URLs in the parsed JSON output
#
tantek
it's so reliable in fact that you can even assume it means there may be another top level object *at* that URL that you can treat as if it is the other end of the property
#
kylewm
and so it *is* by design that the u- p- dt- prefixes are parsing directives, and should not part of the semantic output?
#
tantek
e.g. the like-of: URL value likely has an h-entry at the top level!
#
kylewm
cool, that all makes sense
#
kylewm
thanks tantek
#
tantek
but it's also perfectly fine if someone happened to use p-* to specify an absolute URL
#
tantek
from your (consuming the parsed JSON output) perspective, it should not matter
alanpearce, KevinMarks__, KevinMarks_, eschnou, KartikPrabhu, KartikPrabhu1, tantek, Erkan_Yilmaz, elf-pavlik, tango_, chiui, gRegor`, kylewm and csarven joined the channel
#
@Ndlela21
CA$HCARD RT @LunkeH: Hha some gents are just lucky "@Mthigo_: When I grow up I wanna be like MLACA$H...the GOD!! http://t.co/vuXCBlhZH2"
(twitter.com/_/status/581900357191802882)
KevinMarks_ joined the channel
KevinMarks_ joined the channel
#
@ferry_rinaldi
Tips Memperbaiki Missing hCard Author, Update, dan Entry-Title di Webmaster Tools | Info Investasi | Akuntansi | http://t.co/WHkh0H3KwC
(twitter.com/_/status/581905817345134592)
KevinMarks_ joined the channel
eschnou, KevinMarks__, kylewm, KevinMarks_, edsu, Hixie, Erkan_Yilmaz and KevinMarks joined the channel
#
@21Nico_R
@JohnR_Hcard @MillosFCoficial Es que se saltaron la fecha 6, no se sabe si sería 6 u 8.
(twitter.com/_/status/581940722909204481)
KevinMarks_ and csarven joined the channel