#microformats 2018-03-14
2018-03-14 UTC
[tantek], [cleverdevil] and tantek joined the channel
#
KartikPrabhu tantek: there was a lot of VCP datetime discussed would be great to have your input

#
KartikPrabhu I can try

#
KartikPrabhu according to http://microformats.org/wiki/value-class-pattern#Basic_Parsing if there is only one value element then the datetime value is parsed as usual i.e.

#
KartikPrabhu so <span class="dt-published"><abbr class="value" title="humdinger"></abbr></span> would give published = ["humdinger"]

#
KartikPrabhu but if the date is specified using many value element then it switches to http://microformats.org/wiki/value-class-pattern#Date_and_time_parsing which then checks for validity of the date and time

#
KartikPrabhu so sometimes the datetime validity is checked and other times it isn't

#
KartikPrabhu so the question was basically: why do such complicated VCP parsing for datetimes at all

#
KartikPrabhu yes that is what I thought

#
KartikPrabhu VCP seems to exist mostly for some backcompat reasons no?

#
KartikPrabhu hmm

#
KartikPrabhu but then why not check validity of the example <span class="dt-published"><abbr class="value" title="humdinger"></abbr></span> would give published = ["humdinger"] ?

#
KartikPrabhu so parsers should check validity of any dt-* property and ignore if not valid?

#
tantek KartikPrabhu: nothing about http://microformats.org/wiki/value-class-pattern#Date_and_time_parsing says many vs single

#
KartikPrabhu tantek: see point 3 in http://microformats.org/wiki/value-class-pattern#Basic_Parsing

#
KartikPrabhu the date-time parsgin in only triggered on multiple value descendents

#
KartikPrabhu otherwise 2 applies

#
KartikPrabhu but that is only triggered on 3.2 step in http://microformats.org/wiki/value-class-pattern#Basic_Parsing

#
KartikPrabhu otherwise it is never triggered

#
KartikPrabhu 3.2 is the only place that sends you to "datetime parsing rules" and 3.2 is only triggered when "multiple descendents "

#
KartikPrabhu oh!

#
tantek http://microformats.org/wiki/value-class-pattern#Date_and_time_parsing provides additional rules for any use of "value"

#
KartikPrabhu oh then that is confusing

#
KartikPrabhu Zegnat thought only 3.2 triggered the date time parsing rule

#
KartikPrabhu because that shows up as a substep of 3

#
tantek nothing about http://microformats.org/wiki/value-class-pattern#Date_and_time_parsing says any such limitation

#
tantek whereas http://microformats.org/wiki/value-class-pattern#Date_and_time_parsing is at the same level in the spec as "Basic Parsing" and thus has just as much weight

#
KartikPrabhu maybe better to have a 2.5 which says the same thing as 3.2 ?

#
KartikPrabhu this is fine since both phpmf2 and mf2py interpret it as what you are saying

#
KartikPrabhu aah yeah 1.5 is also fine

#
KartikPrabhu wait you mean 5 not 1.5

#
KartikPrabhu tantek: there is also this one https://github.com/microformats/microformats2-parsing/issues/24

#
KartikPrabhu are you using decimals instead of list numbering ;P

#
KartikPrabhu ok :)

#
KartikPrabhu yeah adding that would be clear. and also parser compatible with phpmf2 and mf2py

#
tantek oh dear we have 5 open issues here http://microformats.org/wiki/value-class-pattern-issues#Open_Issues

#
tantek wait I already did note that! http://microformats.org/wiki/index.php?title=value-class-pattern-issues&diff=65666&oldid=38566

#
KartikPrabhu ok

KartikPrabhu and [cleverdevil] joined the channel
tantek, [miklb] and nitot joined the channel
#
gRegorLove tantek: Hah, that edit^ is spam in the revision comments, not in the page :)

#
gRegorLove Filed a small clarification issue: https://github.com/microformats/microformats2-parsing/issues/27

