#microformats 2018-09-12
2018-09-12 UTC
[keithjgrant] and [jgmac1106] joined the channel
#
@onasusweb Pourquoi les microformats sont importants pour la SEO #ecommerce #prestashop #seo #php #webdev #symfony #vuejs #css #javascript #git #woocommerce #opencart #magento https://www.onasus.com/pourquoi-les-microformats-sont-importants-pour-la-seo/?utm_source=ReviveOldPost&utm_medium=social&utm_campaign=ReviveOldPost (twitter.com/_/status/1039697517884198914)
[schmarty], [iambismark], [tantek], gRegorLove, [mrkrndvs], nitinkhanna, hober2, nitot_, indy, [kevinmarks], astilla, [jgmac1106], barpthewire, jgmac1106, jgmac1106_, ben_thatmustbeme, tantek__, dougbeal|mb1, jackjamieson, [keithjgrant], vulpixies and nitot joined the channel
#
KartikPrabhu sknebel: this is for mf2py 127 bug?

#
KartikPrabhu I'm looking at that too

#
KartikPrabhu no but have an idea why u-url stays https://github.com/microformats/mf2py/blob/master/mf2py/backcompat.py#L157

#
KartikPrabhu since geo is a mf1 root class (at least in the mf2py thing) the u-url does not get removed

#
KartikPrabhu then since a h-geo is added I think it gets parsed as mf2

#
KartikPrabhu and gets the implied name

#
KartikPrabhu one possible solution to try is to remove "h-geo" from here https://github.com/microformats/mf2py/blob/master/mf2py/backcompat-rules/vcard.json#L84

#
KartikPrabhu which might be added back due to https://github.com/microformats/mf2py/blob/master/mf2py/backcompat-rules/geo.json#L3

#
KartikPrabhu since "geo" is never removed, you can probably just delete the "h-geo" and it should work

#
KartikPrabhu this backcompat stuff is very non-local and mf2py is trying to do it in a local way without knowing the whole DOM structure

#
KartikPrabhu I suppose that can be used as a fix unless some other bug comes up

#
KartikPrabhu possibly try some backcompat where "geo" is only replaced by "p-geo" but I don't think that exists

#
KartikPrabhu might want to change and test vevent too https://github.com/microformats/mf2py/blob/master/mf2py/backcompat-rules/vevent.json#L22

#
KartikPrabhu hmm now I am not sure why the vevent and vcard geo replacements have different formats :P

#
KartikPrabhu vevent has a single string but vcard has two

#
KartikPrabhu I wrote that so I am confused :P

#
KartikPrabhu possibly. they both work exactly the same. so feel free to change around

#
KartikPrabhu no basically moved the previously existing built-in rules from mf2py to json and added/edited from spec

#
KartikPrabhu right now it is implementation I think

[jgmac1106] joined the channel
#
gRegorLove reads back

#
KartikPrabhu sknebel: aah ok. I think I didn't go 100% by spec at the time

#
KartikPrabhu yeah the initial rules were from php-mf2 but were built into the backcompat.py file. I moved them to the JSON

#
KartikPrabhu the idea being that we have a common set of rules that all parsers could probably use and share

#
gRegorLove Did I remove something incorrectly?

[eddie] joined the channel
#
gRegorLove Likewise for h-review-aggregate that I'm working on; I reviewed still-published hReview-aggregate examples as a starting point for backcompat

[jgmac1106] and [eddie] joined the channel
#
KartikPrabhu I don't think there are any publishing cases for the "special" stuff in hReview backcompat unless gRegorLove actually found some

#
gRegorLove hReview or hReview-aggregate?

#
KartikPrabhu hReview. you commented on that issue that you were looking at the examples :P

#
KartikPrabhu long time ago though

#
gRegorLove which issue?

#
gRegorLove ah

iwaim joined the channel
#
sknebel not sure about http://microformats.org/wiki/h-entry#Parser_Compatibility "author" right now
#
KartikPrabhu right. so "author" -> "p-author h-card"

#
KartikPrabhu yeah. It is a bit strangely worded since all mf2 properties are ignored. So "absence of h-card" part is weird

#
KartikPrabhu there is a "vcard" -> "h-card" too so I don't think it breaks anything

#
KartikPrabhu yeah no implied name in backcompat

#
KartikPrabhu right^

#
KartikPrabhu might be better to not put the "h-card" in the "author" for hentry backcompat if there are uses-cases which fail

#
sknebel so what's the correct result from https://github.com/microformats/mf2py/blob/master/test/examples/backcompat/hentry.html ?
#
KartikPrabhu sknebel: "correct" according to "spec" or expected?

#
KartikPrabhu I am sure mf2py is doing the spec on this one

#
KartikPrabhu as for "Expected" I have no idea

#
KartikPrabhu though a "p-author" without an additional "h-card" seems better for this case

#
KartikPrabhu but I don't consume a lot of mf1 stuff so <shrug>

#
KartikPrabhu sknebel: yes that is related to the 127 issue

#
KartikPrabhu right

#
KartikPrabhu one way to "fix" that would be to replace "h-card" here https://github.com/microformats/mf2py/blob/master/mf2py/backcompat-rules/hentry.json#L26 with a "vcard" and then let the "vcard" backcompat do its thing

#
gRegorLove Looks like Go parser doesn't add the h-card in that mf2py test linked above

#
KartikPrabhu sknebel: sure. but these are separate issues

#
gRegorLove Ahh

#
gRegorLove That would explain it :)

#
KartikPrabhu issue 1: mf2py is not doing nested backcompat due to these rules. issue 2: is "author" -> "p-author h-card" the expected thing to do

#
gRegorLove Well, it does some... gets h-entry with author, content, and name properties

nitot_ joined the channel
#
KartikPrabhu sknebel: maybe start an issue on https://github.com/microformats/microformats2-parsing with that example

#
Loqi [microformats] microformats2-parsing: For collecting and handling issues with the microformats2 parsing specification: http://microformats.org/wiki/microformats2-parsing

#
KartikPrabhu mf2py can be easily fixed if it changes

[schmarty], tantek__, [jgmac1106] and nitot joined the channel