#microformats 2017-05-27

2017-05-27 UTC
davidmead, [eli_oat] and cheim joined the channel
#
@jsonfeed
@thatcks @jen20 @GetEventStore Some folks say why not a straight mapping to RSS or Microformats. We tried to learn… https://twitter.com/i/web/status/868313194028290051
(twitter.com/_/status/868313194028290051)
[shaners] joined the channel
#
Loqi
[veganstraightedge] #7 Add bootstrap styles to views
gRegorLove, [colinwalker] and [kevinmarks] joined the channel
davidmead and [eli_oat] joined the channel
#
aaronpk
the microformats tests are on packagist now! https://packagist.org/packages/mf2/tests
#
aaronpk
[shaners] awesome, i will look at that after i deal with php-mf2
#
aaronpk
hmm this is not how i thought the experimental language parsing was suppose to work
#
aaronpk
which other parsers support lang parsing?
#
sknebel
the JS ones have an experimental flag for it as well
#
Loqi
[glennjones] microformat-shiv: A light weight cross browser JavaScript microformats parser
#
aaronpk
i think i need to move this behind a feature flag
#
aaronpk
:sigh: doing the php 5.4 dance again
GWG joined the channel
#
aaronpk
v0.3.2 is released!
#
aaronpk
Next up: updating pin13.net
#
@psyrax
@WPCDMX esperando gente para preguntas de amp, microformats y AdSense en la entrada. #wcmx :D
(twitter.com/_/status/868499846415646723)
#
aaronpk
[shaners] what's the utf8=✓ parameter for?
#
aaronpk
gonna assume it was copypasta from rails and get rid of it
davidmead joined the channel
#
aaronpk
huh, i didn't seem to have any trouble without that
#
Zegnat
I have never personally had issues with that either. But I have seen people add it to URLs before.
#
aaronpk
[shaners] the php page is all updated for you! I also made it store data in redis so that it can run on heroku! i have a copy running at https://microformats-php.herokuapp.com/ but i'll shut that down as soon as you deploy to yours!
#
aaronpk
whoa something just triggered archive.org to crawl that
#
aaronpk
[shaners] oh and i'm happy to add a web hook for auto deploying to heroku if you want
KartikPrabhu and [shaners] joined the channel
#
[shaners]
aaronpk Correct. utf8=✓ is a railsism. The JSON URLs work without too.
#
[shaners]
For your heroku deploy, what bits did you have to flip to enable Redis?
#
aaronpk
it was a setting in the heroku admin somewhere
#
aaronpk
heroku has gotten nice. i didn't have to use the command line at all to deploy
#
[shaners]
Yeah. the php add Just Worked. only threw a warning about the version. @willnorris Go parser app Just Worked too. Also warned about a goversion not being set. But they’ve really got deploys figured out these days.
#
[shaners]
Like this?
#
aaronpk
hm no i didn't have to do that
#
aaronpk
lol i don't know where i enabled redis
#
[shaners]
Can you look at your dashboard to see?
#
[shaners]
How do I test if redis is working?
#
[shaners]
in the php app, i mean
#
aaronpk
check if you can save html and view a permalink
#
aaronpk
o.O it just works
#
[shaners]
Awesome
#
aaronpk
maybe it knows because it's declared in composer.json
#
[shaners]
Aaaaand you just spoiled my big surprise announce of https://microformats.io ?
#
aaronpk
oooops
#
[shaners]
¯\_(ツ)_/¯
#
aaronpk
well you already included links to it in the PR that is live on https://pin13.net/mf2/
#
[shaners]
So. Everyone, I built a simple introduction to Microformats page/site at https://microformats.io
#
aaronpk
oops no ssl there yet
#
KartikPrabhu
[shaners]: yeah gives "secure connection failed"
#
KartikPrabhu
http works
#
[shaners]
hmm. thought i already did that.
#
[shaners]
one sec.
#
[shaners]
Heroku provides free auto updated HTTPS via Let’s Encrypt now for paid dynos.
#
[shaners]
`heroku certs:auto:enable`
#
sknebel
shaners++
#
Loqi
shaners has 9 karma in this channel (70 overall)
#
[shaners]
HTTPS is on now
#
[shaners]
Srsly. Heroku makes my ops life soooo much better.
#
KartikPrabhu
:thumbsup:
#
[shaners]
and easier
#
[shaners]
So. In addition to the the one page intro, I have deploy 3 parser sites as subdomains. (PHP, Ruby, Go). kylewm is working on packaging the python one up this weekend to be Heroku friendly.
#
[shaners]
And I need to reach out to glenn, bc his Node site is more complex than the other lang parser sites.
#
[shaners]
For now, http://node.microformats.io and http://python.microformats.io redirect to their respective homes.
#
Zegnat
That’s awesome for testing, [shaners]!
#
Zegnat
[shaners]++
#
Loqi
shaners has 10 karma in this channel (71 overall)
#
Zegnat
Is there an all.microformats.io ?
#
[shaners]
https://go.microformats.io has a pending Bootstrappy PR for the UI, bringing it closer to PHP’s and Ruby’s.
#
[shaners]
There is not. What were you imaging would go there?
#
[shaners]
Also, when kylewm sends his python Heroku app along, I’ll PR it for Similar UI too.
#
[shaners]
So, that way whichever someone uses, the experience will be the same/similar.
#
sknebel
aaronpk: I saw you added a failing test case to php-mf2 for the empty-properties. given that we have the same bug right now in the JS parsers, maybe that should be added to the main test collection (microformats/tests repo) as well?
#
sknebel
(*parser. singular. it's the same parser, just differently wrapped)
#
Zegnat
I would expect something like http://johnmacfarlane.net/babelmark2/ [shaners]: a way to compare the parsers
#
aaronpk
sknebel: yeah definitely. Feel free to PR it to the tests repo
#
[shaners]
zegnat: willnorris has mf2 comparerer site somewhere, but i’ll prolly reimplement it as a page on the site instead of another subdomain. .io/compare or something like that.
#
[shaners]
exactly
#
[shaners]
And I’m especially proud of the little tagline copy that I wrote: Meaningful HTML
[jeremycherfas], KartikPrabhu, [tamaracks], [eddie], gRegorLove and [eli_oat] joined the channel
#
gRegorLove
aaronpk: Regarding https://github.com/indieweb/php-mf2/issues/96#issuecomment-304457341 I think that html-lang should be a property of the h-entry since the h-entry has lang=sv?
#
Loqi
[aaronpk] @gRegorLove I'm looking at the parsed result and it looks like it's including an `html-lang` property in the wrong place. ```html <div class="h-entry" lang="sv" id="postfrag123"> <h1 class="p-name">En svensk titel</h1> <div class="e-content...
#
aaronpk
it looks like the brainstorming section never adds anything to the "properties" object
#
gRegorLove
True, looks like the first parse example on http://microformats.org/wiki/microformats2-parsing-brainstorming#Parse_language_information puts it at the same level as the properties, but I'm not sure that makes sense.
#
Loqi
microformats2 parsing brainstorming
#
aaronpk
why not?
#
aaronpk
it's not a property of the h-entry so it shouldn't go in properties
#
gRegorLove
It's on the h-entry, why isn't it a property?
#
aaronpk
it's not part of the vocab
#
gRegorLove
Ok, starting to make more sense as I look at it more
#
Loqi
En svensk titel
#
gRegorLove
Look right?
#
aaronpk
i think so
#
aaronpk
double check with the node parser maybe?
#
aaronpk
i don't remember the reasoning for using html-lang vs just lang
#
gRegorLove
I don't either. Checking the history
#
Loqi
microformats2 parsing brainstorming
[eddie] joined the channel
#
gRegorLove
!tell tantek 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
Ok, I'll tell them that when I see them next
#
Loqi
microformats2 parsing brainstorming
#
aaronpk
What other kind of lang is there?
#
aaronpk
Seems unnecessary
#
gRegorLove
hreflang I guess, but don't think a use has been identified for that in parsed results
#
aaronpk
all the data come from the HTML so no need to specify that
#
gRegorLove
microformat-shiv parses as "lang"
#
gRegorLove
Which I think is enough for us to mirror in php-mf2.
#
aaronpk
I'd say do that for now just so they're consistent. I still want to leave it behind a feature flag anyway
#
gRegorLove
Sounds good
#
aaronpk
Hm I should add a checkbox for that on pin13
#
Loqi
[gRegorLove] #124 Fix parsing of lang attribute
#
aaronpk
gRegorLove++
#
Loqi
gregorlove has 6 karma in this channel (135 overall)
#
aaronpk
guess i should do another point release :)
#
gRegorLove
If you want to wait a bit, I have more we can put in it
#
gRegorLove
Unless it's urgent, I guess
#
gRegorLove
Working on adding rel-urls object
#
aaronpk
if it wasn't behind a flag i'd say it'd be urgent
#
aaronpk
i'm fine waiting
#
aaronpk
those sound like good features to release together
#
gRegorLove
ooh, pin13.net/mf2 looks great
#
aaronpk
shaners++
#
Loqi
shaners has 11 karma in this channel (72 overall)
#
gRegorLove
Huh, interesting. I just noticed php-mf2 and mf2py include "alternates" object but it's not on /microformats2_parsing. Appears it was dropped from the spec in favor of rel-urls 2 years ago: http://microformats.org/wiki/microformats2-parsing-issues#drop_alternates_collection
#
Loqi
microformats2-parsing-issues
#
gRegorLove
Should I put it behind a deprecated flag or something? Don't want to break it if anyone's consuming it
#
aaronpk
oh huh
#
gRegorLove
Apparently you were/are consuming alternates. :) https://indieweb.org/irc/2015-06-01/line/1433195247005
#
Loqi
[aaronpk] i'd rather use rel-urls
#
aaronpk
looks like I was using it in Monocle, which isn't active anymore
#
aaronpk
we're on version 0.3.2 right now, and dropping alternates would be considered a breaking change, which would mean releasing that would bump the major version number
#
aaronpk
tho i suppose since we're still in major version 0, it'd be okay to do a backwards incompatible change
#
gRegorLove
microformat-shiv doesn't have alternates in result.
#
aaronpk
how about we release 0.4 with: rel-urls enabled, alternates dropped by default but can be enabled with a flag, and lang as is where it can be turned on with a flag
#
gRegorLove
That sounds good
#
aaronpk
i'd like to get to 1.0 once the lang stuff is stable
#
gRegorLove
Man, php-mf2 is growing up
reidab joined the channel
#
GWG
I really wish a function to flatten was built into php-mf2
#
aaronpk
what do you mean flatten?
#
GWG
To turn it into something more like jf2. Although that is sort of out of scope.
#
aaronpk
yeah that's not the job of the parser
#
aaronpk
XRay is a library now, so you can always use that
#
GWG
It would be nice if it was part of the package though.
#
Loqi
[barnabywalters] php-mf-cleaner: Takes microformats2 array structure and makes it more sane. Counterpart to indieweb/php-mf2
#
GWG
I might consider discarding my work on it in favor of yours.
#
gRegorLove
Definitely recommend using php-mf-cleaner
#
GWG
So, why not bundle that in the mf2 package itself?
#
gRegorLove
Because it's utilities, not part of the parsing spec
#
aaronpk
I prefer XRay's approach over php-mf-cleaner
#
GWG
I understand. I just think it would be easier to have utilities around the parser.
#
aaronpk
and both are basically language-level APIs consuming the parsed result, rather than part of the parsing
#
KartikPrabhu
it is a good idea to keep mf2 parsing and consuming/cleaning etc... separate
#
KartikPrabhu
since the consuming/cleaning depends on the particular consumption use
#
gRegorLove
Hm, should php-mf-cleaner composer.json require php-mf2? I think then you could just `composer require barnabywalters/mf-cleaner` and have them both
#
GWG
I considered bundling part of XRay in my work, but there are reasons I don't.
#
aaronpk
gRegorLove: that sounds reasonable
[shaners] joined the channel
#
[shaners]
Aaronpk if I add you to the heroku app, you wanna set up post commit deploy to heroku?
[eli_oat] joined the channel