Grammalecte  Check-in [4cffd5d5c6]

Overview
Comment:[njs] Load personal dic error argument when is json
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | nodejs
Files: files | file ages | folders
SHA3-256: 4cffd5d5c6838bdf0422c4926268949535e4f80bca565ea3abf47892dd4cc796
User & Date: IllusionPerdu on 2018-10-22 18:50:15
Other Links: branch diff | manifest | tags
Context
2018-10-22
23:31
[njs][build] Add command to create file to distrib and ajust package.json Leaf check-in: e62a1b8a62 user: IllusionPerdu tags: nodejs
18:50
[njs] Load personal dic error argument when is json check-in: 4cffd5d5c6 user: IllusionPerdu tags: nodejs
11:22
[njs] Update doc check-in: b52fc4588c user: IllusionPerdu tags: nodejs
Changes

Modified gc_lang/fr/nodejs/core/api.js from [af514e995f] to [ac6bdb1804].

230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
                let dirname = path.dirname(pathnormalized);
                return this.oSpellChecker.setPersonalDictionary(filename, dirname, bActivate);
            }
            return false;
        }
        //It's a valid json?
        if (typeof dictionary !== "undefined" && dictionary.sHeader && dictionary.sHeader.startsWith("/grammalecte-fsa/")) {
            return this.oSpellChecker.setPersonalDictionary(dictionary, bActivate);
        }
        return false;
    }

    spellParagraph(sText, bSuggest = true) {
        if (!this.isInit.Graphspell) {
            this.load(["Graphspell"]);







|







230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
                let dirname = path.dirname(pathnormalized);
                return this.oSpellChecker.setPersonalDictionary(filename, dirname, bActivate);
            }
            return false;
        }
        //It's a valid json?
        if (typeof dictionary !== "undefined" && dictionary.sHeader && dictionary.sHeader.startsWith("/grammalecte-fsa/")) {
            return this.oSpellChecker.setPersonalDictionary(dictionary, "", bActivate);
        }
        return false;
    }

    spellParagraph(sText, bSuggest = true) {
        if (!this.isInit.Graphspell) {
            this.load(["Graphspell"]);