[jgmac1106], KartikPrabhu, tantek and [davidmead] joined the channel
#[davidmead]i noticed `h-cite` is being used as a wrapper for the album title and artist in Known Listen plugin. is that a correct use? doesn’t feel like it
#aaronpki suppose technically a consumer should be able to use the "value" string there, but I doubt anyone's code is prepared for that
#cjwillcockthat date stuff may need to be hidden behind an option to make this useful for others, but for my immediate use, I wanted the familiar PHP built-in Dates
#aaronpkPHP does a fine job of re-creating the object using new DateTime("2018-12-13T14:54:29-05:00"), so i'm not sure why you'd need it broken out like that
#cjwillcocki think you misunderstand -- that is a json_encode(new DateTime('...'))
#aaronpkthis was one of the reasons the original ruby library was so frustrating to work with
#cjwillcockcertainly, I haven't done the json_encode part yet
#cjwillcockin there, I planned to removed the artifacts that we are discussing
#cjwillcockhowever, this may be a nice 'hidden' feature for you (and others), given the Date is already allocated
#cjwillcockyou helped me arrive to that perspective, discussing the JSON as being a bad form to use for those golden tests
#cjwillcockso I stopped being restricted by what was in the JSON format, and just went with what was going to make working with this easier/faster down the way
#aaronpki'd have to think through some of my code to figure out if it would actually be easier to use this way
#cjwillcockI do implement the MF2 parsing rules for dates, IIRC, and those are currently showing as values
#cjwillcockhence I could easily include a parser option to use the normal style
#aaronpkmy inclination is it's not, because i rarely actually use the parsed mf2 tree directly. for example most of my code is actually using XRay, where XRay is the one that uses the output of this parser. I also often serialize things as JSON to stash on disk or in a database, and I want that to "just work"
#cjwillcockI'm quite happy to make 'good enough for Aaron' my next milestone :D
#cjwillcockmust run, but appreciate convo - to be continued
#[davidmead]Tantek so every link could be marked up h-cite in that case? What would be a "nonsense h-cite"?
#[tantek]If there’s nothing consuming it, any markup is likely nonsense
#[tantek]Keep asking yourself, why are you doing the work? If you don’t have a very concrete answer with direct user benefits then you’re likely wasting your time better spent on something with actual user benefits
#[davidmead]true. that’s why i asked. guess i should also check in #known just in case something is consuming it internally, or it’s needed for POSSE etc.
#cjwillcock!tell aaronpk I updated https://mf2.w6k.ca - both issues we discussed are fixed (false-positive backcompat items; experimental properties on dt)
#cjwillcockI think the ship has sailed on this 'unreleased' thing - but need the weekend ahead to make a 0.1.0 release
#cjwillcockmost of those tests I touched started failing with the switch to PHP-7.3 (IIRC). A different representation of timezones started appearing in the output there. Better left as an experiment / left out for now.
nitot, ichoquo0Aigh9ie, [kevinmarks], KartikPrabhu, [eddie], mickael and [pfefferle] joined the channel
#Zegnatcjwillcock: I have actually wondered for a while if I would enjoy a mf2 parser that gave me DateTime objects etc back instead of strings. My conclusion was yes, but I didn’t need it enough to go and write a new parser.
#ZegnatAnother thing I have thought about adding is a reference to the DOMElement of an object/property. Because sometimes I want to jump into the HTML.
#ZegnatI guess the thought difference is between parsers that parse into a language-native structure vs parse into mf2 JSON (http://microformats.org/wiki/microformats2-json). Most of the current parsers stick very close to the JSON
#KartikPrabhuall that sounds language specific. mf2 parsing output is independent of the progamming language
#KartikPrabhuI suppose in any language you could write a parser that outputted the language specific objects
#ZegnatYeah, that is what I meant, KartikPrabhu :) It may not always make sense in a language/project to have a JSON document to work on. But those are businesslogic choices.
#ZegnatFor parsers that do give the option to output a JSON document, it is nice if they follow the mf2 JSON standard, of course
#KartikPrabhuI guess you should write an algorithm for how to parse in such a way
#KartikPrabhue.g. is the DOMElement reference only given for a h-* or for everything etc...
[jeremycherfas] joined the channel
#ZegnatI would have separate classes for objects and properties, and I could see both having a method pointing at their DOMElement. Not sure it is worth writing that all out though, as it is likely to be language specific anyway
#sknebelThat's something I'm looking to enable with the mf2py changes too. Not include by default, but make it easy to do
#Loqisknebel: cjwillcock left you a message 7 hours, 8 minutes ago: test page for php-native-mf2: https://mf2.w6k.ca/
nitot, jackjamieson, mickael and [kevinmarks] joined the channel
#[kevinmarks]DateTime objects in languages often make different timezone choices that you might hope
[jgmac1106], barpthewire, nitot, [grantcodes], [eddie], [cleverdevil], [pfefferle], [Rose], KartikPrabhu, [kevinmarks], [asuh], [schmarty], [tantek], eddiehinkle and tantek joined the channel
#[jgmac1106]though [tantek] looking at MDN docs good to see Mf1 should do a session at an IWC updating IWC to mf2 PR might not be accepted but good to have on file