Grammalecte  Check-in [ec97664b24]

Overview
Comment:[core][js] default properties in conj, phonet and mfsp + export all properties of mfsp
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core | webext2
Files: files | file ages | folders
SHA3-256: ec97664b248c5346fc0174a230099ecc9c97fe32e9d2a43e9e88e9ebf3045f53
User & Date: olr on 2017-08-03 09:10:38
Other Links: branch diff | manifest | tags
Context
2017-08-03
10:04
[core][js] ibdawg initialization check-in: 3d1c080fa8 user: olr tags: core, webext2
09:10
[core][js] default properties in conj, phonet and mfsp + export all properties of mfsp check-in: ec97664b24 user: olr tags: core, webext2
09:06
[core][js] phonet initialization check-in: 1d14af8272 user: olr tags: core, webext2
Changes

Modified gc_lang/fr/modules-js/conj.js from [afb5910674] to [3dc81e8a3f].

3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

"use strict";

${map}


const conj = {
    _lVtyp: null,
    _lTags: null,
    _dPatternConj: {},
    _dVerb: {},

    init: function (sJSONData) {
        try {
            let _oData = JSON.parse(sJSONData);
            this._lVtyp = _oData.lVtyp;







|
|







3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

"use strict";

${map}


const conj = {
    _lVtyp: [],
    _lTags: [],
    _dPatternConj: {},
    _dVerb: {},

    init: function (sJSONData) {
        try {
            let _oData = JSON.parse(sJSONData);
            this._lVtyp = _oData.lVtyp;

Modified gc_lang/fr/modules-js/mfsp.js from [7cd637b4cc] to [33bc239621].

6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
...
100
101
102
103
104
105
106





107
108
109
110
111
112
113
if (typeof(require) !== 'undefined') {
    var helpers = require("resource://grammalecte/helpers.js");
}


const mfsp = {
    // list of affix codes
    _lTagMiscPlur: null,
    _lTagMasForm: null,
    // dictionary of words with uncommon plurals (-x, -ux, english, latin and italian plurals) and tags to generate them
    _dMiscPlur: {},
    // dictionary of feminine forms and tags to generate masculine forms (singular and plural)
    _dMasForm: {},

    init: function (sJSONData) {
        try {
................................................................................
    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;
}







|
|







 







>
>
>
>
>







6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
...
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
if (typeof(require) !== 'undefined') {
    var helpers = require("resource://grammalecte/helpers.js");
}


const mfsp = {
    // list of affix codes
    _lTagMiscPlur: [],
    _lTagMasForm: [],
    // dictionary of words with uncommon plurals (-x, -ux, english, latin and italian plurals) and tags to generate them
    _dMiscPlur: {},
    // dictionary of feminine forms and tags to generate masculine forms (singular and plural)
    _dMasForm: {},

    init: function (sJSONData) {
        try {
................................................................................
    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._lTagMiscPlur = mfsp._lTagMiscPlur;
    exports._lTagMasForm = mfsp._lTagMasForm;
    exports._dMiscPlur = mfsp._dMiscPlur;
    exports._dMasForm = mfsp._dMasForm;
    exports.init = mfsp.init;
    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/modules-js/phonet.js from [24f239f989] to [828ddc2ac6].

2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

if (typeof(require) !== 'undefined') {
    var helpers = require("resource://grammalecte/helpers.js");
}


const phonet = {
    _dWord: null,
    _lSet: null,
    _dMorph: null,

    init: function (sJSONData) {
        try {
            let _oData = JSON.parse(sJSONData);
            this._dWord = helpers.objectToMap(_oData.dWord);
            this._lSet = _oData.lSet;
            this._dMorph = helpers.objectToMap(_oData.dMorph);







|
|
|







2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

if (typeof(require) !== 'undefined') {
    var helpers = require("resource://grammalecte/helpers.js");
}


const phonet = {
    _dWord: {},
    _lSet: [],
    _dMorph: {},

    init: function (sJSONData) {
        try {
            let _oData = JSON.parse(sJSONData);
            this._dWord = helpers.objectToMap(_oData.dWord);
            this._lSet = _oData.lSet;
            this._dMorph = helpers.objectToMap(_oData.dMorph);