#microformats 2018-03-16
2018-03-16 UTC
[kevinmarks] joined the channel
# [kevinmarks] I like that idea
# [kevinmarks] Also possibly making this something you could add to, do I could do things like the BBC recipes conversion
# KartikPrabhu [kevinmarks]: I was thinking this to be strictly spec conformant
# KartikPrabhu [kevinmarks]: are you thinking that there could be some external rules like your BBC conversion that can be passed to the parser as additional transformations?
# KartikPrabhu that could work
# KartikPrabhu I think if we broadly agree on the file format and if the phpmf2 guys are up for this then it might be owrth doing
tantek joined the channel
# tantek edited /code-tools (+1) "Reverted edits by [[Special:Contributions/Imran87h|Imran87h]] ([[User talk:Imran87h|Talk]]) to last version by [[User:Tantek|Tantek]]" (view diff)
# tantek edited /Special:Log/block () "blocked [[User:Imran87h]] with an expiry time of infinite (account creation disabled): spam in edit summary" (view diff)
tantek, [cleverdevil] and [eddie] joined the channel
# @cbfishes OK here is one last test before I finally go to sleep. Learning about #microformats, #indieweb, and #webmentions
Sometimes I wonder how I end up way down these rabbit holes
https://chrisbeckstrom.com/feed/2018/03/15/32/ (twitter.com/_/status/974496449894416384)
[miklb], tantek, [eddie], [cleverdevil], nitot, barpthewire, webchat373, [kevinmarks], Garbee, irlbd and webchat121 joined the channel
# webchat121 hello
barpthewire, [eddie], nitot and [cleverdevil] joined the channel
# KartikPrabhu here is how backcompat rules in json would look https://github.com/kartikprabhu/backcompat-rules
nitot and [tantek] joined the channel
# KartikPrabhu aaronpk: parser prefixes?
# KartikPrabhu yes I think, because you are supposed to parser them as such
# KartikPrabhu so entry-title is parsed as p-name not u-name for instance
# KartikPrabhu yes, which is why these rules are vocab specific
# KartikPrabhu yes and while backcompat parsing hentry the entry-title is parsed as a p-* into the value "name"
# KartikPrabhu yes so does the mf2py parser
# KartikPrabhu but according to these rules
# KartikPrabhu yup
# KartikPrabhu this is the easiest way we could come up with
# KartikPrabhu so the idea is to have a common repo with such rules so any parser can use them
# aaronpk looks easy to plug into the php parser: https://github.com/indieweb/php-mf2/blob/master/Mf2/Parser.php#L1715
# KartikPrabhu yeah, I think the mf2py rules were largely borrowed from the phpmf2 ones
# KartikPrabhu :P
# KartikPrabhu might work this into mf2py this weekend
[eddie] and [kim_landwehr] joined the channel
# KartikPrabhu I have no idea how to incorporate the rel-bookmark to u-url rule in hentry for this
nitot, bear_, Zegnet, MeanderingCode_, [eddie], [miklb], aaronpk, [cleverdevil] and [kevinmarks] joined the channel
# [kevinmarks] isn't that done with special case code?
# [kevinmarks] in unmung, I added an extra mapping specifically for the BBC recipe website: https://github.com/kevinmarks/unmung/blob/master/mf2py/backcompat.py#L97
# [kevinmarks] I like the idea of being able to pass in a mapping like that, for site specific translation
# KartikPrabhu [kevinmarks]: yes that could be done as an additional argument
# [kevinmarks] that would be cleaner than me bodging it
# [kevinmarks] I suppose you could have a domain match
KartikPrabhu, [eddie] and nitot joined the channel
# KartikPrabhu mf2py can now use JSON backcompat rules https://github.com/kartikprabhu/mf2py
[cleverdevil] and nitot joined the channel
# KartikPrabhu what regression?
# aaronpk notice the property p3k-drank here https://php.microformats.io/?url=https%3A%2F%2Faaronparecki.com%2Fdrank but not here https://pin13.net/mf2/?url=https%3A%2F%2Faaronparecki.com%2Fdrank
# KartikPrabhu oh no aaronpk has to rename p3k
# KartikPrabhu forcing the * to follow some rules is weird from the point of view of experimental/custom properties
# KartikPrabhu aaronpk: yeah mf2py does not check for those yet
# KartikPrabhu my initial reaction is to remove that rule
# KartikPrabhu it is weird that h-MyProject-article
# KartikPrabhu is not valid
# KartikPrabhu or p3k for that matter
# KartikPrabhu css frameworks also use u-* for utility classes so <shrug>
# gRegorLove pthreek? :)
# gRegorLove The strictness of that cleans up a lot of utility CSS that was getting picked up by parsers.
# KartikPrabhu no one consumes random classes through mf2 so I don't see the issue
# gRegorLove It was a spec update resolved at IWS 2016
# gRegorLove Sorry. That does suck. Not sure what to suggest :/
# gRegorLove Perhaps an exception to that spec for anything before the second hyphen?
# gRegorLove Yeah
# KartikPrabhu so h-p3k-Bumble is still invalid?
# KartikPrabhu this is going to get messy and regexy
# gRegorLove Naw, it's a really simple regex
# gRegorLove Good point
# KartikPrabhu i think -x- was for experimental properties
# KartikPrabhu not for namespacing
# Zegnat I don’t think the microformats philosophy of semantic class names wants any namespacing at all, KartikPrabhu. http://microformats.org/wiki/namespaces-considered-harmful
# KartikPrabhu i don't think these are namespacing in the XML sense
# KartikPrabhu more like custom properties
# KartikPrabhu no one needs to look up a namespace spec for u-p3k-drank
# KartikPrabhu if we are going to be that strict then we should have h-* where * is only a-z
# KartikPrabhu that does kill h-review-aggregate
# KartikPrabhu yeah but who consumes col1 through mf2 anyway!?
# KartikPrabhu as in what's the harm if they do show up?
# KartikPrabhu lol
# KartikPrabhu Zegnat: yeah I tihnk so
# gRegorLove KartikPrabhu: It's messy. Why parse things that were clearly not authored to be parsed as mf2?
# gRegorLove Present p3k discussion being the exception, of course
[snarfed], tantek and KartikPrabhu joined the channel
# KartikPrabhu gRegorLove: not sure what you mean by messy. Who cares if the parsed JSON is messy. Consumers will only use properties that they care about
# gRegorLove I think a better question is "why parse them?" The CSS in kevinmarks post is clearly design related and not something consumers will use.
# gRegorLove We had that implemented in Go at 2016. I don't think aaronpk was in the room when we went through open spec issues.
# tantek this is worth considering: https://chat.indieweb.org/microformats/2018-03-16/1521228053175200
# tantek and the intent is clear - for vendor prefixes http://microformats.org/wiki/microformats2#VENDOR_EXTENSIONS
# KartikPrabhu tantek: yeah I meant prefix not namespace in the sense you are saying
# KartikPrabhu tantek: mf2py does rel to property conversion but it is hard to put it into my JSON format
# KartikPrabhu Zegnat: the point is mf2 does not have any "namespace" in the sense of XML
# KartikPrabhu I agree with tantek here
# KartikPrabhu riht
# Zegnat Yes, I read that page, and I felt like the -p3k- was very close to the bound prefixes anti-pattern (http://microformats.org/wiki/namespaces-considered-harmful#bound_prefixes_are_an_anti-pattern).
# Zegnat Either just `drank` would have worked as the mf2 property. If that doesn’t work because aaronpk needs a separation between random all drank properties and his specific p3k-tool outputed properties, it feels very much to me like there is some implied format and the -p3k- implies some sort of namespace.
# KartikPrabhu night
# KartikPrabhu moving on from the namespace stuff, what is the prefered solution to the -p3k- problem?
# KartikPrabhu p3k-bug like the y2k-bug
# KartikPrabhu right this should be an issue on the parsing issues repo
# KartikPrabhu lol
# KartikPrabhu i know
# KartikPrabhu i usually walk away. this time I did use the wrong terminology
# KartikPrabhu reorganised mf2py code to do VCP in a separate code file for future sanity
# gRegorLove tantek: later today I can start a microformats2-parsing issue re: allowing numbers in the vendor prefix, unless you're already working on that.
[cleverdevil], echarlie, globbot, CaseD[m], vivus, [kevinmarks], sebsel, gRegorLove and tantek joined the channel