#microformats 2017-05-30

2017-05-30 UTC
#
[shaners]
Sent to support@github.com
[cleverdevil], KartikPrabhu, davidmead, nitot and gRegorLove joined the channel
#
gRegorLove
The spec doesn't seem to say this, but I'm wondering if a dt-start has a tz offset and the dt-end does not, should the same tz be implied in the parsed results. E.g. https://github.com/indieweb/php-mf2/issues/126
#
Loqi
[sknebel] #126 Fails to recognize timezone in extra value-class-pattern-element
[colinwalker] joined the channel
#
KartikPrabhu
gRegorLove: my first reaction is that it should be left to the consumer and not the parser
#
steffanjackson
edited /get-started () "(-5419) mozilla Firefox customer service phone number"
(view diff)
#
gregorlove
edited /get-started (+5419) "rollback spam"
(view diff)
#
gRegorLove
!tell tantek I rolled back this spam, but could you block? https://chat.indieweb.org/microformats/2017-05-30#t1496129841951000
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
[steffanjackson] edited /get-started () "(-5419) mozilla Firefox customer service phone number"
#
KartikPrabhu
!tell tantek spam! ^
#
Loqi
Ok, I'll tell them that when I see them next
nitot, adactio, [colinwalker], rodolfojcj and ben_thatmustbeme joined the channel
#
sknebel
!tell gRegorlove: thanks for quick responses. Regarding timezones, there is this http://microformats.org/wiki/microformats2-parsing-issues#implied_date_for_dt_properties_both_mf2_and_backcompat which makes it read like the implied timezone from the value-class-pattern page could/should also be applied to mf2 parsng? If not, that would certainly be a nice feature-flag to have
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
microformats2-parsing-issues
#
sknebel
!tell gRegorLove: nevermind, it only talks about implied timezones on a different section of the page, so this really could use clarification (*not* implying timezones but implying dates (which php-mf2 already does) seems really odd)
#
Loqi
Ok, I'll tell them that when I see them next
#
Zegnat
I would say everything that is defined on dt-start carries over to dt-end, including tz info? (Is that what this is about?)
#
sknebel
yes, but it doesn't clearly say that
#
@gemmaVNash
@microformats any idea why http://www.bgs.ac.uk/staff/profiles/0077.html won't download to vcf? I've used the latest h-card syntax. Thanks!
(twitter.com/_/status/869553410219151360)
#
Zegnat
Isn’t this up to consumers though? Or do mf parsers return normalised timestamps? I was under the impression that parsers should only return what was actually on the page (e.g. "end" would get value "21:00" not "2017-05-31T21:00+02:00")
#
Zegnat
Oh wow I somehow glanced over the very first paragraph.
#
Zegnat
face-palms
#
sknebel
happens. it took me ages to find and realize it applies as well
#
Zegnat
So dt-* values with only a time only happen when there isn’t a single dt-* including a date on the entire page?
#
Zegnat
Or what does “in that microformat” mean? That it is scoped to the current h-*?
#
sknebel
Zegnat: the latter, at least to my understanding
Garbee_ joined the channel
#
Zegnat
Oh, hmm, and it only does applied date when vcp is used. So if I do <abbr class="dt-end" title="21:00">9 o’clock</abbr> the mf2 parser must return only "21:00".
#
sknebel
that seems to be correct
#
Zegnat
seems iffy too, at least to me
#
sknebel
yes, I'm not sure why it is limited to vcp
#
Zegnat
So… assuming dt-start as per your issue:
#
Zegnat
<abbr class="dt-end" title="21:00">9 o’clock</abbr> = ["end"=>"21:00"]
#
Zegnat
<span class="dt-end"><abbr class="value" title="21:00">9 o’clock</abbr></span> = ["end"=>"2017-05-31T19:00"]
#
Zegnat
Actually, your current example wouldn’t get an implied date on the dt-end either, as it isn’t using vcp for dt-end
#
sknebel
... you are right
#
sknebel
and php-mf2 still does the implied date
#
sknebel
and I can't turn it into a vcp without adding another nested element
#
sknebel
*sigh*
#
Zegnat
Definitely a bug in php-mf2
#
sknebel
sounds like that's worth a more general issue, before I start complaining to more parsers about what they do
#
Zegnat
As per http://microformats.org/wiki/microformats2-parsing#parsing_a_dt-_property it should just return textContent of the element
#
Loqi
[Tantek Çelik] microformats2 parsing specification
#
Zegnat
Not so much a discussion of vcp (which is pretty clear) but on implied dates. Maybe implied dates should be removed from vcp and be moved to dt-* parsing?
#
sknebel
maybe, there'd be easier to find there as well...
#
sknebel
oh, for the implied timezone there already is an issue: https://github.com/microformats/microformats2-parsing/issues/4
#
Loqi
[tantek] #4 vcp: imply dates should also imply tz if needed
Garbee joined the channel
#
Zegnat
I am pondering how to writup an issue on implied dates in general. I can come up with examples, but not really a clear course of action
#
sknebel
make a gist or etherpad and let's discuss/interate there before filing it?
#
@marccold
The Scope Note Person ("The world's most welcome 'Well, actually...'!") The Vinegar Syndrome ("Jack Lemmon and I save your microformats!")
(twitter.com/_/status/869570510094573569)
#
Zegnat
Probably a good idea. My evening is pretty full though, so not sure I have time to sit down and look atit
#
@ankedesign
Wie gebruikt vaker microformats, en kan me vertellen tot in hoeverre v2 (.h-card) ondersteund wordt tov v1 (.vcard)? #halp
(twitter.com/_/status/869577594437554176)
#
sknebel
^^^ Zegnat you speak that language
#
Zegnat
Replied
#
sknebel
I saw, thx
#
sknebel
wasn't entirely sure about the meaning, and twitter translate button made it worse :P
#
Zegnat
They were asking how much support for v2 there is, compared to v1. So told them indieweb.org and W3 standards like Micropub are all v2, as well as parsers (with microformats.io link). If they do find a specific usecase for v1 I asked them to get in touch
#
sknebel
Zegnat++
#
Loqi
zegnat has 2 karma in this channel (54 overall)
tantek joined the channel
#
sknebel
Zegnat: seems like various parsers do the implicit date when they shouldn't
#
Zegnat
All or some?
#
Zegnat
Would have been easier if all of them just did it and we could write it up as a defacto standard
#
sknebel
seems like only the go one does it "correctly"
#
sknebel
(from the 5 ones on mf.io)
#
sknebel
3 of those have the timezone bug, the JS one does parse the timezone correctly and implies it onto dt-end
#
Zegnat
It looks like Go is written against https://github.com/microformats/tests/ ... I am guessing there are no (or little) tests on implied date data
#
sknebel
yes, I really have to submit a test PR for that
#
Zegnat
Is it true that Google’s format checker still only picks up vcard? https://twitter.com/ankedesign/status/869593368506105856
#
Loqi
[@ankedesign] @martijnvdven Ha, dank! Heb v2 gebruikt, maar twijfelde omdat bv o.a. de Google checker V2 niet herkent.
tantek, [shaners] and gRegorLove joined the channel
#
gRegorLove
Not sure about format checkers, but search still uses hReview
#
Loqi
gRegorLove: sknebel left you a message 4 hours, 35 minutes ago: thanks for quick responses. Regarding timezones, there is this http://microformats.org/wiki/microformats2-parsing-issues#implied_date_for_dt_properties_both_mf2_and_backcompat which makes it read like the implied timezone from the value-class-pattern page could/should also be applied to mf2 parsng? If not, that would certainly be a nice feature-flag to have
#
Loqi
gRegorLove: sknebel left you a message 4 hours, 1 minute ago: nevermind, it only talks about implied timezones on a different section of the page, so this really could use clarification (*not* implying timezones but implying dates (which php-mf2 already does) seems really odd)
#
gRegorLove
I've got the VCP timezone fix working locally. Will run some more tests and PR today or tomorrow.
#
aaronpk
gRegorLove++ on a roll
#
Loqi
gregorlove has 8 karma in this channel (138 overall)
#
sknebel
and what I forgot to link in the !tells, there is an issue for timezones in it as well https://github.com/microformats/microformats2-parsing/issues/4
#
Loqi
[tantek] #4 vcp: imply dates should also imply tz if needed
#
tantek
perks up
#
Loqi
tantek: gRegorLove left you a message 3 days, 19 hours ago: More spam :/ https://chat.indieweb.org/microformats/2017-05-26#t1495834694682000
#
Loqi
tantek: gRegorLove left you a message 2 days, 19 hours ago: We were wondering about the reasoning for "html-lang" instead of just "lang" here: http://microformats.org/wiki/index.php?title=microformats2-parsing-brainstorming&diff=prev&oldid=65421
#
Loqi
tantek: gRegorLove left you a message 9 hours, 41 minutes ago: I rolled back this spam, but could you block? https://chat.indieweb.org/microformats/2017-05-30#t1496129841951000
#
Loqi
tantek: KartikPrabhu left you a message 9 hours, 37 minutes ago: spam! ^
#
tantek
oh boy
#
tantek
edited /Special:Log/block () "blocked [[User:Sabnajauzzz]] with an expiry time of infinite (account creation disabled): Spamming links to external sites"
(view diff)
#
gRegorLove
o/ tantek. Sorry there aren't happier tells :)
#
tantek
gRegorLove: wow they started putting "." in words to avoid the regexes!!!
#
gRegorLove
/get-started was quickly re-spammed after I reverted
#
tantek
like t.ech s.upport wtf
#
tantek
edited /Special:Log/block () "blocked [[User:Steffanjackson]] with an expiry time of infinite (account creation disabled): Spamming links to external sites"
(view diff)
#
tantek
gRegorLove: did you implement https://github.com/microformats/microformats2-parsing/issues/4 ? could you comment there?
#
Loqi
[tantek] #4 vcp: imply dates should also imply tz if needed
#
gRegorLove
Re: https://chat.indieweb.org/microformats/2017-05-30#t1496153320060000 yeah, it does seem like the non-VCP dt-* parsing should imply from last seen dt-*
#
Loqi
[Zegnat] Oh, hmm, and it only does applied date when vcp is used. So if I do <abbr class="dt-end" title="21:00">9 o’clock</abbr> the mf2 parser must return only "21:00".
#
gRegorLove
tantek: I did not; raised the question about it last night; hadn't seen the issue yet.
#
gRegorLove
I can implement it pretty easily though.
#
gRegorLove
This is the issue I was referring to having fixed locally: https://github.com/indieweb/php-mf2/issues/126
#
Loqi
[sknebel] #126 Fails to recognize timezone in extra value-class-pattern-element
#
tantek
non-VCP dt-* implying could be both useful and dangerous (in terms of changing the content that's out there)
#
sknebel
tantek indeed
#
sknebel
but 4 parsers do it already
#
sknebel
out of 6 I tested
#
sknebel
(writing an issue about it right now)
#
tantek
oh that's interesting
#
tantek
that seems to imply that it's intended in the content then, I doubt that many parsers would do extra work to misinterpret content like that
#
tantek
sknebel: are you writing a parser issue to suggest adopting it as a parser change?
#
gRegorLove
on indieweb.org/events we pretty commonly use non-VCP dates with the date part implied in the dt-end.
#
sknebel
no, in microformats-parsing-issues to ask if it's supposed to be handled as bug in the parsers or maybe changed in mf2
#
Zegnat
I would guess it is seen as “intended” because very few end times use vcp, yet dt-end on events is where people expect the implied dates.
#
Loqi
[sknebel] #8 imply dates also outside vcp?
#
tantek
gRegorLove: html-lang and html-id to avoid confusing them with a possible actual property p-lang or p-id (which we don't have but might / could, especially from a vocabulary agnostic parser perspective)
#
tantek
is that worth adding to that brainstorm?
#
gRegorLove
tantek: Makes sense. Yeah, I'll add it there. That's released in php-mf2 now, btw, behind a feature flag.
#
tantek
ooh nice
#
gregorlove
edited /microformats2-parsing-brainstorming (+373) "/* Parse language information */ Q+A about html-lang, noted php-mf2 release with lang support"
(view diff)
#
@technololigy
@hikari_no_yume The entire TWEWY wiki has it, I mostly just use microformats these days
(twitter.com/_/status/869621439476908032)
tantek, AngeloGladding and Garbee joined the channel
#
gRegorLove
tantek: Looking at the lang parsing again, the "html-lang" key doesn't show up in properties, only within e-* objects and at the same level as "type" and "properties", so maybe the prefix isn't necessary?
#
aaronpk
that's what i was thinking
#
gRegorLove
And I think if it was ever expanded to allow parsing on individual properties, like p-name, we'd need to come up with some other solution
#
gRegorLove
*lang parsing
#
aaronpk
yeah, it's a little unfortunate it doesn't translate nicely for things like p-name
#
aaronpk
i think the closest you'd get is changing the value of the name property to an object like how e-content is parsed
#
aaronpk
so {"name":{"value":"foo","lang":"en":}}
#
gRegorLove
Yeah, so I don't think 'lang' and 'id' are at much risk of collision in the future
#
aaronpk
yeah it will never exist alongside vocab properties
[kevinmarks] joined the channel
#
gregorlove
edited /microformats2-parsing-brainstorming (+98) "link to github for current/new issues, wiki for resolved before 2016-06-20 issues"
(view diff)
tantek, pfefferle, [colinwalker], cyr_ and [cleverdevil] joined the channel
#
@carlmalamud
@cypresslaw @EJWalters Not sure. I think microformats, general consensus a better approach then canonical visual st… https://twitter.com/i/web/status/869671615247679488
(twitter.com/_/status/869671615247679488)
Garbee and [eddie] joined the channel