XSF Discussion - 2020-02-01


  1. edhelas

    https://news.ycombinator.com/item?id=22202206

  2. Daniel

    > Absent leadership from XSF also plays a role. This club now mostly cares about bureaucracy and following a set of self-imposed rules instead of developing a set of working standards that would allow XMPP apps to compete with the best messaging apps out there. That's why it is unlikely for any great product to appear under such guidance.

  3. Guus

    Auch

  4. pep.

    > However, the messaging features of these platforms are all nearly identical lol

  5. jonas’

    search.jabber.network got an update: - Invalid language tags are now omitted from the UI and @lang attributes for accessibility - Language statistics are available at: https://search.jabber.network/stats#languages (thanks debacle for bringing it up) - There’s now an OpenSearch descriptor which should allow adding s.j.n as search engine to your browser (thanks to Zash for figuring out how)

  6. Zash

    Wooh

  7. jonas’

    Ge0rG, can you please review this: https://github.com/horazont/muchopper/pull/50 specifically the URL regex

  8. jonas’

    (and anyone else who’s interested)

  9. jonas’

    (it’s also live on beta.search.jabber.network for visual testing)

  10. Zash

    How does it handle https://en.wikipedia.org/wiki/Prosody_(software) ?

  11. Zash

    How does it handle (https://en.wikipedia.org/wiki/Prosody_(software)) ?

  12. jonas’

    badly

  13. jonas’

    please URL encode your parenthesis in the MUC description :)

  14. Zash

    (Not a correction, two separate test cases)

  15. jonas’

    or invent a more clever regex

  16. Zash

    I would like to thank browsers for not doing that anymore

  17. jonas’

    yeah

  18. jonas’

    I feel very clever for finding a solution to the "how to mix keyword highlighting and url linkification without getting in a terrible mess of HTML escaping" problem by joining the regexes together

  19. Zash

    ZOMG

  20. Ge0rG

    jonas’: no mental capacity at the moment, sorry

  21. !XSF_Martin

    jonas’: So now 'de, en' is invalid?

  22. jonas’

    !XSF_Martin, it always was

  23. jonas’

    <field var='muc#roominfo_lang' label='Language of discussion'> <value>en</value> </field>

  24. jonas’

    it’s a text-single field

  25. jonas’

    if multiple languages were intended, it should’ve been text-multi

  26. !XSF_Martin

    What's the valid way if you support two langs? Two value fields? How do I teach my muc to have two?

  27. jonas’

    !XSF_Martin, the valid way is to bring a XEP on the way which supporst that

  28. jonas’

    my suggestion is to have a separate "secondary languages" field and let the primary language be the language which is used for the description and title of the room

  29. !XSF_Martin

    I don't think I have the skills to write an xep, so in fact it is impossible 😂

  30. jonas’

    !XSF_Martin, writing a XEP is easy

  31. jonas’

    you copy the template and fill in the blanks ;)

  32. jonas’

    stealing most of your stuff from other XEPs doing a similar thing

  33. jonas’

    also, description text linkification is live now

  34. Zash

    Or you could write a custom markdown-to-XEP converter!

  35. !XSF_Martin

    Oh yeah. Then I will get my Dr. soon. I just take a dissertation template and fill the blanks. 😇

  36. !XSF_Martin

    But right now I'm fighting with another near impossible task. Creating a debian source package that will split out profanity and profanity-nox.

  37. !XSF_Martin

    But right now I'm fighting with another near impossible task. Creating a debian source package that will spit out profanity and profanity-nox.

  38. jonas’

    I didn’t even know that profanity had a X frontend

  39. !XSF_Martin

    It doesn't have but it has support for some xscreensaver-stuff, notifications and a tray-icon. The normal debian-package has all this enabled and will pull in Xorg if you try to install it on a headless system

  40. jonas’

    ah, I see

  41. Ge0rG

    jonas’ [13:39]: > my suggestion is to have a separate "secondary languages" field and let the primary language be the language which is used for the description and title of the room And this is how you end up with overengineered protocols!

  42. Ge0rG

    !XSF_Martin: my headless server has a significant amount of X libraries

  43. !XSF_Martin

    Ge0rG: I'd like to avoid that if possible

  44. !XSF_Martin

    apt install --no-install-recommends profanity :( Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: adwaita-icon-theme fontconfig gtk-update-icon-cache hicolor-icon-theme libatk1.0-0 libatk1.0-data libavahi-client3 libavahi-common-data libavahi-common3 libcairo2 libcroco3 libcups2 libdatrie1 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgpgme11 libgraphite2-3 libgtk2.0-0 libgtk2.0-common libharfbuzz0b libnotify4 libotr5 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpixman-1-0 librsvg2-2 librsvg2-common libstrophe0 libthai-data libthai0 libxcb-render0 libxcb-shm0 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxi6 libxinerama1 libxrandr2 libxrender1 libxss1 x11-common

  45. jonas’

    Ge0rG, I’m open for other options. as a web service, I need to know which language is used for the description + title

  46. Ge0rG

    Pango and Cairo. What could go wrong?

  47. Ge0rG

    jonas’: is sjn considered a valid tag?

  48. Ge0rG

    jonas’: https://tools.ietf.org/html/rfc7231#section-5.3.5

  49. jubalh

    Martin opensuse .. 😉😁

  50. Ge0rG

    It's the icing on the cake of horrible protocol designs

  51. jonas’

    Ge0rG, no

  52. jonas’

    Ge0rG, actually, Accept-Language is a thing I miss in xmpp

  53. Zash

    jonas’: Where? vCard (at least 4) has a language field

  54. Zash

    Or you mean like `@xml:lang` but multiple-choice?

  55. jonas’

    Zash, yeah

  56. jonas’

    @xml:lang, but like Accept-Langauge

  57. jonas’

    @xml:lang, but like Accept-Language

  58. Zash

    jonas’: `<headers xmlns='http://jabber.org/protocol/shim'><header name='Accept-Language'>en,sv</header></headers>`

  59. jonas’

    Zash, try to stick that into an IQ

  60. Zash

    jonas’: `Accept-Language: en;q=0.9;level=1,sv;q=.9999;level=2` parse this

  61. jonas’

    been there, was fun

  62. jonas’

    better than css either way

  63. debacle

    Zash, "level"? You made that up, did you? Just to make it Turing complete eventually.

  64. Zash

    debacle: Accept has that

  65. debacle

    Zash, wow, I wasn't aware of that. But Accept-Language not? BNF in RFC 2616: Accept-Language = "Accept-Language" ":" 1#( language-range [ ";" "q" "=" qvalue ] ) language-range = ( ( 1*8ALPHA *( "-" 1*8ALPHA ) ) | "*" ) and the example: Accept-Language: da, en-gb;q=0.8, en;q=0.7 Not *that* bad.

  66. jonas’

    yeah, Accept-Language is pretty tame

  67. Ge0rG

    How do you weight the q value against the ordering of the elements?