#
Zegnat sknebel, I see you closed https://github.com/microformats/microformats2-parsing/issues/11 but did that require any clarification in the spec to make sure new implementers do not create conflicting parsers again?

[tantek] joined the channel
[kevinmarks], Kyle-K and Garbee joined the channel
#
aaronpk https://pin13.net/mf2/ is updated to 0.4.0!

#
aaronpk xray.p3k.io is updated too! look how nice this checkin with no p-name looks now :D https://xray.p3k.io/parse?url=https%3A%2F%2Fdavid.shanske.com%2F2018%2F03%2F04%2F1821%2F

#
@swentel Tagged the first alpha release of the Indieweb module for Drupal 8. Includes webmentions, publishing, microformats, comment creation and micropub. Let's get the party started! https://www.drupal.org/project/indieweb #indieweb #drupal (https://realize.be/notes/1245) (twitter.com/_/status/973910639537254400)
#
Zegnat Discuss, is this example microformats object in JSON valid? https://www.w3.org/TR/micropub/#nested-microformats-objects-p-6

#
Zegnat It does not pass my schema (https://gist.github.com/Zegnat/65ed9a9fb0546fb8c4aa0c0b790b8a40) because the nested microformats do not have a separate plain text “value” property.

barpthewire, nitot and [kevinmarks] joined the channel
#
[kevinmarks] that example using summary instead of name feels a bit off

#
[kevinmarks] ah, I think of it as name is short, summary is medium, content is long, and we did have it so that there was almost always a name becasue of implied name.

#
[kevinmarks] your distinction makes sense too

nitot, [cleverdevil] and tantek joined the channel
#
Zegnat [cleverdevil], if you have any thoughts after working on tests and schemas I would love to get your opinion here: https://github.com/microformats/microformats2-parsing/issues/22

CaseD[m], [pfefferle], [eddie], nitot and [tantek] joined the channel
nitot, [eddie], tantek and [cleverdevil] joined the channel
[pfefferle] and rodolfojcj joined the channel
#
sknebel for the logs, filed https://github.com/indieweb/php-mf2/issues/151
[eddie] joined the channel
#
KartikPrabhu looks good on mf2py

[cleverdevil] joined the channel
#
tantek highly recommended as something you could submit to https://foundation.mozilla.org/opportunity/global-sprint/

#
KartikPrabhu is there a HTML parser in Rust already? otherwise one would ahve to build that

[kevinmarks] joined the channel
#
KartikPrabhu tantek: vcp question if free

#
KartikPrabhu or anyone for that matter

#
KartikPrabhu here the "value" element is a descendent but not a child so phpmf2 (and mf2py) don't seem to parse it violating to VCP rule http://microformats.org/wiki/value-class-pattern#Basic_Parsing 2.

#
KartikPrabhu tantek: modification of an example in the VCP parsing

#
KartikPrabhu ok fair

#
KartikPrabhu then I guess not many things use much of VCP anymore

#
KartikPrabhu I for one have not seen much of any VCP in indieweb usage that my site encounters

#
gRegorLove KartikPrabhu, pin13.net/mf2/ has v0.4.0 now btw

#
KartikPrabhu !tell tantek: here you go simplified real world example http://pin13.net/mf2-dev/?id=20180314234440988 from http://microformats.org/wiki/events/2009-06-26-microformats-4th-bday#summary. note the dtstart is not parsed

[tantek] joined the channel
#
KartikPrabhu mf2py gives start = ["06"]

#
KartikPrabhu not sure which is correct

#
gRegorLove YYYY isn't valid for the date part

#
KartikPrabhu yes I know

#
KartikPrabhu I think phpmf2 is doing the correct thing

#
KartikPrabhu according to spec but not according to intention of the markup

#
gRegorLove Gotcha

#
gRegorLove I wonder what the state of VCP was when that wiki vevent was authored

#
KartikPrabhu who knows. it is an example in the wild though :P

#
[kevinmarks] can someone check https://github.com/microformats/tests/pull/84
