#microformats 2022-02-18
2022-02-18 UTC
sarahd[d], capjamesg[d], antrdnv[d], Myst[d], indieweb-irc-bri, [Zeina], [aciccarello], [tw2113_Slack_], ur5us, [davidmead], KartikPrabhu, Loqi__, cygnoir[d], zack[m], diegov, mambang[m], KartikPrabhu1, [jgmac1106], angelo, IntriguedWow[d], [tantek] and jacky joined the channel
# @jgmac1106 ↩️ So what I did was save the audio files to my Internet Archive first, Made an HTML page on @glitch, and then use http://Granary.io to convert my microformats into an xml file for podcast feeds (twitter.com/_/status/1494763197567492100)
barnaby joined the channel
andysylvester, ur5us and angelo joined the channel
# jacky oh this is nice https://willnorris.github.io/mf2-tester/
# willnorris to be clear, that's just my fork. The canonical version is https://dissolve.github.io/mf2-tester/
# willnorris thought we could/should eventually move it to a more "official" hostname, either under microformats.org or microformats.io. (I also own microformats.dev)
# willnorris all the REAL work was done by ben_thatmustbeme :)
# jacky that's a static site; no? I wonder if that could be added at like https://microformats.io/matrix.html or something
# capjamesg[d] Wait so there is more work to be done on the Python parser?
# willnorris jacky: technically, sure. Right now it's all built with GitHub Actions, so publishing to GitHub Pages is pretty straightforward. Getting it to publish to whatever serves microformats.org would be a lot more work, auth issues, etc
# capjamesg[d] Is there Python parser work to be done?
# willnorris barnaby: trying now with updated php dependencies. Unfortunately that will overwrite the existing results that include rust, but /shrug
# barnaby and then there are some other failures which point to larger problems, e.g. an entire nested mf being missing here https://dissolve.github.io/mf2-tester/python/microformats-v1/hreview/item.json.diff.txt
# capjamesg[d] Good to know! I don’t know how hard this will be to tackle but I’ll take a look.
# capjamesg[d] It looks like that function is actually already implemented under a feature flag.
# willnorris okay, https://willnorris.github.io/mf2-tester/ now reflects v0.5.0 of the php library. Now passes 6 additional test cases.
# willnorris I'll send Ben a PR for that as well
# capjamesg[d] It’s not on by default for backwards comparability according to the reader.
# capjamesg[d] *README
# capjamesg[d] Nice!
# barnaby willnorris: are the tests in the matrix from https://github.com/microformats/tests? because afaik php-mf2 passes those, unless they’re not included in the default test suite
# willnorris yes, this just vendors in microformats/tests
# willnorris I mean, it's also possible there's a bug somewhere in how it's running the tests. Does php-mf2 run the shared test suite as part of it's normal testing?
# willnorris That's what I do for the go client. I have the shared test suite setup as a submodule in the repo, and https://github.com/willnorris/microformats/blob/main/testsuite_test.go runs it as part of the normal testing process
# barnaby hmm this one seems to be a utf-8 issue https://willnorris.github.io/mf2-tester/php/microformats-v2/h-entry/summarycontent.json.diff.txt
# willnorris barnaby: I had some somewhat similar escaping issues in the go client that was causing tests to fail. I suggested fixing it in the tester (https://github.com/dissolve/mf2-tester/pull/4) but folks didn't like that. I ended up doing it in the library (https://github.com/willnorris/microformats/commit/820225570fa984be709885c95180dd1bff0d7dd6)
# [KevinMarks] The issue with json having multiple possible representations of unicode is a bit tricky
angelo joined the channel
# [KevinMarks] You can have utf-8 representations or \u representationa iirc
# [KevinMarks] I vaguely remember discussing this a while ago, but it may not be in the parsing issues
# [KevinMarks] It may be worth another pass through that with different parser implementations, and make some tests with emoji and other non basic utf-8 in.
Anders joined the channel
# Anders Fairly specific. As an example, if you run `python3 -m http.server` it will give you a simple file browser over HTML
# Anders It wouldn't be too hard to add h-dir, h-file, p-mod-time, p-size, etc to that listing and make it machine readable
# Anders Once you have that it would be easy to wrap it in a FUSE mount
# Anders Or rclone
# Anders So any webserver that implements this could be treated as a read-only filesystem
# [KevinMarks] I have xoxo to json and back in unmung, and python and php xoxo implementations, but it is a bit separate from other microformats
# Anders Simpler WebDAV is basically the idea
# barnaby https://microformats.org/wiki/xoxo#Implementations mentions exactly one practical implementation on odeo, which no longer exists
# Anders One concrete example that would be useful for me. If you have a large directory tree that changes regularly but only a few files at a time, zipping the whole thing is impractical. Something like this would let you do incremental updates by crawling the tree and checking for files with changed modTimes or sizes
# Anders You could also make the spec a bit more complicated, and add reference links to thumbnails for images. That would let you implement a hole bunch of applications.
# Anders Another example would be opening files natively in VLC for streaming (assuming the server/FUSE support byte range requests).
# Anders The difference is you have to HEAD each file individually, which quickly becomes way too many requests. It's a moot point anyway, because webserver developers are duplicating that information anyway for the listings I mention above. I'm simply advocating doing that in a standard way.
# Anders Imagine if you had to ls -l each file on your filesystem one by one if you wanted to see the size of everything in a directory