[20:04:57] tgr: nice write up. I think the thing that's gonna be a pain is looking for parentheticals across nodes e.g. this is some text (hello and goodbye) [20:05:04] especially given they can be nested :/ [20:05:39] i was trying to find some libraries that do this yesterday but so far no luck [20:46:24] jdlrobson: as long as they are on the same level in the DOM tree it does not seem too bad [20:47:02] things like (hello) would be more involved, but hopefully not really done in practice [20:48:52] from an internal POV ther is not that much difference beteen (hello) and (hello) since all the text fragments there become separate nodes, and the latter is definitely something that will happen a lot [20:50:17] there is the HTML5 selection / DOM range API which would make it trivial but I wouldn't hold my breath for finding an implementation it that does not involve running something Electron-like [20:50:49] tgr: i think as long as the existing tests still pass we have a good starting point [23:29:54] bearND, mdholloway: is someone working on T184557? I kind of cookie-licked that and then walked away which in hindsight is not a nice thing to do [23:30:03] so let me know if you want me to follow through [23:35:41] tgr: I'm trying but it's getting quite complicated, which is not good. [23:36:54] tgr: We also have this rule to not remove parentheses with there is not space inside them. Not sure how to handle this across different elements/text nodes. [23:37:16] s/with/when/ [23:41:08] walk the tree twice, maybe? first walk, make a list of ranges to remove, and you can easily discard from there if there is no space or no closing brace or whatever [23:41:24] second walk, actually discard them [23:56:43] tgr: How would you store the ranges? AFAICS domino doesn't implement Document.createRange(). [23:57:20] I guess I would have to implement my own structure. [23:57:34] start node, end node, character position in those nodes [23:58:13] yeah. Man this all adds up. [23:58:46] it's a lot of work just to get rid of some parens, for sure