jdev - 2022-08-09


  1. nav

    A couple of patches to the DOAP XSLT.

  2. nav

    Only the first patch is important-ish

  3. nav

    The others should apply relatively cleanly in a pick and choose basis, i.e., if wanting to leave some of it out. In particular the last one.

  4. nav

    https://xmpp.labs.navlost.eu/upload/4f883a857d1fd410d36f3b5a55395c7b1d631fe5/jLWUdjRIe7YFi5iLyILE8RqWxEv5p3lHywac5uHT/0001-Add-DOCTYPE-declaration.patch

  5. nav

    https://xmpp.labs.navlost.eu/upload/4f883a857d1fd410d36f3b5a55395c7b1d631fe5/SxCkoHM4Kx0F4puePiPbLpuuxHVWVzQtRh8b0oGC/0002-Assume-that-style.css-is-in-the-same-directory-as-th.patch

  6. nav

    (that one is a bit of a judgment call, but I figure in production the CSS may not always be exactly one level up)

  7. nav

    https://xmpp.labs.navlost.eu/upload/4f883a857d1fd410d36f3b5a55395c7b1d631fe5/WPOHkfJZ3zCaHN0YD94bhrqE0RVTyYPZY2g25IQu/0003-Add-XEP-name-and-latest-available-version.patch

  8. nav

    The main change there is that XEP number and title are inside a single <a href=""> as opposed to two.

  9. nav

    https://xmpp.labs.navlost.eu/upload/4f883a857d1fd410d36f3b5a55395c7b1d631fe5/Uo25pTx4uF2elC7V907IkZJ0NCxqqYGvGVXtv4MS/0004-Add-anchors-to-XEPs.patch

  10. nav

    https://xmpp.labs.navlost.eu/upload/4f883a857d1fd410d36f3b5a55395c7b1d631fe5/jJYvC7OI5QvIvMS1v4J8idgYCMavSgufFjYm2kxd/0005-Add-abstract-info.patch

  11. nav

    jonas’ About https://github.com/xsf/xeps/blob/master/tools/extract-metadata.py – I'm confused as to why it converts the XML to text and then back to XML.

  12. nav

    That causes loss of info: mixed content, entities, directives (and comments) will not be translated.

  13. jonas’

    that's intentional to provide a fixed schema for xeplist.xml

  14. jonas’

    (and other tools in the directory need plain text)

  15. nav

    For email and such?

  16. nav

    Take for instance the abstract of XEP-0099 (https://xmpp.org/extensions/xep-0099.xml)

  17. jonas’

    is that not handled correctly?

  18. nav

    What's also bizarre is that some XML entities are translated and others aren't. Take for instance <remark/> on XEP-0234 (correctly translates an em dash, versus XEP-0106 (missing dashes).

  19. jonas’

    nice, it's indeed not

  20. jonas’

    then I need to exchange minidom for something saner

  21. nav

    Nope, it's missing a couple of words.

  22. jonas’

    but I recall that that caused issues with our .ent and .dtd files -.-

  23. nav

    Yeah I would expect so.

  24. nav

    Why not run the output through a proper HTML→plain text converter?

  25. jonas’

    because it's not HTML?

  26. jonas’

    (which output, anyway?)

  27. jonas’

    if anything, extract-metadata.py should probably be an XSL file…

  28. nav

    Technically not, but it looks like it should do the job. I'm not talking about the entire XML, obs ☺ but rather the mixed content that you'd like to be pure text.

  29. nav

    For instance <abstract/>, <remark/> and so on, where people sometimes use markup.

  30. nav

    Yeah, I did write an XSLT stylesheet that creates a xeplist.xml, that's how I found the differences.

  31. nav

    I should have a diff file somewhere…

  32. jonas’

    oh, interesting

  33. jonas’

    I'd take that I guess.

  34. nav

    …I'll generate one quickly

  35. jonas’

    no I mean, the xsl I'd take

  36. jonas’

    as a pull request or whatever

  37. nav

    https://xmpp.labs.navlost.eu/upload/4f883a857d1fd410d36f3b5a55395c7b1d631fe5/gIVWrOV35jf6hJkfbrJUITh55qcElR0PyBEKf7eR/xeplist.diff

  38. nav

    > no I mean, the xsl I'd take Yeah I understood that 😁

  39. nav

    Maybe take a look at the diff first see if there is anything that might cause issues downstream?

  40. nav

    …which there probably will, as I see that the content is used for emails, right?

  41. nav

    but that aspect of things could probably be addressed by running the content going into the emails through an HTML → text converter.

  42. nav

    …or just accept that some spurious markup is going to show up.

  43. nav

    Anyway, I'll prepare a quick patch and you can play with it.

  44. nav

    The background to this is that I was wanting to add the entire revision history to xeplist.xml

  45. Millesimus

    No xmpp dev room at FrOSCon '22?

  46. Ge0rG

    Millesimus: it looks like there'll be a stand at least

  47. Millesimus

    Ge0rG: Ah yes, Dino has a stand.

  48. nav

    jonas’ Diff against xsf/xeps master:

  49. nav

    https://xmpp.labs.navlost.eu/upload/4f883a857d1fd410d36f3b5a55395c7b1d631fe5/JFHPqKyqvOWi2KZcmLuK6SG729aoXXoK83SzrdYE/0001-Add-script-and-XSLT-stylesheet-to-generate-xeplist.x.patch

  50. nav

    https://xmpp.labs.navlost.eu/upload/4f883a857d1fd410d36f3b5a55395c7b1d631fe5/GXd5QLcks8lxCyJ1ttxdnZX3chntgXBYbYfA4eeC/0002-Replace-the-script-used-for-creating-xeplist.xml.patch

  51. nav

    https://xmpp.labs.navlost.eu/upload/4f883a857d1fd410d36f3b5a55395c7b1d631fe5/0qISEWyTkKMl1PMyIO250WMLqVWX2cZQJybMGfqf/0003-Remove-.-tools-extract-metadata.py.patch

  52. jonas’

    nav, any chance to put that in a github PR?

  53. nav

    Nope

  54. jonas’

    or at least as emails to editor@

  55. jonas’

    or at least as emails to editor@xmpp.org

  56. jonas’

    otherwise I'll lose track

  57. Ge0rG might suddenly appear at FrOSCon as well

  58. adx

    do i understand correctly that the roster is for storing user JIDs only and bookmarks are for the groupchats?

  59. jonas’

    adx, yes

  60. jonas’

    storing groupchat JIDs in the roster is going to cause fun

  61. jonas’

    unless you're using MIX, then it's both likely to cause fun, but also the standard way of doing things

  62. adx

    hmm, fun you say... 🙂

  63. adx

    yeah, I was talking about MUCs

  64. adx

    does anything even implement MIX groupchats?

  65. Wojtek

    @adx tigase-server and BeagleIM/SiskinIM ;-)

  66. pulkomandy

    I wild be at FrOSCon too so I hope there will be some kind of devroom in one way or another

  67. john-machan

    Hello! Do we know of FOSS clients supporting [ephemeral messages](https://xmpp.org/extensions/xep-0466.html)?

  68. MSavoritias (fae,ve)

    john-machan: This was approved just recently and also there is a change that author wants to do already. So no. Too early still.

  69. techmetx11

    MSavoritias (fae,ve): unless there's a developer who's watching very carefully

  70. techmetx11

    does the server also have to exclude the message from the MAM when sending?

  71. techmetx11

    does the server also have to exclude the message from the MAM (if the timer is expired) when sending a MAM request

  72. Zash

    you can't do that

  73. Zash

    it is forbidden

  74. Zash

    you can replace it with a tombstone however

  75. techmetx11

    yeah a tombstone

  76. Zash

    so, treat it as a delayed-effect https://xmpp.org/extensions/xep-0424.html

  77. techmetx11

    there's a stickers XEP?

  78. Zash

    XMPP - There's a XEP for that!

  79. Zash

    techmetx11, was that a question?

  80. MSavoritias (fae,ve)

    > techmetx11 wrote: > there's a stickers XEP? Yes

  81. Zash

    We need a XEP that encodes whether a message contains a question or a surprised statement!

  82. Zash

    Wasn't there a XEP from before it was even called "stickers" ?

  83. Zash

    Obsolete now, but https://xmpp.org/extensions/xep-0038.html

  84. MSavoritias (fae,ve)

    > Zash wrote: > We need a XEP that encodes whether a message contains a question or a surprised statement! We have :D

  85. MSavoritias (fae,ve)

    But it was rejected

  86. techmetx11

    hmmm

  87. techmetx11

    now would there be a XEP for a marketplace

  88. techmetx11

    or video sharing

  89. techmetx11

    i don't think so

  90. techmetx11

    except the video sharing

  91. Zash

    don't think "marketplace" would be a XEP

  92. MSavoritias (fae,ve)

    There is no need for specifically video sharing. Just video streaming

  93. MSavoritias (fae,ve)

    Which there is

  94. Link Mauve

    There were five or so attempts at MSN-style shared folders though.

  95. Link Mauve

    Which might be that.

  96. techmetx11

    shared folders

  97. techmetx11

    hmm

  98. techmetx11

    XEP for nudging?

  99. Link Mauve

    0224.

  100. Zash

    ITYM https://xmpp.org/extensions/xep-0132.html ;)

  101. Link Mauve

    Or that yeah.

  102. nav

    jonas’: Sent

  103. jonas’

    thanks

  104. nav

    pulkomandy If interested in displaying the revision history for outdated XEPs in the DOAP files, here's a patch (goes on top of the ones I sent earlier today)

  105. nav

    https://xmpp.labs.navlost.eu/upload/4f883a857d1fd410d36f3b5a55395c7b1d631fe5/35mKMMMfUu7CtNlG0SCSmnUHccl31EBLKyl9pNP1/0001-Add-a-popup-with-the-change-history-for-outdated-XEP.patch

  106. pulkomandy

    thanks, not much time for that today (trying to port a C compiler to a new architecture for a project I should finish this weekend for my vacations :p) but I'll try to have a look

  107. nav

    Nae bother. Sample output here btw: https://labs.navlost.eu/pub/doap/poezio.html https://labs.navlost.eu/pub/doap/movim.html

  108. nav

    Needless to say, the styling needs some love.

  109. nav

    Good luck with the compiler 👍

  110. wurstsalat

    nav, nice, I'd really like to see that happen! I can work on styling the elements when these changes are merged :)

  111. nav

    Link Mauve: Broken link in https://xmpp.org/extensions/xep-0453.html#rules (https://github.com/xsf/xmpp.org/blob/master/data/README.rst 404s)

  112. Link Mauve

    Ah, wurstsalat broke it in de3d82527a7b3fda3b0cf89e147a14fde801a472.

  113. Link Mauve

    In the move to hugo.

  114. Link Mauve

    Did anyone else have any issue with it? Otherwise I’ll probably ask to advance it soon and gather actual experience with it.

  115. Link Mauve

    nav, https://github.com/xsf/xeps/pull/1199

  116. nav

    Thanks, I tried to find the link but couldn't.

  117. nav

    https://github.com/xsf/xmpp.org/blob/master/tools/README.rst

  118. nav

    May I point out that it's missing a _components_ section? It's kind of an important part of XMPP. ☺

  119. Link Mauve

    Feel free to contribute that, I’m going to sleep. :)

  120. nav

    > and then make a Pull Request on GitHub. Seriously? Using a GAFAM product for what's supposed to be an open protocol? Process-wise that's a bit substandard.

  121. Link Mauve

    No, you can use the mailing list if you prefer so.

  122. Link Mauve

    Send a patch over there, or to the editor IIRC.

  123. nav

    A catalogue of machine readable software definitions is a great idea though. Enables lots of interesting things, such as comparing XEP support across products, finding the popularity (or otherwise) of different XEPs, etc.

  124. nav

    Roger. It'd be good to make those contribution workflows more explicit though? I don't recall them being documented, maybe I didn't look in the right places.

  125. nav

    (I'm working on an XMPP based way to submit Git patches to repositories anyway, should work with popular forges + email)

  126. Link Mauve

    Have you talked with goffi already? I think he was working on such things in the past.

  127. nav

    I recall a talk by someone about this, which was kind of the inspiration.

  128. nav

    Is goffi here?

  129. nav

    I'll see about hitting him up during the day. Bonne nuit !