#microformats 2017-05-16

2017-05-16 UTC
[kevinmarks], rodolfojcj, nitot, tantek, KartikPrabhu, [colinwalker], nitot_, [jeremycherfas], rMdes1 and [shaners] joined the channel
#
[shaners]
The old microformats repo has been transferred to me now. I’ll change up the settings and make a note in the readme, then transfer it over.
#
[shaners]
to the indieweb org
#
Loqi
[indieweb] microformats-ruby-old: Nothing quite yet, the future new home of the Microformats Ruby parser
[tamaracks] and KartikPrabhu joined the channel
#
Loqi
shaners has 4 karma in this channel (64 overall)
#
[shaners]
I’m working on a 3.1 branch now. I’ll push soon for review.
#
aaronpk
There was an old repo?
#
[shaners]
aaronpk There was a previous gem called “microformats” which is why I called the one that I started “microformats2". It’s repo was chrisjpowers/microformats. It was dormant, unmaintained and unfinished.
#
[shaners]
I asked him if he’d give them to us. He did.
#
[shaners]
microformats-ruby-old is transferred over (and renamed) for posterity. The README now says that it’s unmaintained and directs readers to the real parser.
#
[shaners]
Next up is a process to release the mf2 gem under the simpler name of just “microformats”.
#
aaronpk
i never noticed the new one was called "microformats2"
#
[shaners]
It’s not a huge deal. But it’s a little thing that always bugged me.
#
[shaners]
Especially now that it supports legacy microformats too, not just microformats2. ?
gRegorLove joined the channel
#
[shaners]
ben_thatmustbeme PR ready for your review when you have time https://github.com/indieweb/microformats2-ruby/pull/65
#
Loqi
[veganstraightedge] #65 Release 3.1 as a transition to renaming to microformats (4.0)
#
gRegorLove
Hmm, php-mf2 seems to be converting <br /> to <br></br> in the e-* html
#
aaronpk
for real? i feel like i would have noticed that
#
gRegorLove
Double-checking my markup...
#
gRegorLove
checks unmung
[shaners] joined the channel
#
[shaners]
Has there ever been any talk of having unified mf parser site?
#
[shaners]
i.e., parser.mf.org/ruby parser.mf.org/php parser.mf.org/python etc
#
gRegorLove
Looks like the issue is with DOMDocument::saveHTML
#
gRegorLove
[shaners]: iirc willnorris had a page with iframes running each of the parsers at last year's IWS.
#
[shaners]
any idea the url?
#
gRegorLove
Not offhand, but let me check
#
Zegnat
gRegorLove, ah, DOMDocument makes sense. I know it can require some extra string parsing for void elements.
sknebel_ joined the channel
#
gRegorLove
Zegnat: Yeah, had to do some workarounds to get a better "innerText" for php-mf2. Might have to do similar for this. https://github.com/indieweb/php-mf2/pull/82
#
Loqi
[gRegorLove] #82 Implemented @glennjones "innerText" parsing for better parsed whitespace
#
gRegorLove
[shaners]: Can't seem to find it. I would have expected it to appear on https://chat.indieweb.org/microformats/2016-06-05 if anywhere, but don't see it.
#
[shaners]
oh well
#
gRegorLove
I'll ask him on twitter
KartikPrabhu joined the channel
#
Loqi
[@willnorris] @gRegorLove https://willnorris.github.io/mf2compare/ though apparently the go server is down... I'll try and get that back up
tantek joined the channel
#
ben_thatmustbeme
re the <br> tag conversion, there is a similar problem in the ruby parser with <img /> tag, but only if you modify the tag
#
ben_thatmustbeme
at least thats the only place i saw an issue, didn't actually try it on the old one
#
ben_thatmustbeme
s/the old one/many tests
#
ben_thatmustbeme
its a 'feature'? of nokogiri that it automatically corrects your html to be current
#
[shaners]
I think so. At one point, it set out to match whatever Firefox did. Not sure if still stuff.
#
[shaners]
s/stuff/true/
#
[shaners]
Also, I think there is a flag you can un/set to correct un-well-formed markup or not. I think.
#
ben_thatmustbeme
[shaners]: re PR, should we also mention that they may need to change class names as well once 4.0 launches Microformats.parse instead of Microformats2.parse?
#
[shaners]
Good catch
#
[shaners]
I’ll add a commit
#
ben_thatmustbeme
don't see any way to turn it off
#
[shaners]
Ping @tenderlove on Twitter
#
[shaners]
Maybe I’m wrong
#
aaronpk
is it converting it to well-formed XML or HTML?
#
[shaners]
ben_thatmustbeme I just realized I was getting ahead of myself.
#
[shaners]
Should 3.1 be just a message that 4.0 is coming and this change message in 4.0?
#
[shaners]
Or should 3.1 include this whole message AND change class names?
#
ben_thatmustbeme
i see where you are going with it, its just an annoying change for some people i'm sure, and i want to make sure we get it right
#
ben_thatmustbeme
yeah, thats tough... hmm
#
[shaners]
I’m leaning toward, 3.1 shouldn’t breaking anything, only warn of the future and instruct how to move forward.
#
ben_thatmustbeme
ideally, can we make it so you can use either for 3.1?
#
[shaners]
Would you be willing to take on that aspect of 3.1?
#
[shaners]
PS. I’m working on a Ruby port of pin13.net.
#
[shaners]
Thanks.
#
[shaners]
You can reject my PR or build upon it. Either is fine by me.
#
aaronpk
oh nice, of the little parser form thingy?
#
aaronpk
sweet.
#
[shaners]
enter URL / html, get json
#
aaronpk
not that you need it, but if you're curious, the source code is here https://github.com/aaronpk/mf2-test
#
Loqi
[aaronpk] mf2-test: Small web page for displaying parsed microformats2
#
ben_thatmustbeme
actually, its super simple to do [shaners]
#
ben_thatmustbeme
both options
#
[shaners]
dealer’s choice
#
[shaners]
aaronpk What does “Save HTML” checkbox do?
#
aaronpk
creates a permalink with the HTML you enter
#
aaronpk
so it's like a gist for microformats
#
[shaners]
Oh i see. `?id=timestamp`
#
[shaners]
any reason you did a timestamp instead of a auto increment id? 1, 2, 3…
#
aaronpk
unguessable
#
[shaners]
what’s the danger of guessable?
#
aaronpk
or rather, less easily enumerable
#
aaronpk
just didn't want people to troll through the IDs to find stuff
#
ben_thatmustbeme
[shaners]: is the plan to release 3.1 and 4.0 basically simulataneously
#
ben_thatmustbeme
so i suppose this bit isn't needed, but it will allow people to do these steps in either order
#
ben_thatmustbeme
have to run, just pushed a change [shaners]
#
ben_thatmustbeme
to that branch
#
[shaners]
aaronpk Your labels could use a `for` attr to make them clickable. (On pin13.net)
#
aaronpk
good call. i always forget that
#
gRegorLove
Does pin13 clear saved parses after a period?
#
aaronpk
Not yet but I reserve the right to :-)
#
gRegorLove
Now I'm curious how many there are :)
#
aaronpk
There's a note on there that says they expire right?
#
[shaners]
i don’t see one
#
aaronpk
oh huh, i must be thinking of webmention.rocks
#
aaronpk
there's 12mb of data :)
#
aaronpk
658 items
#
aaronpk
since Dec 2015
[colinwalker] joined the channel
#
[shaners]
aaronpk Who controls the DNS for microformats.org?
#
[shaners]
Here is a Ruby port of pin13.net/mf2:
#
[shaners]
I would like to set up the DNS for it to live at ruby.microformats.org.
#
[shaners]
JSON URLs are similar to pin13's:
#
[shaners]
Presentation for saved HTML snippets is similar too.
#
Loqi
MxPx
#
Loqi
MxPx
KartikPrabhu joined the channel
#
gRegorLove
[shaners]++
#
Loqi
shaners has 5 karma in this channel (65 overall)
#
[shaners]
aaronpk How do you avoid getting blasted with spam on pin13?
#
gRegorLove
Looks nice! Appears it's not normalizing relative URLs, like the profile photo.
#
gRegorLove
Oh it's just the rendered HTML as-is. That's probably fine then
[chrisaldrich] joined the channel
#
[shaners]
gregorlove: correct
#
[shaners]
I didn’t think it was worth the effort to fix up the relative paths in displayed HTML
#
[shaners]
Take a look. If it’s good and you approve, I’ll release microformats2 3.1 a microformats 4.0 tonight.
#
Loqi
[veganstraightedge] #66 Rename and number from Microformats2 to Microformats (version bump to 4.0.0)
[kevinmarks] joined the channel