Comment: | [fx] merge kill_innerHTML + lexicographer update + UI update |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | major_change | fx |
Files: | files | file ages | folders |
SHA3-256: |
a7259a047c2dc2c472cbb61b63a2e80d |
User & Date: | olr on 2017-07-25 11:03:03 |
Other Links: | manifest | tags |
2017-07-25
| ||
11:05 | [fr][js] code de positionnement manquant check-in: 16de6e9ef8 user: olr tags: trunk, fr | |
11:03 | [fx] merge kill_innerHTML + lexicographer update + UI update check-in: a7259a047c user: olr tags: trunk, major_change, fx | |
10:53 | [fr] nr: confusion <a/à> dans celui/celle à qui check-in: 76f4edd180 user: olr tags: trunk, fr | |
2017-07-18
| ||
11:47 | [fx] display rule id in debug mode Closed-Leaf check-in: 5da1befa07 user: olr tags: fx, kill_innerHTML | |
Modified compile_rules.py from [1657201ddf] to [9f6ed3c641].
︙ | |||
447 448 449 450 451 452 453 | 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 | - + | def pyRuleToJS (lRule): lRuleJS = copy.deepcopy(lRule) del lRule[-1] # tGroups positioning codes are useless for Python # error messages for aAction in lRuleJS[6]: if aAction[1] == "-": aAction[2] = aAction[2].replace(" ", " ") # nbsp --> nnbsp |
︙ |
Modified gc_core/js/helpers.js from [6c4ecd114f] to [262e2563f7].
︙ | |||
28 29 30 31 32 33 34 35 36 37 38 39 40 41 | 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | + + + + + + + + + | if (funcOutput !== null) { funcOutput(sMsg); } else { console.error(sMsg); } } function inspect (o) { let sMsg = "__inspect__: " + typeof o; for (let sParam in o) { sMsg += "\n" + sParam + ": " + o.sParam; } sMsg += "\n" + JSON.stringify(o) + "\n__end__"; echo(sMsg); } // load ressources in workers (suggested by Mozilla extensions reviewers) // for more options have a look here: https://gist.github.com/Noitidart/ec1e6b9a593ec7e3efed // if not in workers, use sdk/data.load() instead function loadFile (spf) { try { let xRequest; |
︙ | |||
76 77 78 79 80 81 82 83 84 85 86 | 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | + + - | let obj = {}; for (let [k, v] of m) { obj[k] = v; } return obj; } exports.setLogOutput = setLogOutput; exports.echo = echo; exports.logerror = logerror; exports.inspect = inspect; exports.objectToMap = objectToMap; exports.mapToObject = mapToObject; |
Modified gc_core/js/lang_core/gc_engine.js from [e250bfaf63] to [ee18ec83ee].
︙ | |||
216 217 218 219 220 221 222 | 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 | - + | // Message if (sMsg[0] === "=") { sMessage = oEvalFunc[sMsg.slice(1)](s, m) } else { sMessage = sMsg._expand(m); } if (bIdRule) { |
︙ |
Modified gc_core/js/text.js from [f8cb0efb57] to [62ec1ec953].
︙ | |||
35 36 37 38 39 40 41 | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | - - + + + - + - + - + | } yield sText; } function getReadableError (oErr) { // Returns an error oErr as a readable error try { |
︙ |
Modified gc_core/js/tokenizer.js from [d06151ccd7] to [8720e6c367].
1 2 3 4 5 6 7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | - - + - + - + - + + + + + + - + + + + + + + + + + + + | // JavaScript // Very simple tokenizer "use strict"; const helpers = require("resource://grammalecte/helpers.js"); |
Modified gc_lang/fr/config.ini from [94e5221453] to [2a6b6ad1cb].
1 2 3 4 5 6 7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | - + | [args] lang = fr lang_name = French locales = fr_FR fr_BE fr_CA fr_CH fr_LU fr_MC fr_BF fr_CI fr_SN fr_ML fr_NE fr_TG fr_BJ country_default = FR name = Grammalecte implname = grammalecte |
︙ |
Modified gc_lang/fr/modules-js/lexicographe.js from [7e54b6b49b] to [673a7bbf6a].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | + + | // Grammalecte - Lexicographe // License: MPL 2 "use strict"; ${string} ${map} const helpers = require("resource://grammalecte/helpers.js"); const tkz = require("resource://grammalecte/tokenizer.js"); const _dTAGS = new Map ([ [':G', "[mot grammatical]"], [':N', " nom,"], [':A', " adjectif,"], [':M1', " prénom,"], |
︙ | |||
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + - - - - - + - - - + - - + - - - + + + + - - - - - - + + + + - - - - + + + + + - - - + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - + - - - - + - + | ['en', " pronom adverbial"], ["m'en", " (me) pronom personnel objet + (en) pronom adverbial"], ["t'en", " (te) pronom personnel objet + (en) pronom adverbial"], ["s'en", " (se) pronom personnel objet + (en) pronom adverbial"] ]); const _dSeparator = new Map ([ ['.', "point"], ['·', "point médian"], ['…', "points de suspension"], [':', "deux-points"], [';', "point-virgule"], [',', "virgule"], ['?', "point d’interrogation"], ['!', "point d’exclamation"], ['(', "parenthèse ouvrante"], [')', "parenthèse fermante"], ['[', "crochet ouvrante"], [']', "crochet fermante"], ['{', "accolade ouvrante"], ['}', "accolade fermante"], ['-', "tiret"], ['—', "tiret cadratin"], ['–', "tiret demi-cadratin"], ['«', "guillemet ouvrant (chevrons)"], ['»', "guillemet fermant (chevrons)"], ['“', "guillemet ouvrant double"], ['”', "guillemet fermant double"], ['‘', "guillemet ouvrant"], ['’', "guillemet fermant"], ['/', "signe de la division"], ['+', "signe de l’addition"], ['*', "signe de la multiplication"], ['=', "signe de l’égalité"], ['<', "inférieur à"], ['>', "supérieur à"], ]); class Lexicographe { constructor (oDict) { this.oDict = oDict; this._zElidedPrefix = new RegExp ("^([dljmtsncç]|quoiqu|lorsqu|jusqu|puisqu|qu)['’](.+)", "i"); this._zCompoundWord = new RegExp ("([a-zA-Zà-ö0-9À-Öø-ÿØ-ßĀ-ʯ]+)-((?:les?|la)-(?:moi|toi|lui|[nv]ous|leur)|t-(?:il|elle|on)|y|en|[mts][’'](?:y|en)|les?|l[aà]|[mt]oi|leur|lui|je|tu|ils?|elles?|on|[nv]ous)$", "i"); this._zTag = new RegExp ("[:;/][a-zA-Zà-ö0-9À-Öø-ÿØ-ßĀ-ʯ*][^:;/]*", "g"); }; |
︙ |
Modified gc_lang/fr/xpi/data/gc_panel.css from [96f3d08e72] to [75ceec5406].
1 2 3 4 5 6 7 8 9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | - - - - - - + + + | /* panel.css */ @import url("common.css"); header { background-color: hsl(0, 0%, 96%); padding: 10px 20px; border-bottom: 1px solid hsl(0, 0%, 90%); color: hsl(0, 0%, 0%); |
︙ | |||
48 49 50 51 52 53 54 | 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | - + + + + + + + + + + - + - + - - - - - - - - - - - - - - - - - - - - - - - - | background-color: hsla(0, 50%, 20%, .8); border: 2px solid hsla(0, 50%, 10%, .8); border-radius: 5px; text-align: center; color: hsla(0, 0%, 100%, .9); font-size: 16px; font-weight: bold; |
︙ | |||
150 151 152 153 154 155 156 | 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 | - + + + + + - + + + + - - - - - - - - - - - - - + + + - - - + + + - - - - - + + + - - - - + + + + + + - - + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - | border-radius: 2px; text-decoration: none; /* to remove for wavy underlines */ } .paragraph u.error:hover { cursor: pointer; } |
︙ | |||
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 | 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 | + + + - + - + | background-color: hsl(30, 50%, 50%); color: hsl(30, 0%, 96%); } .actions .orange:hover { background-color: hsl(30, 70%, 40%); color: hsl(30, 0%, 100%); } .actions .bold { font-weight: bold; } /* ERRORS */ .error { /* default color */ background-color: hsl(240, 10%, 50%); color: hsl(240, 0%, 96%); } .error:hover { background-color: hsl(240, 10%, 40%); color: hsl(240, 0%, 100%); } /* elems */ |
︙ |
Modified gc_lang/fr/xpi/data/gc_panel.html from [8bf8693bcb] to [d305cfd15a].
︙ | |||
49 50 51 52 53 54 55 56 57 58 59 60 | 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | + + + + + + + + + + + + + + + + + + + + + + + + | <p class="center" style="margin: 10px 0"><a href="https://fr.ulule.com/grammalecte-2/" onclick="return false;">Campagne de financement participatif…</a></p> </div> <div id="errorlist"> <!-- result comes here --> </div> <img id="gc_tooltip_arrow" src="img/gc_tooltip_arrow.png" alt="^"> <img id="sc_tooltip_arrow" src="img/sc_tooltip_arrow.png" alt="^"> <div id="gc_tooltip" class="tooltip"> <!-- grammar error --> <div id="gc_message_block"> <p id="gc_rule_id"></p> <p id="gc_message">Erreur grammaticale.</p> <a id="gc_ignore" href="#">Ignorer</a> <a id="gc_url" href="" onclick="return false;">Voulez-vous en savoir plus ?…</a> </div> <div id="gc_sugg_title">SUGGESTIONS :</div> <div id="gc_sugg_block"></div> </div> <div id="sc_tooltip" class="tooltip"> <!-- spelling error --> <div id="sc_message_block"> <p id="sc_message">Mot inconnu du dictionnaire.</p> <a id="sc_ignore" href="#">Ignorer</a> </div> <div id="sc_sugg_title">SUGGESTIONS :</div> <div id="sc_sugg_block"></div> </div> </body> </html> |
Modified gc_lang/fr/xpi/data/gc_panel.js from [74635d32f6] to [3ba65998c7].
1 2 3 4 5 6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 | + - + + + - - - - - - - - + + + + + + - - + + - - - - - - - + + + + + + + - + - + - + - - - + + + + - + + - - + + - - - - - + + + - + + + - + - - + + - + - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + - - + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + - - + - - - - + + + - - + + + + + + + + + + + + + + + + + - + - - + - - - - - + + + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + - - - + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + + + - - - - - + + + + + + + - - - - - + + + + + + + + + + - - - - + + + + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + - - - - - - - - - - - + + + + + + + + + + - - - - - + + + + + - - - - - + + + + + + + + + + + + + + + + | // JavaScript let nPanelWidth = 0; // must be set at launch let bExpanded = true; /* Ignored errors |
Added gc_lang/fr/xpi/data/img/gc_tooltip_arrow.png version [fd88b7cdf7].
cannot compute difference between binary files
Added gc_lang/fr/xpi/data/img/sc_tooltip_arrow.png version [983d7be01e].
cannot compute difference between binary files
Modified gc_lang/fr/xpi/data/lxg_panel.css from [beaf75f9d5] to [3d666aa76c].
︙ | |||
38 39 40 41 42 43 44 45 46 47 48 | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | + + + - + + + + - + + + + + + + - + + + + - - + + | padding: 5px 50px; background-color: hsla(0, 0%, 75%, 1); color: hsla(0, 0%, 96%, 1); border-radius: 5px; text-align: center; font-size: 20px; } #wordlist .token { margin: 8px; } #wordlist ul { margin: 0 0 5px 40px; } #wordlist b { |
︙ |
Modified gc_lang/fr/xpi/data/lxg_panel.js from [8999221c88] to [4bd6c52064].
︙ | |||
23 24 25 26 27 28 29 | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | - - - + - - - + + + + - + - - - + | // Conjugueur document.getElementById('conjugueur').addEventListener("click", function (event) { self.port.emit('openConjugueur'); }); */ self.port.on("addSeparator", function (sText) { |
︙ | |||
63 64 65 66 67 68 69 70 71 72 73 74 75 76 | 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | self.port.emit("resize", xElem.id, 10); } } }, false ); /* Actions */ function addSeparator (sText) { if (document.getElementById("wordlist").textContent !== "") { let xElem = document.createElement("p"); xElem.className = "separator"; xElem.textContent = sText; document.getElementById("wordlist").appendChild(xElem); } } function addMessage (sClass, sText) { let xNode = document.createElement("p"); xNode.className = sClass; xNode.textContent = sText; document.getElementById("wordlist").appendChild(xNode); } function addParagraphElems (sJSON) { try { let xNodeDiv = document.createElement("div"); xNodeDiv.className = "paragraph"; let lElem = JSON.parse(sJSON); for (let oToken of lElem) { xNodeDiv.appendChild(createTokenNode(oToken)); } document.getElementById("wordlist").appendChild(xNodeDiv); } catch (e) { console.error("\n" + e.fileName + "\n" + e.name + "\nline: " + e.lineNumber + "\n" + e.message); console.error(sJSON); } } function createTokenNode (oToken) { let xTokenNode = document.createElement("div"); xTokenNode.className = "token " + oToken.sType; let xTokenValue = document.createElement("b"); xTokenValue.className = oToken.sType; xTokenValue.textContent = oToken.sValue; xTokenNode.appendChild(xTokenValue); let xSep = document.createElement("s"); xSep.textContent = " : "; xTokenNode.appendChild(xSep); if (oToken.aLabel.length === 1) { xTokenNode.appendChild(document.createTextNode(oToken.aLabel[0])); } else { let xTokenList = document.createElement("ul"); for (let sLabel of oToken.aLabel) { let xTokenLine = document.createElement("li"); xTokenLine.textContent = sLabel; xTokenList.appendChild(xTokenLine); } xTokenNode.appendChild(xTokenList); } return xTokenNode; } // display selection function displayClasses () { setHidden("ok", document.getElementById("ok").checked); setHidden("mbok", document.getElementById("mbok").checked); setHidden("nb", document.getElementById("nb").checked); |
︙ |
Modified gc_lang/fr/xpi/data/test_panel.js from [7ad6cf391b] to [c07ad2c400].
1 2 3 4 5 6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | - - - + + + | // JavaScript /* Events */ |
︙ |
Modified gc_lang/fr/xpi/gce_worker.js from [378b08526d] to [be41214f38].
︙ | |||
82 83 84 85 86 87 88 | 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | - + - - - - - - - - - - - - - - - - - - - - - - | function parse (sText, sLang, bDebug, bContext) { let aGrammErr = gce.parse(sText, sLang, bDebug, bContext); return JSON.stringify(aGrammErr); } function parseAndSpellcheck (sText, sLang, bDebug, bContext) { let aGrammErr = gce.parse(sText, sLang, bDebug, bContext); |
︙ | |||
144 145 146 147 148 149 150 | 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | - + - - - + + + + + + + + + + + + + + + + | gce.setOptions(helpers.objectToMap(JSON.parse(sGCOptions))); } let tests = require("resource://grammalecte/tests.js"); let oTest = new tests.TestGrammarChecking(gce); let sAllRes = ""; for (let sRes of oTest.testParse()) { dump(sRes+"\n"); |
Modified gc_lang/fr/xpi/package.json from [f43a7abb52] to [7e2435c537].
1 2 3 4 | 1 2 3 4 5 6 7 8 9 10 11 12 | - + | { "name": "grammalecte-fr", "title": "Grammalecte [fr]", "id": "French-GC@grammalecte.net", |
︙ |
Modified gc_lang/fr/xpi/ui.js from [d81c939773] to [eccf91a376].
︙ | |||
345 346 347 348 349 350 351 | 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 | - + - + | if (sText.includes("<!-- err_end -->") || sText.includes('<span id="tooltip') || sText.includes('<u id="err')) { return false; } return true; } function checkAndSendToPanel (sIdParagraph, sText) { |
︙ | |||
414 415 416 417 418 419 420 | 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 | - - + + - + - + | let iParagraph = 0; // index of paragraphs, used for identification let nParagraph = 0; // non empty paragraphs let sRes = ""; try { sText = sText.normalize("NFC"); // remove combining diacritics for (let sParagraph of text.getParagraph(sText)) { if (sParagraph.trim() !== "") { |
︙ | |||
567 568 569 570 571 572 573 | 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 | - - + + - + - + | xLxgPanel.port.emit("addSeparator", _("separator")); loadGrammarChecker(); let nParagraph = 0; // non empty paragraphs let sRes = ""; try { for (let sParagraph of text.getParagraph(sText)) { if (sParagraph.trim() !== "") { |
︙ |