Overview
Comment: | [fx] use personal dictionary + [graphspell][js] spellchecker: fix JS syntax |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | fx | graphspell | multid |
Files: | files | file ages | folders |
SHA3-256: |
7f65ce689c94cd0192ca37db300e3377 |
User & Date: | olr on 2018-02-16 14:42:04 |
Original Comment: | [graphspell][js] spellchecker: fix JS syntax |
Other Links: | branch diff | manifest | tags |
Context
2018-02-16
| ||
15:40 | [grphspell][js] ibdawg: use ... instead of concat check-in: 254e33fe66 user: olr tags: graphspell, multid | |
14:42 | [fx] use personal dictionary + [graphspell][js] spellchecker: fix JS syntax check-in: 7f65ce689c user: olr tags: fx, graphspell, multid | |
2018-02-13
| ||
18:34 | [graphspell] add space in comments check-in: 6a6c2f6878 user: olr tags: graphspell, multid | |
Changes
Modified gc_lang/fr/webext/background.js from [f7965949be] to [1d15c00f44].
︙ | |||
58 59 60 61 62 63 64 65 66 67 68 69 70 71 | 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | + + + | } browser.runtime.sendMessage(e.data); break; case "setOptions": case "setOption": storeGCOptions(result); break; case "setDictionary": console.log("[background] " + sActionDone + ": " + result); break; default: console.log("[background] Unknown command: " + sActionDone); console.log(e.data); } } catch (e) { showError(e); |
︙ | |||
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | 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 | + + + + + + + + + + + + + + + + + + + + + | let dOptions = (dSavedOptions.hasOwnProperty("gc_options")) ? dSavedOptions.gc_options : null; xGCEWorker.postMessage({ sCommand: "init", dParam: {sExtensionPath: browser.extension.getURL(""), dOptions: dOptions, sContext: "Firefox"}, dInfo: {} }); } function setSpellingDictionary (dSavedDictionary) { if (dSavedDictionary.hasOwnProperty("oExtendedDictionary")) { xGCEWorker.postMessage({ sCommand: "setDictionary", dParam: { sType: "extended", oDict: dSavedDictionary["oExtendedDictionary"] }, dInfo: {} }); } else if (dSavedDictionary.hasOwnProperty("oPersonalDictionary")) { xGCEWorker.postMessage({ sCommand: "setDictionary", dParam: { sType: "personal", oDict: dSavedDictionary["oPersonalDictionary"] }, dInfo: {} }); } } function init () { if (bChrome) { browser.storage.local.get("gc_options", initGrammarChecker); browser.storage.local.get("ui_options", initUIOptions); browser.storage.local.get("oExtendedDictionary", setSpellingDictionary); browser.storage.local.get("oPersonalDictionary", setSpellingDictionary); return; } browser.storage.local.get("gc_options").then(initGrammarChecker, showError); browser.storage.local.get("ui_options").then(initUIOptions, showError); browser.storage.local.get("oExtendedDictionary").then(setSpellingDictionary, showError); browser.storage.local.get("oPersonalDictionary").then(setSpellingDictionary, showError); } init(); browser.runtime.onInstalled.addListener(function (oDetails) { // launched at installation or update |
︙ | |||
131 132 133 134 135 136 137 138 139 140 141 142 143 144 | 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | + | case "getOptions": case "getDefaultOptions": case "setOptions": case "setOption": case "resetOptions": case "textToTest": case "fullTests": case "setDictionary": xGCEWorker.postMessage(oRequest); break; case "openURL": browser.tabs.create({url: dParam.sURL}); break; default: console.log("[background] Unknown command: " + sCommand); |
︙ |
Modified gc_lang/fr/webext/gce_worker.js from [fb2b2e5711] to [c20f81d8f3].
︙ | |||
117 118 119 120 121 122 123 124 125 126 127 128 129 130 | 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | + + + | break; case "textToTest": textToTest(dParam.sText, dParam.sCountry, dParam.bDebug, dParam.bContext, dInfo); break; case "fullTests": fullTests(dInfo); break; case "setDictionary": setDictionary(dParam.sType, dParam.oDict, dInfo); break; case "getSpellSuggestions": getSpellSuggestions(dParam.sWord, dInfo); break; case "getListOfTokens": getListOfTokens(dParam.sText, dInfo); break; default: |
︙ | |||
285 286 287 288 289 290 291 | 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 | - + + + + + + + + + + + + + + + + + + + + + + + + - + | console.log(sRes); } gc_engine.setOptions(dMemoOptions); postMessage(createResponse("fullTests", sMsg, dInfo, true)); } |
︙ |
Modified gc_lang/fr/webext/panel/lex_editor.js from [629a2b4b0e] to [2142dc301a].
︙ | |||
568 569 570 571 572 573 574 | 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 | - + - + - + - + + - + | const oBinaryDict = { oIBDAWG: null, load: function () { if (bChrome) { |
︙ |
Modified graphspell-js/spellchecker.js from [82a4eba2bb] to [61ed7ab1e9].
︙ | |||
58 59 60 61 62 63 64 | 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 | - + - + - + | return null; } } setMainDictionary (dictionary) { // returns true if the dictionary is loaded this.oMainDic = this._loadDictionary(dictionary); |
︙ | |||
121 122 123 124 125 126 127 | 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | - + - + | return false; } getMorph (sWord) { // retrieves morphologies list, different casing allowed let lResult = this.oMainDic.getMorph(sWord); if (this.oExtendedDic) { |
︙ |