jmp.chat already does this for voicemails (it sends an audio message, followed by a transcription). I was considering a bot to do similar - people keep sending voice messages in public channels....
electrowindshas left
Samhas left
electrowindshas joined
Samhas joined
miruxhas joined
Kevhas left
miruxhas left
miruxhas joined
Sam
lovetox: pre-formatted spans can't contain other styling, so it would just be monospace. https://xmpp.org/extensions/xep-0393.html#mono
Sam
I'm reasonably sure my implementation is correct and follows all the rules exactly, I tried to write good test cases, so you can test here too: https://go.dev/play/p/yVFWvoA5H1_x
Sam
I have a giant JSON file of the tests you're welcome to use if you'd like
jubalhhas left
Laurahas left
Laurahas joined
Mx2has left
lovetoxhas left
lovetoxhas joined
Mx2has joined
selurveduhas joined
Kevhas joined
Kevhas left
Kevhas joined
selurveduhas left
Martinhas left
Martinhas joined
Sam
I just better documented how to generate the language-agnostic tests here, in case anyone is interested: https://github.com/mellium/xmpp/tree/main/styling
Kevhas left
xeckshas left
xeckshas joined
wurstsalat
Sam, do you parse quotes with a nesting limit?
Samhas left
Samhas joined
Sam
wurstsalat: I don't remember, I think I just count them and report the number, but it seems sane to cap it at some point when displaying it
Sam
(I just stepped away or I'd look)
xeckshas left
xeckshas joined
Kevhas joined
Kevhas left
Laurahas left
larmahas joined
Laurahas joined
mhhas joined
larmahas left
Kevhas joined
Ingolfhas left
Ingolfhas joined
larmahas joined
Kevhas left
larmahas left
larmahas joined
Kevhas joined
Kevhas left
nikhas left
larmahas left
larmahas joined
larmahas left
kfvhas left
kfvhas joined
larmahas joined
jubalhhas joined
marc0shas left
marc0shas joined
marc0shas left
marc0shas joined
marc0shas left
marc0shas joined
PapaTutuWawahas left
larmahas left
larmahas joined
electrowindshas left
larmahas left
larmahas joined
larmahas left
larmahas joined
Kevhas joined
kikuchiyohas left
larmahas left
dezanthas left
kikuchiyohas joined
Kevhas left
larmahas joined
kikuchiyohas left
rubihas left
larmahas left
larmahas joined
rubihas joined
Wojtekhas left
kikuchiyohas joined
larmahas left
larmahas joined
Kevhas joined
Kevhas left
Kevhas joined
rubihas left
rubihas joined
antranigvhas left
Syndacehas left
Syndacehas joined
Laurahas left
Wojtekhas joined
miruxhas left
miruxhas joined
Laurahas joined
dezanthas joined
Kevhas left
Samhas left
norayrhas left
norayrhas joined
Samhas joined
PapaTutuWawahas joined
larmahas left
larmahas joined
larmahas left
lovetox
Sam, i meant without the preformatting
lovetox
i must send it as preformatted or else Gajim trys to render 20 nested quites✎
larmahas joined
lovetox
i must send it as preformatted or else Gajim trys to render 20 nested quotes ✏
Sam
Oh, hah, gotcha. Yah, that would be many nested quotes if it starts at the beginning of a line
lovetox
so a quote does not actually need text
Sam
Oooh, good question
lovetox
obviously i need to limit the recursion here
lovetox
and with that any client
lovetox
im sure you can just kill every client that has no recursion limit here
lovetox
its trivial to send you a text with a 100.000 nested quotes
Sam
I don't think it needs text, but I'm not at my computer to check