#microformats 2019-08-25
2019-08-25 UTC
#
@tw2113 New post set sail: Adding my own pronouns as part of potential microformats2 spec https://trxtp.com/62 (twitter.com/_/status/1165417479738249216)
KartikPrabhu, [tantek], mauz555, [KevinMarks], [Rose], [Michael_Beckwit, [bdesham], [asuh] and [snarfed] joined the channel
#
[tantek] [snarfed] just checked that jasonbriggs post and it has a u-url now to its permalink (as blog posts should). so the fix is to fix the h-entry in general. I think part of the answer here is to check any h-entry with the indiewebify h-entry validator and if it has errors, then blame/fix that first, before blaming anything else. Lots of things can fail when markup is bad

mauz555 joined the channel
#
KartikPrabhu its the second post here https://micro.blog/jasonrbriggs

#
KartikPrabhu not sure if that is a POSSE

#
[snarfed] m.b easily syndicates feeds. mine does the same: https://micro.blog/snarfed
[Michael_Beckwit, [jeremycherfas], IWSlackGateway1, gRegorLove, [dshanske], [Rose], [jgmac1106], GWG, [tantek], [bdesham], KartikPrabhu, [grantcodes] and [vendan] joined the channel; SebDiscord[m] left the channel
#
[vendan] spruced up my microformats parser comparison tool some: https://mf2.andyleap.dev
#
KartikPrabhu [vendan] if the goal is to compare the parsers then the accordian is a bit annoying since you can't have multiple ones open to compare

#
KartikPrabhu but otherwise looks neat

#
KartikPrabhu got it

#
KartikPrabhu so something like you pick a reference parser output and the others show the difference?

#
KartikPrabhu sounds good

#
vendan initial goal for this stuff is to serve as a tool for evaluating/refining https://github.com/microformats/tests
#
KartikPrabhu :thumbsup:

ingoogni, gRegorLove, [KevinMarks] and [vendan] joined the channel
#
[vendan] $output = Mf2\parse($html, 'http://example.com/');
#
[vendan] $output = Mf2\parse($html, 'http://example.com/');
#
aaronpk ah there's a flag to switch that https://github.com/microformats/php-mf2#generating-output-for-json-serialization-with-json-mode

#
KartikPrabhu welcome to the deep end of whitespace parsing :P

#
KartikPrabhu here's your life-guard Zegnat

#
KartikPrabhu yes. and mostly it was found to not be very useful

#
KartikPrabhu long story

#
KartikPrabhu not sure where it is documented

#
KartikPrabhu yes. which is also ambiguous enough

#
KartikPrabhu well, I don't understand the definition so...

#
KartikPrabhu here is another bunch of tests for whitespace while we were deciding the "correct" behaviour https://pin13.net/mf2/whitespace.html

#
KartikPrabhu yeah that turned out to be not useful/ideal in practice

#
KartikPrabhu [vendan]: yes. http://microformats.org/wiki/textcontent-parsing is a draft spec for it. not sure which parser is implementing it fully. Possibly phpmf2

#
KartikPrabhu mf2py might also be doing some parts of it. I have forgotten how much

#
KartikPrabhu the tests might not have any of this

[Michael_Beckwit joined the channel
#
KartikPrabhu [vendan]: maybe as a first pass ignore the whitespace diffs?

#
KartikPrabhu since the rest should be fairly speced out

#
KartikPrabhu aah so the tests probably do not test for some new stuff. like including the img alt and all that

#
KartikPrabhu oh hmm the mf2py you are using also does not do alt-text parsing, weird

#
KartikPrabhu oh that is still behind a flag in mf2py

#
KartikPrabhu [vendan]: why is php showing fail on the microformats-v1/geo/abbrpattern test?

#
KartikPrabhu it "looks" the same except for ordering

#
KartikPrabhu oh!! I totally mis-read the red part as being the "wrong part"

#
KartikPrabhu but "red = missing"

#
KartikPrabhu got it

#
KartikPrabhu also mf2py is not resolving the relative path for photos because those test don't have a base url

#
[vendan] I specify a base url for parsing of `http://example.com` for everything
#
KartikPrabhu aah so mf2py might not be doing it for those hmmm

#
KartikPrabhu that is a bug!

#
KartikPrabhu yup confirmed. you should file that bug at https://github.com/microformats/mf2py with the example

#
KartikPrabhu vendan++

#
KartikPrabhu there also seem to be conflicting datetime formats
