Grammalecte  Check-in [e9f97a8a3d]

Overview
Comment:[fr][bug] lexicographe: détection de la fin d’un lemme
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fr | rg
Files: files | file ages | folders
SHA3-256: e9f97a8a3db8ab5985b9415ccfb0520a02f0fcbd7007776dfcceb4d020a4ec27
User & Date: olr on 2018-09-19 16:04:18
Other Links: branch diff | manifest | tags
Context
2018-09-19
18:36
[core][build][fr] merge rg: GC ENGINE REWRITTEN (tokenization and rules merged as graphs) check-in: c784e6eb04 user: olr tags: build, core, fr, major_change, new_feature, trunk
16:04
[fr][bug] lexicographe: détection de la fin d’un lemme Closed-Leaf check-in: e9f97a8a3d user: olr tags: fr, rg
15:32
[core] tests: avoid graph rules for now check-in: 078b376d10 user: olr tags: core, rg
Changes

Modified gc_lang/fr/modules-js/lexicographe.js from [8830593e2a] to [7a5d00fb61].

    73     73       [':Dn', [" déterminant négatif,", "Déterminant négatif"]],
    74     74       [':Od', [" pronom démonstratif,", "Pronom démonstratif"]],
    75     75       [':Oi', [" pronom indéfini,", "Pronom indéfini"]],
    76     76       [':On', [" pronom indéfini négatif,", "Pronom indéfini négatif"]],
    77     77       [':Ot', [" pronom interrogatif,", "Pronom interrogatif"]],
    78     78       [':Or', [" pronom relatif,", "Pronom relatif"]],
    79     79       [':Ow', [" pronom adverbial,", "Pronom adverbial"]],
           80  +    [':Ov', ["", ""]],
    80     81       [':Os', [" pronom personnel sujet,", "Pronom personnel sujet"]],
    81     82       [':Oo', [" pronom personnel objet,", "Pronom personnel objet"]],
    82     83       [':O1', [" 1ʳᵉ pers.,", "Pronom : 1ʳᵉ personne"]],
    83     84       [':O2', [" 2ᵉ pers.,", "Pronom : 2ᵉ personne"]],
    84     85       [':O3', [" 3ᵉ pers.,", "Pronom : 3ᵉ personne"]],
    85     86       [':C', [" conjonction,", "Conjonction"]],
    86     87       [':Ĉ', [" conjonction (él.),", "Conjonction (élément)"]],
................................................................................
   390    391           let sRes = "";
   391    392           sTags = sTags.replace(/V([0-3][ea]?)[itpqnmr_eaxz]+/, "V$1");
   392    393           let m;
   393    394           while ((m = this._zTag.exec(sTags)) !== null) {
   394    395               sRes += _dTag.get(m[0])[0];
   395    396           }
   396    397           if (sRes.startsWith(" verbe") && !sRes.includes("infinitif")) {
   397         -            sRes += " [" + sTags.slice(1, sTags.indexOf(" ")) + "]";
          398  +            sRes += " [" + sTags.slice(1, sTags.indexOf("/")) + "]";
   398    399           }
   399    400           if (!sRes) {
   400    401               return "#Erreur. Étiquette inconnue : [" + sTags + "]";
   401    402           }
   402    403           return sRes.gl_trimRight(",");
   403    404       }
   404    405