#microformats 2022-02-08

2022-02-08 UTC
#
[tantek]
barnaby I totally use value class datetime parts!
#
[tantek]
and yes I'm willing to use more of them on my personal site even if only supported by 1-2 parsers, even if that breaks other parsers, to help provide incentive for parsers to be updated or for consuming code to use more modern parsers, or both 🙂
ur5us, darkkirb, Seirdy, _wackycity[d], hoenir_, _aaronpk[d], _Murray[d], _shaunix[d], _sarahd[d], _balupton[d], _cygnoir[d], _capjamesg[d], _mossymaker[d], _dovedozen[d], daiyi[d], _edburns[d], Ramon[d]_, hans63us[d], sayanarijit[d], Christian_Olivie, aspenmayer[d], corenominal[d], Myst[d], MarkJR84[d], marksuth[d], Zegnat[d], rattroupe[d], Jeremiah[d], Seb[d], Asaf_Agranat[d], [fluffy], sebbu, m5zs7k and jacky joined the channel
#
jacky
took a few days during my down time and free time but I _think_ I implemented this mf2 parser to the best of my ability!
#
jacky
only missing stuff is `h-entry/concatenate` and `h-entry/time` which tbh are very tricky
#
jacky
going to wait on upstream to merge (and if not, I might just go ahead and publish this on my own)
ur5us, strugee_, tj2, [schmarty]1, [fluffy]1, [jgmac1106]1 and hans63us[d] joined the channel
#
[schmarty]1
jacky++ amazing!!
#
Loqi
jacky has 5 karma in this channel over the last year (61 in all channels)
jacky joined the channel
jacky joined the channel
#
Loqi
[microformats] microformats-parser-website-rust: Website for Microformats Rust parser (using 'microformats-parser'/'mf2')
#
jacky
need to add Heroku stuff, LICENSE and a README
#
jacky
okay so aaronpk if I make an Heroku app to test that this works on there and transfer it to you, is that okay?
#
jacky
or should I wait for you to make one (this is also me asking for one for the rust mf2 website)
#
aaronpk
i think it's easier if i make it, hold on
#
aaronpk
jacky: pm me your email address you use for heroku
#
aaronpk
i just set up auto deploy to that repo
#
aaronpk
will get subdomain set up later
jacky joined the channel
#
jacky
wow this thing is not letting me send DMs on here
#
jacky
(this thing being my IRC client)
#
aaronpk
you should have an invite for heroku now
#
aaronpk
but it should also already be set up
#
jacky
thanks!
[aciccarello] joined the channel
#
[aciccarello]
I'm not sure how to note that in /recipe
#
jacky
grumbles in build failure
ur5us joined the channel
#
[tantek]
aciccarello, you could start a new "Guided Recipes" section on /recipe-brainstorming to at least capture what's going on there, since that's a new feature beyond previous hRecipe / h-recipe use-cases and functionality
#
jacky
it lives
#
Loqi
😄
#
Loqi
Jacky has 6 karma in this channel over the last year (62 in all channels)
#
jacky
one thing I'm noticing, I have no way to control key sorting in the JSON output (it's always going to be sorted) without some hand-wrangling that I can't afford to do atm
#
aaronpk
that's fine isn't it?
#
jacky
yeah but the 'debug' bit will always be at the top lol
#
jacky
I noticed that the python and php ones have it at the bottom
#
jacky
I'm a co-owner of the rust mf2 repo so if I don't hear anything in a few days, I'll just merge and clean up the code a bit more to prepare it for prod releasing
#
jacky
we could measure drift between implementations with these sites, come to think of it
#
jacky
(like by hitting $LANG.mf.io and comparing the outputs)
#
sknebel
my name for that was "parser zoo" when I last played with the idea :D
#
sknebel
was looking into how to show differences in JSON well
#
jacky
hah I like that idea
KartikPrabhu joined the channel
#
[KevinMarks]
I have a json differ that I use
#
[KevinMarks]
though it's more for 'is the new one at least inclusive of the old one'
#
[KevinMarks]
I then tune it for specific keys
#
[KevinMarks]
function diffdata(legacy,shiny) {
#
[KevinMarks]
let delta={}
#
[KevinMarks]
const newval = shiny[key];
#
[KevinMarks]
const oldval = legacy[key];
#
[KevinMarks]
for (const key in legacy){
#
[KevinMarks]
if (typeof(oldval)==='object' && typeof(newval)==='object'){
#
[KevinMarks]
delta[key] = diffdata(oldval,newval)
#
[KevinMarks]
} else if (oldval==newval){
#
[KevinMarks]
delta[key]="✅";
#
[KevinMarks]
} else if(Math.abs((oldval-newval)/oldval)<0.001){
#
[KevinMarks]
delta[key]="≅";
#
[KevinMarks]
delta[key]="❌ expected: "+oldval+" got: "+newval;
#
[KevinMarks]
return delta;
#
[tantek]
jacky++ amazing!!!
#
Loqi
jacky has 7 karma in this channel over the last year (63 in all channels)
#
jacky
hmm I think we might need more test cases for implied properties
#
jacky
(sigh)
#
jacky
or maybe I need to revisit that code
#
jacky
ah I see why
#
jacky
whomp whomp
P1000[d] joined the channel
#
aaronpk
jacky++ for getting that launched! the custom subdomain should be active soon
#
Loqi
jacky has 8 karma in this channel over the last year (64 in all channels)
#
jacky
awesome!
#
aaronpk
now we need to list it here too! https://microformats.io/
#
sknebel
... we also need to bring the typescript one on there and on a page
edburns[d] joined the channel