freenode :: #microformats

16 May 2017
17:08[shaners]The old microformats repo has been transferred to me now. Ill change up the settings and make a note in the readme, then transfer it over.
17:08[shaners]to the indieweb org
17:14[shaners]The repo is now at https://github.com/indieweb/microformats-ruby-old
17:14Loqi[indieweb] microformats-ruby-old: Nothing quite yet, the future new home of the Microformats Ruby parser
17:42ben_thatmustbemeshaners++
17:42Loqishaners has 4 karma in this channel (64 overall)
17:43[shaners]Im working on a 3.1 branch now. Ill push soon for review.
18:03aaronpkThere was an old repo?
18:05[shaners]aaronpk There was a previous gem called microformats which is why I called the one that I started microformats2". Its repo was chrisjpowers/microformats. It was dormant, unmaintained and unfinished.
18:05[shaners]I asked him if hed give them to us. He did.
18:06[shaners]microformats-ruby-old is transferred over (and renamed) for posterity. The README now says that its unmaintained and directs readers to the real parser.
18:06aaronpkohhh
18:07[shaners]Next up is a process to release the mf2 gem under the simpler name of just microformats.
18:07aaronpki never noticed the new one was called "microformats2"
18:07[shaners]Its not a huge deal. But its a little thing that always bugged me.
18:07[shaners]Especially now that it supports legacy microformats too, not just microformats2.
18:14[shaners]ben_thatmustbeme PR ready for your review when you have time https://github.com/indieweb/microformats2-ruby/pull/65
18:14Loqi[veganstraightedge] #65 Release 3.1 as a transition to renaming to microformats (4.0)
19:20gRegorLoveHmm, php-mf2 seems to be converting <br /> to <br></br> in the e-* html
19:20aaronpkfor real? i feel like i would have noticed that
19:21gRegorLoveDouble-checking my markup...
19:22gRegorLoveYeah http://pin13.net/mf2/?url=https%3A%2F%2Fgregorlove.com%2F2017%2F07%2Fmxpx%2F for https://gregorlove.com/2017/07/mxpx/, the <br> between the links
19:22* gRegorLove checks unmung
19:23gRegorLovemf2py on unmung gets it right: http://www.unmung.com/mf2?url=https%3A%2F%2Fgregorlove.com%2F2017%2F07%2Fmxpx%2F&html=&pretty=on
19:27[shaners]Has there ever been any talk of having unified mf parser site?
19:27[shaners]i.e., parser.mf.org/ruby parser.mf.org/php parser.mf.org/python etc
19:30gRegorLoveLooks like the issue is with DOMDocument::saveHTML
19:30[shaners]gRegorLove: Heres the Ruby parsing of your post. https://gist.github.com/veganstraightedge/d734b58dc439cd82262a8df1ca3eeaeb
19:31gRegorLove[shaners]: iirc willnorris had a page with iframes running each of the parsers at last year&#39;s IWS.
19:31[shaners]any idea the url?
19:32gRegorLoveNot offhand, but let me check
19:32ZegnatgRegorLove, ah, DOMDocument makes sense. I know it can require some extra string parsing for void elements.
19:34gRegorLoveZegnat: Yeah, had to do some workarounds to get a better &quot;innerText&quot; for php-mf2. Might have to do similar for this. https://github.com/indieweb/php-mf2/pull/82
19:34Loqi[gRegorLove] #82 Implemented @glennjones &quot;innerText&quot; parsing for better parsed whitespace
19:36aaronpkick
19:36gRegorLoveyyyyeah
19:39gRegorLove[shaners]: Can&#39;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&#39;t see it.
19:39[shaners]oh well
19:41gRegorLoveI&#39;ll ask him on twitter
19:49[shaners]nbd
20:10gRegorLove[shaners]: https://twitter.com/willnorris/status/864572818222063617
20:10Loqi[@willnorris] @gRegorLove https://willnorris.github.io/mf2compare/ though apparently the go server is down... I&#39;ll try and get that back up
20:12[shaners]grool
20:22ben_thatmustbemere the <br> tag conversion, there is a similar problem in the ruby parser with <img /> tag, but only if you modify the tag
20:23ben_thatmustbemeat least thats the only place i saw an issue, didn&#39;t actually try it on the old one
20:23ben_thatmustbemes/the old one/many tests
20:24ben_thatmustbemeits a &#39;feature&#39;? of nokogiri that it automatically corrects your html to be current
20:25[shaners]I think so. At one point, it set out to match whatever Firefox did. Not sure if still stuff.
20:25[shaners]s/stuff/true/
20:26[shaners]Also, I think there is a flag you can un/set to correct un-well-formed markup or not. I think.
20:28ben_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?
20:29[shaners]Good catch
20:29[shaners]Ill add a commit
20:30ben_thatmustbemehttp://www.nokogiri.org/tutorials/ensuring_well_formed_markup.html
20:30ben_thatmustbemedon&#39;t see any way to turn it off
20:30[shaners]Ping @tenderlove on Twitter
20:30[shaners]Maybe Im wrong
20:31aaronpkis it converting it to well-formed XML or HTML?
20:32[shaners]ben_thatmustbeme I just realized I was getting ahead of myself.
20:33[shaners]Should 3.1 be just a message that 4.0 is coming and this change message in 4.0?
20:33[shaners]Or should 3.1 include this whole message AND change class names?
20:33ben_thatmustbemei see where you are going with it, its just an annoying change for some people i&#39;m sure, and i want to make sure we get it right
20:33ben_thatmustbemeyeah, thats tough... hmm
20:34[shaners]Im leaning toward, 3.1 shouldnt breaking anything, only warn of the future and instruct how to move forward.
20:34ben_thatmustbemeideally, can we make it so you can use either for 3.1?
20:34[shaners]Would you be willing to take on that aspect of 3.1?
20:35ben_thatmustbemesure
20:35[shaners]PS. Im working on a Ruby port of pin13.net.
20:35[shaners]Thanks.
20:36[shaners]You can reject my PR or build upon it. Either is fine by me.
20:36aaronpkoh nice, of the little parser form thingy?
20:36[shaners]yep
20:36aaronpksweet.
20:36[shaners]enter URL / html, get json
20:36aaronpknot that you need it, but if you&#39;re curious, the source code is here https://github.com/aaronpk/mf2-test
20:36Loqi[aaronpk] mf2-test: Small web page for displaying parsed microformats2
20:36[shaners]thx
20:37ben_thatmustbemeactually, its super simple to do [shaners]
20:37ben_thatmustbemeboth options
20:38[shaners]dealers choice
20:39[shaners]aaronpk What does Save HTML checkbox do?
20:39aaronpkcreates a permalink with the HTML you enter
20:39aaronpkso it&#39;s like a gist for microformats
20:39[shaners]Oh i see. `?id=timestamp`
20:40[shaners]any reason you did a timestamp instead of a auto increment id? 1, 2, 3
20:40aaronpkunguessable
20:40[shaners]whats the danger of guessable?
20:40aaronpkor rather, less easily enumerable
20:41aaronpkjust didn&#39;t want people to troll through the IDs to find stuff
20:41[shaners]ok
20:43ben_thatmustbeme[shaners]: is the plan to release 3.1 and 4.0 basically simulataneously
20:43ben_thatmustbeme?
20:43[shaners]yep
20:44ben_thatmustbemeso i suppose this bit isn&#39;t needed, but it will allow people to do these steps in either order
20:44[shaners]yep
20:46ben_thatmustbemehave to run, just pushed a change [shaners]
20:46ben_thatmustbemeto that branch
20:46[shaners]thx
21:15[shaners]aaronpk Your labels could use a `for` attr to make them clickable. (On pin13.net)
21:15aaronpkgood call. i always forget that
21:21gRegorLoveDoes pin13 clear saved parses after a period?
21:22aaronpkNot yet but I reserve the right to :-)
21:23gRegorLoveNow I&#39;m curious how many there are :)
21:23aaronpkThere&#39;s a note on there that says they expire right?
21:24[shaners]i dont see one
21:24aaronpkoh huh, i must be thinking of webmention.rocks
21:25aaronpkthere&#39;s 12mb of data :)
21:25[shaners]sheesh
21:26aaronpk658 items
21:26aaronpksince Dec 2015
22:09[shaners]aaronpk Who controls the DNS for microformats.org?
22:17[shaners]Here is a Ruby port of pin13.net/mf2:
22:17[shaners]https://microformats-ruby-parser.herokuapp.com
22:17[shaners]I would like to set up the DNS for it to live at ruby.microformats.org.
22:18[shaners]JSON URLs are similar to pin13&#39;s:
22:18[shaners]https://microformats-ruby-parser.herokuapp.com/microformats?url=https%3A%2F%2Fveganstraightedge.com%2Farticles%2F2017%2F04%2F25%2Flightheaded-all-day-long
22:21[shaners]Presentation for saved HTML snippets is similar too.
22:21[shaners]http://pin13.net/mf2/?id=20170516222016313
22:21[shaners]https://microformats-ruby-parser.herokuapp.com/submissions/1
22:21LoqiMxPx
22:21LoqiMxPx
22:21[shaners]HA!
22:31gRegorLove[shaners]++
22:31Loqishaners has 5 karma in this channel (65 overall)
22:32[shaners]aaronpk How do you avoid getting blasted with spam on pin13?
22:32gRegorLoveLooks nice! Appears it&#39;s not normalizing relative URLs, like the profile photo.
22:33gRegorLoveOh it&#39;s just the rendered HTML as-is. That&#39;s probably fine then
23:04[shaners]gregorlove: correct
23:04[shaners]I didnt think it was worth the effort to fix up the relative paths in displayed HTML
23:05[shaners]ben_thatmustbeme https://github.com/indieweb/microformats-ruby/pull/66
23:05[shaners]Take a look. If its good and you approve, Ill release microformats2 3.1 a microformats 4.0 tonight.
23:05Loqi[veganstraightedge] #66 Rename and number from Microformats2 to Microformats (version bump to 4.0.0)
17 May 2017
No messages
   
Last message: 94 days and 3 hours ago