Guus, Ge0rG: I tried to address some of your feedback as well as make the text clearer in places: https://github.com/xsf/xeps/pull/540/files
adminprohas joined
adminprohas left
archas left
archas joined
archas left
archas joined
moparisthebesthas left
moparisthebesthas joined
Kevhas left
Guushas left
zinidhas left
archas left
archas joined
archas left
archas joined
jerehas joined
lskdjfhas joined
bjchas joined
tuxhas left
tuxhas joined
jerehas left
jerehas joined
Lancehas joined
archas left
archas joined
Steve Killehas left
Tobiashas joined
vanitasvitaehas left
lskdjfhas joined
archas left
archas joined
Lancehas left
archas left
archas joined
zinidhas left
archas left
archas joined
nycohas left
nycohas joined
archas left
archas joined
danielhas left
danielhas joined
archas left
archas joined
archas left
archas joined
lumihas left
lumihas joined
archas left
archas joined
lumihas joined
Guushas left
mimi89999has joined
jjrhhas left
archas left
archas joined
archas left
archas joined
archas left
archas joined
archas left
archas joined
uchas joined
archas left
archas joined
vanitasvitaehas left
archas left
archas joined
sonnyhas left
sonnyhas joined
jerehas left
archas left
archas joined
archas left
archas joined
archas left
archas joined
archas left
SamWhitedhas left
efrithas left
danielhas left
danielhas joined
archas joined
danielhas left
danielhas joined
uchas left
uchas joined
Guushas left
archas left
archas joined
archas left
archas joined
Guushas left
archas left
archas joined
Guus
SamWhited: would it make sense to update the "last updated" timestamp? I was refreshing my page, waiting for the build to succeed by looking at that date...
@Alacerhas left
Ge0rGhas left
marchas joined
jcbrandhas joined
Syndacehas joined
Syndacehas joined
jcbrandhas left
jcbrandhas joined
jjrhhas left
jjrhhas left
jjrhhas left
archas left
jjrhhas left
jubalhhas joined
jubalhhas left
jubalhhas joined
jjrhhas left
archas joined
jubalhhas left
jubalhhas joined
jubalhhas left
jjrhhas left
Zashhas left
Zashhas joined
jjrhhas left
jcbrandhas left
uchas joined
jjrhhas left
jjrhhas left
Kevhas joined
bjchas joined
uchas joined
jonaswhas joined
ralphmhas joined
@Alacerhas joined
jjrhhas left
ralphmhas joined
Guushas left
Guushas left
la|r|mahas joined
jcbrandhas joined
uchas joined
uchas joined
Ge0rG
Wow, so much constructive feedback on a Friday night. Breaking the problem space into pieces really pays off :)
goffihas joined
jcbrandhas left
lskdjfhas joined
Guushas left
jjrhhas left
jcbrandhas joined
Kevhas left
Kevhas joined
zinidhas left
Guushas left
jcbrandhas left
ralphmhas left
Guushas left
marchas left
Kev
Ge0rG: Thought it might :)
Ge0rG
Kev: thanks for making me do it :)
marchas left
Ge0rGhas left
xnyhpshas left
@Alacerhas left
Syndacehas left
@Alacerhas joined
Ge0rGhas left
la|r|mahas left
la|r|mahas left
la|r|mahas joined
Guushas left
Guushas left
jerehas joined
mimi89999has left
jerehas left
jerehas joined
mimi89999has left
jerehas left
jerehas joined
marchas joined
mimi89999has left
ralphmhas left
jubalhhas joined
Syndacehas left
uchas left
uchas joined
jonaswhas left
mimi89999has left
zinidhas left
jerehas left
jerehas joined
Valerianhas joined
Guushas left
ralphmhas left
sonnyhas joined
sonnyhas joined
jerehas left
jerehas joined
jubalhhas left
Guushas left
Ge0rGhas joined
Ge0rGhas left
SamWhited
Guus: oops, sorry, I haven't been pushing versions.
jubalhhas joined
moparisthebesthas left
ralphmhas left
efrithas joined
lumihas joined
Ge0rGhas left
Valerianhas left
moparisthebesthas joined
Tobiashas joined
Guushas left
efrithas left
jubalhhas left
marchas left
lovetoxhas joined
Steve Killehas left
jerehas left
Tobiashas joined
jerehas joined
Tobiashas joined
efrithas joined
marchas left
Steve Killehas left
Guushas left
Valerianhas joined
Guushas left
Guushas left
Guushas left
Guushas left
jjrhhas left
danielhas left
danielhas joined
efrithas left
danielhas left
danielhas joined
lumihas joined
ralphmhas left
lumihas joined
la|r|mahas left
lumihas left
lumihas joined
lumihas joined
lumihas joined
lumihas left
jjrhhas left
Guushas left
jjrhhas left
jjrhhas left
Ge0rGhas left
lumihas joined
jjrhhas left
@Alacerhas left
lumihas left
lumihas joined
jjrhhas left
jjrhhas left
@Alacerhas joined
jjrhhas left
Valerianhas left
ralphmhas left
lumihas left
lumihas joined
moparisthebesthas joined
Guus
SamWhited: no worries. Perhaps something that could be automated?
SamWhited
Guus: I don't think it's really necessary in this case; generally I just ask authors to update it when they make a PR. I just didn't do it for this because it gets reset to 0.1 when accepted anyways and the old ones would go away
efrithas joined
Guus
Oh, I was referring to the datestamp on top, not then version number
SamWhited
oh, my mistake
SamWhited
they're the same thing though
SamWhited
that's pulled from the last revision block, IIRC
jjrhhas left
efrithas left
efrithas joined
sonnyhas left
sonnyhas joined
tuxhas joined
tuxhas left
tuxhas joined
Guushas left
jjrhhas left
Valerianhas joined
jjrhhas left
jjrhhas left
jjrhhas left
jjrhhas left
jjrhhas left
moparisthebesthas left
moparisthebesthas joined
Guushas left
Guushas left
Valerianhas left
Valerianhas joined
Syndacehas left
Steve Killehas left
miklhas joined
Steve Killehas left
jjrhhas left
danielhas left
Guushas left
Syndacehas left
Guushas left
Syndacehas left
Guushas left
Guushas joined
Guus
jabber.org's cert expired 4 hours ago
Guus
is that iteam's server to manage?
Guushas left
Tobiashas joined
jjrhhas left
Valerianhas left
efrithas left
ralphm
Guus: no. The jabber.org server is not an XSF activity. That said. There is an overlap between the people running that server and iteam
ralphm
I'll nudge Edwin
efrithas joined
Guus
thanks
Valerianhas joined
miklhas left
danielhas left
nycohas left
jonaswhas left
moparisthebesthas left
moparisthebesthas joined
danielhas left
danielhas joined
tuxhas joined
Guushas left
valohas joined
valohas joined
Guushas left
Guushas left
Guushas left
Guushas left
lskdjfhas left
Guushas left
Guushas left
Guushas left
Valerianhas left
Valerianhas joined
Syndacehas left
Syndacehas joined
mimi89999has left
mimi89999has left
Guushas left
Valerianhas left
intosihas joined
ralphmhas left
Guushas left
Guushas left
@Alacerhas left
@Alacerhas joined
intosihas left
Guushas left
pep.has joined
SamWhitedhas left
danielhas left
Guus
Hurgh. Finally implemented most of Message Styling, SamWhited - what a drag :(
Guus
didn't do the nesting
Guus
I'm still in the opinion that the amount of complexity in the XEP doesn't warrant the benefits. I expect that a good deal of devs will only do the easy bits, or will do the non-easy-bits wrong.
Guus
I'd drop the recursion/nesting, and potentially all block definitions completely.
Guus
_that said_: *yey styles!*
Guus
(the other way around - the benefits don't warrant the complexity - but you got what I ment)
daniel
Guus: complexity? My parser (including blocks and nesting) is less than 50 lines
daniel
And that's Java with all its boilerplate
zinid
how do you tolerate java btw? the boilerplate is so annoying, I can't stand it
Ge0rG
daniel: is it easily exportable into other Android projects? 😁
daniel
Ge0rG, i've been meaning to put this into an actual library. but you could already copy paste two class files and then have a static StylingHelper.style(Editable editable)
zinid, it's actually gotten a lot better with Java 8 (which you cant use on Android but i use that for my other projects)
daniel
plus IDE takes a lot of the pain away
zinid
I need to look at it then, I have heard java 8 has some improvements
Ge0rG
daniel: great! But please make it a library... I always wanted to have one that would convert xhtml-im into Android Spannable, but I suppose I can give up hope now
daniel
yeah i like it a lot. even my seeminly small tools like the complinace tester or the uptime monitor (status.conversations.im) are java 8
daniel
i very rarely use so called scripting languages
zinidtoo, I use ocaml for scripting :D
moparisthebest
zinid: can confirm Java 8 makes a huge difference
SamWhited
That bad? How did you implement it? I just recursed into the blocks and it was fairly easy
SamWhited
/cc Guus
lovetoxhas left
lovetoxhas joined
Guus
SamWhited: You just used the words 'recurse' and 'simple' in one sentence.
SamWhited
What? It made it very simple
SamWhited
It meant I didn't have to special case the stuff inside blocks, just call the parse function again
Guus
Recursion is inherently complex. Not MUC complex, but a lot more complex than should be needed to print a couple of words in a bold font.
Ge0rG
I wonder how many levels of recursion one can get into a single message
Zash
What stack size limits do you have?
daniel
Ge0rG, not that many actually. because limited keywords
SamWhited
I didn't bother setting one, the stack is cheap so if you want to send:
>
>>
>>>
>>>>
Up to the limit your server allows for body size then be my guest
Ge0rG
daniel: only if you prevent recusing into a keyword type that's already on the stack
daniel
i mean you couldn't just write *_*_*test*_*_*
daniel
thats invalid syntax
SamWhited
Oh, I didn't do recursion inside spans, that was simpler
Ge0rG
You could add letters and whitespace?
Zash
What, can't have bold */and/* italics?!
zinidhas left
daniel
Ge0rG, true
SamWhited
Zash: that should work
Guus
If you'd use underscores instead of slashes.
Ge0rG
SamWhited: without recursion?
Guus
Bold *_and_* italics.
SamWhited
Ge0rG: yes, I think so. Let me clean this up and push it
daniel
or maybe not. i'm confused
Guushas left
Guushas left
jerehas left
Guus
Daniel, I think that there's a small omission in the preformatted block ending in Conversations
daniel
Guus:?
Guus
it appears to end on any occurrance of ```, instead of on a line that only contains ```.
Guus
This should not be monospaced.
```
if ( foo.equals( "```" ) )
{
// This should be monospaced (but is not in Conversations)
}
```
again, no longer monospaced.
Guus
ah, I see that the same applies to the start
daniel
Yes I think that got changed recently in the xep, right? I didn't follow your discussion yesterday
Guus
not sure, only worked on that today :)
SamWhited
Yah, I just tried to clarify that block, I think it makes it a little easier if you can just scan line by line.
Guus
but it stands to reason that ```this should not be monospaced``` (although `this` should).
SamWhited
The way I wrote my version having the ``` (which is the start of a block) inline means blocks overlap though, which ends up being way more complicated
SamWhited
but I could go either way
daniel
Fwiw in whatsapp triple back ticks don't need to be in their own line
daniel
Haven't check slack yet
Guusshurgs and mutters something about disliking code blocks in IM in the first place
Guus
I'll go do my grumpy old man routine in front of the tv. Will lurk on mobile for a bit.
SamWhitedreally likes pasting code blocks at work
daniel
I don't really care. It's a simple fix in my parser to only allow it when it starts with a \n
SamWhited
but could go either way
Zash
I usually just pastebin stuff I want to show
Zash
Spoiled by mod_pastebin mayhaps
daniel
how does the ignoring part go along with the first section where it says that keywords should stay in there?
Flow
Are, and if, how are, new lines defined in <body/>/XMPP?
SamWhited
daniel: good point; maybe I should change that to read "it's part of the keyword, not the preformatted block"
SamWhited
Flow: \n
Flow
SamWhited, great, where is that specified?
SamWhited
Flow: I don't follow, that's just a newline… I didn't mean literally typing \\n
Valerianhas left
Flow
Well strictly speaking \n is just a line feed
SamWhited
Oh I see, are you worried about people sending \r\n?
SamWhited
I have no idea if or where that's specified
Flow
Even more worse, a line break convention that doesn't end with \n
SamWhited
I wouldn't worry about it too much.
SamWhited
Maybe XML specifies a line ending to use? I have no idea. As far as styling is concerned that's deliberately handwavey though.
Flow
Well if we don't have it specified, and if a XEP speaks of newlines, then it should be specified to be sound
Valerianhas joined
Zash
I wouldn't count on \r\n surviving exactly like that all the way across the XMPPnet
SamWhited
My XML decoder appears to normalize to \n
Flow
Zash, within <body/>? Any sane XML parser would not touch element text.
SamWhited
Changing everything to \n seems perfectly sane to me
SamWhited
But I'm still not sure if everything does that, maybe that's just this one
ralphm
https://www.w3.org/TR/REC-xml/#sec-line-ends
Zash
IIRC we looked at having Prosody preserve all kinds of whitespace, and everything broke.
SamWhited
Thanks ralphm
SamWhited
There we go then. That explains why this has never been an issue in any XMPP clients I've ever used.
la|r|mahas left
jubalhhas joined
edhelashas joined
Flow
"MUST behave as if". I wonder what that is supposed to mean. But yes, looks like that any sane XML parser is supposed to normalize line endings to \n. XML 1.1. converts even more to \n
efrithas joined
mimi89999has left
Zash
There was something that at least Prosody did to whitespace in some places. Maybe attributes? I forget.