Comment: | merge trunk |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | multid |
Files: | files | file ages | folders |
SHA3-256: |
a693df4168bdf3ce0071a501c0614d8a |
User & Date: | olr on 2018-03-07 17:32:24 |
Original Comment: | marge trunk |
Other Links: | branch diff | manifest | tags |
2018-03-09
| ||
08:26 | [fx] lexicon editor: update (new draft) check-in: 19e588f821 user: olr tags: fx, multid | |
2018-03-07
| ||
17:32 | merge trunk check-in: a693df4168 user: olr tags: multid | |
16:10 | [fx] hide useless panel about dictionaries for now check-in: 94e2e47aea user: olr tags: trunk, fx | |
2018-03-06
| ||
21:14 | [lo] lexicon editor: ui update check-in: adee0f51ee user: olr tags: lo, multid | |
Modified gc_lang/fr/dictionnaire/genfrdic.py from [31b6065518] to [fbdbd49c59].
︙ | |||
838 839 840 841 842 843 844 845 846 847 848 849 850 851 | 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 | + + + + | if re.search(r"pl|sg|inv", self.iz) and re.match(r"[SXAIFW](?!=)", self.flags): sErr += '[is]' if re.search(r"nom|adj", self.po) and re.match(r"(?i)[aâàäáeéèêëiîïíìoôöóòuûüúù]", self.lemma) and re.match("[SFWXAI][.]", self.flags) \ and "pel" not in self.lx: sErr += 'le drapeau derait finir avec *' if not self.flags and self.iz.endswith(("mas", "fem", "epi")): sErr += '[is] incomplet' if self.flags.startswith(("a", "b", "c", "d")) and not self.lemma.endswith("er"): sErr += "drapeau pour verbe du 1ᵉʳ groupe sur un lemme non conforme" if self.flags.startswith("f") and not self.lemma.endswith("ir"): sErr += "drapeau pour verbe du 2ᵉ groupe sur un lemme non conforme" if sErr: echo(' error - id: ' + self.iD, end = "") echo(' ' + sErr + ' in ' + self.__str__()) def setTagsFrom (self, oEnt): self.po = oEnt.po self.iz = oEnt.iz |
︙ |
Modified gc_lang/fr/webext/background.js from [1f59a4fda9] to [716a2f0752].
︙ | |||
54 55 56 57 58 59 60 | 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 | - - - - - + + + + - + - - - - - - - - - + + + + + + + + + + + + + + | browser.runtime.sendMessage(e.data); break; case "getOptions": case "getDefaultOptions": case "resetOptions": // send result to panel storeGCOptions(result); |
︙ | |||
313 314 315 316 317 318 319 | 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 | - + - | /* Actions */ function storeGCOptions (dOptions) { |
︙ |
Modified gc_lang/fr/webext/content_scripts/init.js from [8dd0bc574d] to [86174a3577].
︙ | |||
236 237 238 239 240 241 242 | 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 | - + | if (!bEnd) { oGrammalecte.oLxgPanel.addListOfTokens(result); } else { oGrammalecte.oLxgPanel.stopWaitIcon(); } break; case "getSpellSuggestions": |
︙ |
Modified gc_lang/fr/webext/content_scripts/panel_gc.css from [c9ea205d87] to [60aa48d094].
︙ | |||
109 110 111 112 113 114 115 116 117 | 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | + - + | color: hsla(210, 0%, 96%, 1); font-family: Tahoma, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", sans-serif; font-size: 11px; font-style: normal; text-align: center; } #grammalecte_tooltip_message { margin: 0 0 5px 0; font-family: Tahoma, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", sans-serif; font-size: 15px; |
︙ | |||
148 149 150 151 152 153 154 155 156 157 158 159 160 161 | 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 | + + + + + + + + + + + | #grammalecte_tooltip_url:hover { background-color: hsl(210, 50%, 60%); color: hsla(0, 0%, 100%, 1); text-shadow: 0 0 3px hsl(210, 30%, 60%); } #grammalecte_tooltip_sugg_title { padding: 0 10px; background-color: hsl(210, 10%, 90%); color: hsl(210, 50%, 30%); font-family: Tahoma, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", sans-serif; font-size: 10px; font-weight: bold; } .grammalecte_tooltip_other_sugg_title { margin: 5px 0; padding: 0px 10px; line-height: normal; border-radius: 2px; background-color: hsl(210, 10%, 90%); color: hsl(210, 50%, 30%); font-family: Tahoma, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", sans-serif; font-size: 10px; font-weight: bold; } #grammalecte_tooltip_sugg_block { |
︙ |
Modified gc_lang/fr/webext/content_scripts/panel_gc.js from [830eee61d0] to [8bd37de1f6].
︙ | |||
390 391 392 393 394 395 396 | 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 | - + + - + + + - + + + + + + | xNodeSugg.id = "grammalecte_sugg" + sErrorId + "--" + iSugg.toString(); xNodeSugg.className = "grammalecte_tooltip_sugg"; xNodeSugg.dataset.error_id = sErrorId; xNodeSugg.textContent = sSugg; return xNodeSugg; } |
︙ |
Modified gc_lang/fr/webext/gce_worker.js from [9f37b00cd8] to [42760d524d].
︙ | |||
164 165 166 167 168 169 170 | 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 | - - + - + + + - + | phonet.init(helpers.loadFile(sExtensionPath + "/grammalecte/fr/phonet_data.json")); mfsp.init(helpers.loadFile(sExtensionPath + "/grammalecte/fr/mfsp_data.json")); //console.log("[Worker] Modules have been initialized…"); gc_engine.load(sContext, sExtensionPath+"grammalecte/graphspell/_dictionaries"); oSpellChecker = gc_engine.getSpellChecker(); oTest = new TestGrammarChecking(gc_engine, sExtensionPath+"/grammalecte/fr/tests_data.json"); oTokenizer = new Tokenizer("fr"); |
︙ | |||
216 217 218 219 220 221 222 | 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 | + - + + - + + + + + - + + - + + - + | sParagraph = sParagraph.replace(//g, "").normalize("NFC"); let aGrammErr = gc_engine.parse(sParagraph, sCountry, bDebug, bContext); let aSpellErr = oSpellChecker.parseParagraph(sParagraph); postMessage(createResponse("parseAndSpellcheck1", {sParagraph: sParagraph, aGrammErr: aGrammErr, aSpellErr: aSpellErr}, dInfo, true)); } function getOptions (dInfo={}) { let dOptions = helpers.mapToObject(gc_engine.getOptions()); |
︙ | |||
321 322 323 324 325 326 327 | 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 | - + - + | } function getSpellSuggestions (sWord, dInfo) { if (!oSpellChecker) { postMessage(createResponse("getSpellSuggestions", "# Error. SpellChecker not loaded.", dInfo, true)); return; } |
︙ |
Modified gc_lang/fr/webext/manifest.json from [92ab4049ef] to [3eba02bf89].
1 2 3 4 | 1 2 3 4 5 6 7 8 9 10 11 12 | - + | { "manifest_version": 2, "name": "Grammalecte [fr]", "short_name": "Grammalecte [fr]", |
︙ |
Modified gc_lang/fr/webext/panel/main.html from [8eedb25cf8] to [d1aef2340b].
︙ | |||
24 25 26 27 28 29 30 | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | - + - + | <p class="select" data-page="ui_options_page"><i class="select select_icon fa fa-cube" data-page="ui_options_page"></i></p> <p class="select select_label" data-page="ui_options_page">Interface</p> </div> <div class="select select_block" data-page="gc_options_page"> <p class="select" data-page="gc_options_page"><i class="select select_icon fa fa-cog" data-page="gc_options_page"></i></p> <p class="select select_label" data-page="gc_options_page">Grammaire</p> </div> |
︙ |
Modified gc_lang/fr/webext/panel/main.js from [67d345836f] to [200b11bbbc].
︙ | |||
101 102 103 104 105 106 107 | 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | - + | let {sActionDone, result, dInfo, bEnd, bError} = oMessage; switch(sActionDone) { case "textToTest": case "fullTests": showTestResult(result); break; case "resetOptions": |
︙ | |||
125 126 127 128 129 130 131 | 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | - + - + | // hide them all for (let xNodePage of document.getElementsByClassName("page")) { xNodePage.style.display = "none"; } // show the selected one document.getElementById(sPageName).style.display = "block"; if (sPageName == "gc_options_page") { |
︙ | |||
172 173 174 175 176 177 178 | 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | - + - + - + - + | } /* UI options */ |
︙ | |||
205 206 207 208 209 210 211 | 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 | - + - + - + - + - + - + - - - - - - - - + + + - + | }}); } /* GC options */ |
Modified graphspell-js/helpers.js from [d6421f5497] to [b70dea39e2].
︙ | |||
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | 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 | + + + + + + | this.logerror(e); return null; } }, // conversions objectToMap: function (obj) { if (obj == null) { return null; } let m = new Map(); for (let param in obj) { m.set(param, obj[param]); } return m; }, mapToObject: function (m) { if (m == null) { return null; } let obj = {}; for (let [k, v] of m) { obj[k] = v; } return obj; } }; |
︙ |