Overview
| Comment: | [core][js] mfsp initialization |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | core | webext2 |
| Files: | files | file ages | folders |
| SHA3-256: |
ef57c2c66f7d7352f19d19b37da6d5d5 |
| User & Date: | olr on 2017-08-03 08:43:26 |
| Other Links: | branch diff | manifest | tags |
Context
|
2017-08-03
| ||
| 09:06 | [core][js] phonet initialization check-in: 1d14af8272 user: olr tags: core, webext2 | |
| 08:43 | [core][js] mfsp initialization check-in: ef57c2c66f user: olr tags: core, webext2 | |
| 08:24 | [core][js] conj initialization check-in: 63625992e9 user: olr tags: core, webext2 | |
Changes
Modified gc_lang/fr/modules-js/conj.js from [a6c15a3f17] to [afb5910674].
| ︙ | |||
477 478 479 480 481 482 483 | 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 | - + |
}
// Initialization
if (typeof(browser) !== 'undefined') {
// WebExtension
conj.init(helpers.loadFile(browser.extension.getURL("grammalecte/fr/conj_data.json")));
|
| ︙ |
Modified gc_lang/fr/modules-js/mfsp.js from [26dca0e03e] to [7cd637b4cc].
1 2 3 4 5 | 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 | - + - - - - - + + + + - - - + + + + - - - - - + + + + + + + + + + + + + - - + + - + - + - - + + - + | // Grammalecte "use strict"; |
| ︙ | |||
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | 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 | + + + + + + + + + + + + |
catch (e) {
console.log(e);
return "## erreur, code : " + sSfx + " ##";
}
}
}
// Initialization
if (typeof(browser) !== 'undefined') {
// WebExtension
mfsp.init(helpers.loadFile(browser.extension.getURL("grammalecte/fr/mfsp_data.json")));
} else if (typeof(require) !== 'undefined') {
// Add-on SDK and Thunderbird
mfsp.init(helpers.loadFile("resource://grammalecte/fr/mfsp_data.json"));
} else {
console.log("Error: Impossible d’initialiser le module mfsp");
}
if (typeof(exports) !== 'undefined') {
exports.isFemForm = mfsp.isFemForm;
exports.getMasForm = mfsp.getMasForm;
exports.hasMiscPlural = mfsp.hasMiscPlural;
exports.getMiscPlural = mfsp.getMiscPlural;
exports._whatSuffixCode = mfsp._whatSuffixCode;
exports._modifyStringWithSuffixCode = mfsp._modifyStringWithSuffixCode;
}
|
Modified gc_lang/fr/webext/gce_worker.js from [804f6b6cbe] to [0692342b85].
| ︙ | |||
21 22 23 24 25 26 27 28 29 30 31 32 33 34 | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | + + |
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export
*/
helpers.echo("START");
helpers.echo(conj.getConj("devenir", ":E", ":2s"));
helpers.echo(mfsp.getMasForm("emmerdeuse", true));
helpers.echo(mfsp.getMasForm("pointilleuse", false));
let oTokenizer = null;
let oDict = null;
let oLxg = null;
function loadGrammarChecker (sGCOptions="", sContext="JavaScript") {
if (gce === null) {
|
| ︙ |
Modified gc_lang/fr/webext/manifest.json from [282aafe91a] to [8518105802].
| ︙ | |||
31 32 33 34 35 36 37 38 39 40 41 42 43 44 | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | + |
},
"background": {
"scripts": [
"grammalecte/helpers.js",
"grammalecte/text.js",
"grammalecte/tokenizer.js",
"grammalecte/fr/conj.js",
"grammalecte/fr/mfsp.js",
"gce_worker.js"
]
},
"web_accessible_resources": [
"grammalecte/fr/conj_data.json",
"grammalecte/fr/mfsp_data.json",
"grammalecte/fr/phonet_data.json",
|
| ︙ |