Grammalecte  Check-in [130e7f56ac]

Overview
Comment:[fr][bug] conj_generator: wrong var name
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fr | multid
Files: files | file ages | folders
SHA3-256: 130e7f56ac89936bb619fe5ebe1945a05d2f1813b1ebade81eab12e70b6325d2
User & Date: olr on 2018-03-09 21:00:57
Other Links: branch diff | manifest | tags
Context
2018-03-09
21:18
[fx] lexicon editor: adjustments check-in: 5ffa64be0b user: olr tags: fx, multid
21:00
[fr][bug] conj_generator: wrong var name check-in: 130e7f56ac user: olr tags: fr, multid
17:27
[fx] lexicon editor: code clarification + ui ongoing work check-in: 6ac2cd76c8 user: olr tags: fx, multid
Changes

Modified gc_lang/fr/modules-js/conj_generator.js from [9ad4d6b546] to [5263579a95].

10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

var conj_generator = {

    conjugate: function (sVerb, sVerbTag="i_____a", bVarPpas=true) {
        let lConj = [];
        let cGroup = this.getVerbGroupChar(sVerb);
        for (let [nCut, sAdd, sFlexTags, sPattern] of this.getConjRules(sVerb)) {
            if (!sPattern || RegExp(sPattern).test(sLemma)) {
                lConj.push( [sVerb.slice(0, -nCut) + sAdd, ":V" + cGroup + "_" + sVerbTag + sFlexTags] );
            }
        }
        return lConj;
    },

    getVerbGroupChar: function (sVerb) {







|







10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

var conj_generator = {

    conjugate: function (sVerb, sVerbTag="i_____a", bVarPpas=true) {
        let lConj = [];
        let cGroup = this.getVerbGroupChar(sVerb);
        for (let [nCut, sAdd, sFlexTags, sPattern] of this.getConjRules(sVerb)) {
            if (!sPattern || RegExp(sPattern).test(sVerb)) {
                lConj.push( [sVerb.slice(0, -nCut) + sAdd, ":V" + cGroup + "_" + sVerbTag + sFlexTags] );
            }
        }
        return lConj;
    },

    getVerbGroupChar: function (sVerb) {