#microformats 2018-08-02

2018-08-02 UTC
NyanCat16, Caraway18, sawdey21, Croepha18, blacksyke7, nandub, LookingGlassSec, kameloso4, [miklb], Gizmokid20054, [snarfed], Mercster5, wsm, [ryan339], x49F, BruceS18, SakiiR21, neptune, [xavierroy], ^Phantom^, SKYWARN, cebor6, SWAT21, rs-afk, sscout12, BurningPrincess2, Xoc3, [matpacker], m4v29, xous12, CurryWurst4, uptime9, iambismark, __idiot__, rwg23, PolarizedIons26, DenSchub25, cooled, Guest54267, papabear69, ecks3, sjums, Guest41286, sscout24, danzilio6, abraxis, mort15, xCore, Zooklubba11, Netham454, bigbluehat, Phae, jrabe7, Corvus`28, Xgc27, myth0d20, adactio, Napsterbater, dougbeal|mb1, [kevinmarks], planetmaker17 and [dougbeal] joined the channel
jackjamieson joined the channel
#
@anvcscalar
↩️ I don’t think we’ll be adding Microformats2. RDFa serves our purposes and adding classes to the HTML would would add some bloat to already busy class declarations (since we used Bootstrap). ~Craig
(twitter.com/_/status/1025043108654792705)
[kim_landwehr] and [kevinmarks] joined the channel
#
[kevinmarks]
Bootstrap--
#
Loqi
bootstrap has -1 karma in this channel over the last year (-3 in all channels)
threeFifths, kiera22 and [metbril] joined the channel
#
aaronpk
it looks like the parser fails on <div class='e-content'></div>
#
aaronpk
writing a test case now
Guest71012 and beaky20 joined the channel
#
aaronpk
that should return a content property with an empty string, as opposed to not returning that property right?
#
gRegorLove
Throws that warning for me, but is getting the empty string
#
sknebel
http://pin13.net/mf2/?id=20180802162405855 does it, so whatever runs there is fine
#
gRegorLove
"Warning: DOMNode::appendChild(): Document Fragment is empty in..."
#
gRegorLove
Which we should fix, but I don't think that would lead to exceptions?
#
aaronpk
I think something in aperture changes php warnings into exceptions
vok` joined the channel
#
aaronpk
okay isolated the error into a test case
#
gRegorLove
I think putting line 856 inside `if ($innerNodes->hasChildNodes()) {}` would work
[ryan339] joined the channel
#
aaronpk
oh that's a little nicer than what I did
#
aaronpk
whoa no that doesn't work haha
#
gRegorLove
Haven't tested
#
aaronpk
ugh i'm gonna add an .editorconfig and commit a bunch of whitespace changes after this
[jgmac1106] joined the channel
#
aaronpk
oops I typo'd it before, you were right that worked
#
gRegorLove
I was thinking we should specify PSR-1 and 2, and an explicit choice on camelCase vars. I've been bad about the latter, myself.
#
aaronpk
probably a good idea
#
Loqi
[aaronpk] #187 fix for parsing empty e- elements
#
[jgmac1106]
[chrisaldrich] so no love from Scalar but they use a parser to convert html to RDF and include a JSON to RDF import https://github.com/anvc/scalar/tree/master/system/application/rdf
#
[jgmac1106]
I wonder if something similar could be done if we forked it. Could html->to mf2 be added... Or if we forked it just getting an hentry on each chapter and an author hcard in the html shouldn't be too hard... Building mf2 and bootstrap not messy at all
#
gRegorLove
aaronpk: Looks good. Can you add the explicit braces on the if?
#
gRegorLove
Good to go
GrapeNinja joined the channel
#
aaronpk
gonna do a release for this
#
aaronpk
actually gonna do the .editorconfig first
#
aaronpk
k, v0.4.5 is out
[aaronpk] and [iambismark] joined the channel
#
aaronpk
gonna try to update php.microformats.io
[kim_landwehr] joined the channel
#
aaronpk
hm no I don't think it's hooked up to deploy automatically
#
KartikPrabhu
someone should do that for mf2py too
#
KartikPrabhu
yeah, no auto deploy. you'll have to ask shaners
#
aaronpk
it's weird cause there is definitely a web hook to heroku configured in this repo
#
Loqi
[aaronpk] #10 Deploy updated version to php.microformats.io
#
Loqi
[gRegorLove] #19 Document how to deploy the subdomains
#
aaronpk
that's also a good idea
[pfefferle], [quinnvinlove], KartikPrabhu and [jgmac1106] joined the channel
#
@mrsekut
microformatsとAtomに関しては重要性が謎だったので、読み飛ばしたった
(twitter.com/_/status/1025093513086611461)
KartikPrabhu, [metbril], jackjamieson, [quinnvinlove] and snarfed joined the channel
jackjamieson, snarfed, [eddie] and [matpacker] joined the channel; snarfed left the channel
#
@nagahitoyuki
#Blogger の新テーマのContempoなどはarticleタグのclassに #hentry を追加するだけで、記事に #構造化データ の #Microformats がきっちり付く。Google推奨のJSON-LDがデフォルトで付いているけど、記事の全文は指定されない状態なので、やって #SEO効果 を確かめたくなった。https://www.nagahitoyuki.com/
(twitter.com/_/status/1025168688066916354)