jdev - 2021-04-06

  1. mikeye has joined
  2. mikeye has left
  3. Kiwi has left
  4. mac has left
  5. omighty has joined
  6. alacer has joined
  7. alacer has left
  8. Yagizа has joined
  9. mac has joined
  10. Yagizа has left
  11. marc0s has left
  12. marc0s has joined
  13. wurstsalat has joined
  14. asterix has left
  15. asterix has joined
  16. Yagizа has joined
  17. marmistrz has joined
  18. oibalos has joined
  19. paul has left
  20. paul has joined
  21. mac has left
  22. Syndace has left
  23. Syndace has joined
  24. Sam has left
  25. debacle has joined
  26. Freddy has left
  27. Syndace has left
  28. Syndace has joined
  29. Freddy has joined
  30. Sam has joined
  31. floretta has left
  32. goffi has joined
  33. floretta has joined
  34. marmistrz has left
  35. Kiwi has joined
  36. belong has joined
  37. mac has joined
  38. alex-a-soto has left
  39. alex-a-soto has joined
  40. mac has left
  41. paul has left
  42. floretta has left
  43. paul has joined
  44. floretta has joined
  45. omighty has left
  46. omighty has joined
  47. omighty has left
  48. pasdesushi has joined
  49. wurstsalat has left
  50. wurstsalat has joined
  51. pasdesushi has left
  52. pasdesushi has joined
  53. asterix has left
  54. asterix has joined
  55. omighty has joined
  56. pasdesushi has left
  57. Wojtek has joined
  58. omighty has left
  59. omighty has joined
  60. marmistrz has joined
  61. fade123 has left
  62. ralphm has left
  63. ralphm has joined
  64. marmistrz has left
  65. pasdesushi has joined
  66. pasdesushi has left
  67. pasdesushi has joined
  68. pasdesushi has left
  69. pasdesushi has joined
  70. pasdesushi has left
  71. pasdesushi has joined
  72. omighty has left
  73. floretta has left
  74. fade123 has joined
  75. pasdesushi has left
  76. omighty has joined
  77. marmistrz has joined
  78. pasdesushi has joined
  79. pasdesushi has left
  80. pasdesushi has joined
  81. pasdesushi has left
  82. pasdesushi has joined
  83. pasdesushi has left
  84. pasdesushi has joined
  85. floretta has joined
  86. pasdesushi has left
  87. pasdesushi has joined
  88. pasdesushi has left
  89. pasdesushi has joined
  90. pasdesushi has left
  91. pasdesushi has joined
  92. pasdesushi has left
  93. ralphm has left
  94. ralphm has joined
  95. pasdesushi has joined
  96. omighty has left
  97. pasdesushi has left
  98. omighty has joined
  99. marmistrz has left
  100. marmistrz has joined
  101. omighty has left
  102. marmistrz has left
  103. omighty has joined
  104. omighty has left
  105. omighty has joined
  106. pasdesushi has joined
  107. pasdesushi has left
  108. omighty has left
  109. omighty has joined
  110. selurvedu has left
  111. gutuning has joined
  112. Kiwi has left
  113. Kiwi has joined
  114. lovetox has left
  115. pasdesushi has joined
  116. marmistrz has joined
  117. lovetox has joined
  118. gutuning has left
  119. paul has left
  120. gutuning has joined
  121. pasdesushi has left
  122. fade123 has left
  123. fade123 has joined
  124. paul has joined
  125. marmistrz has left
  126. asterix has left
  127. asterix has joined
  128. Sam Office hours starting in 15 minutes! https://socialcoop.meet.coop/sam-pku-dud-niv
  129. floretta has left
  130. Guus has joined
  131. Martin has left
  132. Martin has joined
  133. floretta has joined
  134. marmistrz has joined
  135. gutuning has left
  136. gutuning has joined
  137. Guus has left
  138. gutuning has left
  139. gutuning has joined
  140. selurvedu has joined
  141. Ge0rG has joined
  142. gutuning has left
  143. gutuning has joined
  144. gutuning has left
  145. Guus has joined
  146. gutuning has joined
  147. Guus has left
  148. nad200 has joined
  149. nad200 has left
  150. gutuning has left
  151. gutuning has joined
  152. marmistrz has left
  153. nad200 has joined
  154. belong has left
  155. gutuning has left
  156. gutuning has joined
  157. belong has joined
  158. nad200 has left
  159. nad200 has joined
  160. nad200 has left
  161. marmistrz has joined
  162. nad200 has joined
  163. nad200 has left
  164. omighty has left
  165. nad200 has joined
  166. nad200 has left
  167. omighty has joined
  168. nad200 has joined
  169. marmistrz has left
  170. gutuning has left
  171. gutuning has joined
  172. SouL has left
  173. SouL has joined
  174. nad200 has left
  175. Wojtek has left
  176. nad200 has joined
  177. belong has left
  178. lovetox Sam, maybe im too stupid, but parsing blocks seems to be much more of a challenge then spans
  179. lovetox Sam, maybe im too stupid, but parsing blocks seems to be much more of a challenge than spans
  180. lovetox but im not giving up
  181. moparisthebest only need a few more regexen
  182. Zash No not, the term is 'regexopodes'
  183. Zash No no, the term is 'regexopodes'
  184. Yagizа has left
  185. Sam lovetox: I think I had a harder time with quotes in particular as well because they don't have any convenient "end" marker and I wanted to keep the line lengths and spaces and what not.
  186. belong has joined
  187. lovetox its the mixing that gets me
  188. lovetox blocks that have ends, blocks that dont have ends
  189. lovetox block where the end is defined as the start of another block
  190. Sam I mostly just ignore "plain" blocks I think, so it was really just quotes for me.
  191. Sam pre's were easy because you just scan until the end of the document or the end of whatever block you were already in
  192. nad200 has left
  193. lovetox who needs nested quotes
  194. lovetox if the xep aims at "good enough" maybe my parser should too
  195. marmistrz has joined
  196. lovetox seems weird for such a very simple styling language to support unlimited nested quotes
  197. Sam I think I always count the ">"s at the beginning of each line to get the quote level, then whenever that number gets smaller than whatever it was before I call that the end of a block.
  198. Sam Originally I'd done that recursively where I had a byte reader that understood quotes and would only read up to the end of its own quote, sipping the ">" bytes and then I could recursively create a new decoder inside of each block, but I changed that because I wanted it to be lossless and not throw away spaces and newlines.
  199. Sam *stripping the ">" bytes, I mean
  200. Sam I think… I rewrote this thing like 5 times before I found an API that I liked, so I barely remember what bits I ended up with.
  201. stpeter has joined
  202. marmistrz has left
  203. lovetox when clients quote, du they somehow identify the originator of the quote ?
  204. lovetox and how do they do that
  205. Sam Not that I've seen
  206. Zash Plz XEPify `<in-reply-to id=$stanza-id/>` and use that 😉
  207. lovetox sounds like something very basic i would want to have with a quote..
  208. Zash Or references I guess
  209. Sam I could go either way, but I'm with Zash. I think these quotes are mostly just to provide context in a MUC when multiple people are talking at once and it's not immediately clear which recent message you were relying to
  210. Sam If you need more, this can be done with some sort of threading XEP
  211. Zash `nick[:,]\n> lorem ipsum\n what you say‽` 🤷️
  212. Sam But a client would certainly be free to prepend "So and so said:" before the quote like email clients do
  213. Sam Yes, that :)
  214. Zash Yaxim has something too IIRC
  215. lovetox so > ´´´sometext
  216. lovetox this is a quote with a preformated block
  217. lovetox this is valid or not
  218. Sam yes that's valid
  219. lovetox and why do we need that? because its common to not quote the end ```
  220. lovetox ?
  221. Sam It just made it easier because you didn't have to scan for an end token to know if the pre was valid
  222. Syndace has left
  223. Syndace has joined
  224. pasdesushi has joined
  225. pasdesushi has left
  226. pasdesushi has joined
  227. pasdesushi has left
  228. pasdesushi has joined
  229. pasdesushi has left
  230. pasdesushi has joined
  231. lovetox i think i just use regex
  232. lovetox for blocks
  233. lovetox its easy to match a pre or quote block with regex
  234. lovetox the only problem is the pre without end inside the quote block ..
  235. lovetox hm or can i just write a regex for that too ..
  236. pasdesushi has left
  237. omighty has left
  238. pasdesushi has joined
  239. Sam lovetox: out of curiosity, what are you writing this for?
  240. lovetox for Gajim
  241. Sam oh right, I think I knew you did gajim stuff. cool.
  242. omighty has joined
  243. pasdesushi has left
  244. pasdesushi has joined
  245. pasdesushi has left
  246. pasdesushi has joined
  247. pasdesushi has left
  248. pasdesushi has joined
  249. Syndace has left
  250. Syndace has joined
  251. pasdesushi has left
  252. nad200 has joined
  253. nad200 has left
  254. nad200 has joined
  255. goffi has left
  256. nad200 has left
  257. gutuning has left
  258. lovetox Sam in the xep is nothing said about empty blocks
  259. gutuning has joined
  260. lovetox > ``` for example
  261. lovetox dont know if it should though
  262. Sam I think that's valid. It's not mentioned specifically, but I think the rules say that a pre-formatted block has to be started with "```" and runs until the end of the parent block or until the next line containing only "```", so it should be valid.
  263. pasdesushi has joined
  264. oibalos has left
  265. lovetox so in the end now parse the blocks with regex
  266. lovetox works fine for some tests i made, tomorrow i will test all your test cases
  267. Sam Cool; glad it worked for you!
  268. pasdesushi has left
  269. asterix has left
  270. pasdesushi has joined
  271. asterix has joined
  272. pasdesushi has left
  273. pasdesushi has joined
  274. wurstsalat has left
  275. pasdesushi has left
  276. pasdesushi has joined
  277. gutuning has left
  278. gutuning has joined
  279. pasdesushi has left
  280. gutuning has left
  281. gutuning has joined
  282. pasdesushi has joined
  283. pasdesushi has left
  284. pasdesushi has joined
  285. pasdesushi has left
  286. pasdesushi has joined
  287. pasdesushi has left
  288. pasdesushi has joined
  289. pasdesushi has left
  290. pasdesushi has joined
  291. pasdesushi has left
  292. pasdesushi has joined
  293. gutuning has left
  294. gutuning has joined
  295. pasdesushi has left
  296. pasdesushi has joined
  297. pasdesushi has left
  298. pasdesushi has joined
  299. pasdesushi has left
  300. pasdesushi has joined
  301. gutuning has left
  302. gutuning has joined
  303. pasdesushi has left
  304. pasdesushi has joined
  305. pasdesushi has left
  306. pasdesushi has joined
  307. Alex has left
  308. pasdesushi has left
  309. pasdesushi has joined
  310. pasdesushi has left
  311. pasdesushi has joined
  312. pasdesushi has left
  313. marmistrz has joined
  314. stpeter has left
  315. gutuning has left
  316. gutuning has joined
  317. stpeter has joined
  318. stpeter has left
  319. omighty has left
  320. stpeter has joined
  321. marmistrz has left
  322. debacle has left
  323. stpeter has left
  324. stpeter has joined
  325. lovetox has left