Grammalecte  Check-in [e85aa05f71]

Overview
Comment:[tb] small update
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tb | gcerw
Files: files | file ages | folders
SHA3-256: e85aa05f712472b0fd014597597b829ff3f3647992bbd4d4aa40629762fff237
User & Date: olr on 2020-04-17 20:46:24
Other Links: branch diff | manifest | tags
Context
2020-04-18
16:16
merge trunk check-in: 9178b9116a user: olr tags: gcerw
2020-04-17
20:46
[tb] small update check-in: e85aa05f71 user: olr tags: tb, gcerw
20:01
[tb] update gce_worker (still not working) check-in: 4d1ac4562e user: olr tags: tb, gcerw
Changes

Modified gc_core/js/lang_core/gc_engine.js from [588d7fb4c8] to [c3e17d2693].

1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1008
1009
1010
1011
1012
1013
1014

1015
1016
1017
1018
1019
1020
1021







-







    exports.lang = gc_engine.lang;
    exports.locales = gc_engine.locales;
    exports.pkg = gc_engine.pkg;
    exports.name = gc_engine.name;
    exports.version = gc_engine.version;
    exports.author = gc_engine.author;
    // objects
    exports.getSpellChecker = gc_engine.getSpellChecker;
    exports.oSpellChecker = gc_engine.oSpellChecker;
    exports.oTokenizer = gc_engine.oTokenizer;
    exports.aIgnoredRules = gc_engine.aIgnoredRules;
    exports.oOptionsColors = gc_engine.oOptionsColors;
    // init
    exports.load = gc_engine.load;
    exports.parse = gc_engine.parse;

Modified gc_lang/fr/mailext/worker/gce_worker.js from [19b6bbcbb9] to [82ae52c3f8].

54
55
56
57
58
59
60
61

62
63
64
65
66
67
68
54
55
56
57
58
59
60

61
62
63
64
65
66
67
68







-
+







            gc_engine = require("resource://grammalecte/fr/gc_engine.js");
            helpers = require("resource://grammalecte/graphspell/helpers.js");
            text = require("resource://grammalecte/text.js");
            //lexgraph_fr = require("resource://grammalecte/graphspell/lexgraph_fr.js");
            gc_engine.load(sContext, "sCSS");
            oSpellChecker = gc_engine.getSpellChecker();
            if (sGCOptions !== "") {
                console.log(sGCOptions);
                console.log("set options:", sGCOptions);
                gc_options.setOptions(helpers.objectToMap(JSON.parse(sGCOptions)));
            }
            // we always retrieve options from the gc_engine, for setOptions filters obsolete options
            return gc_options.getOptions().gl_toString();
        }
        catch (e) {
            console.log("# Error: " + e.fileName + "\n" + e.name + "\nline: " + e.lineNumber + "\n" + e.message);