Grammalecte  Diff

Differences From Artifact [8ad217b431]:

To Artifact [5be8f7e98e]:


326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375

    _formatTags (sTags) {
        let sRes = "";
        sTags = sTags.replace(/V([0-3][ea]?)[itpqnmr_eaxz]+/, "V$1");
        let m;
        while ((m = this._zTag.exec(sTags)) !== null) {
            sRes += _dTAGS.get(m[0]);
            if (sRes.length > 100) {
                break;
            }
        }
        if (sRes.startsWith(" verbe") && !sRes.includes("infinitif")) {
            sRes += " [" + sTags.slice(1, sTags.indexOf(" ")) + "]";
        }
        if (!sRes) {
            sRes = "#Erreur. Étiquette inconnue : [" + sTags + "]";
            helpers.echo(sRes);
            return sRes;
        }
        return sRes.gl_trimRight(",");
    }

    _formatTagsLoc (sTags) {
        let sRes = "";
        let oTagsVerb = this._zLocTag.exec(sTags);
        sRes += _dLocTAGS.get(oTagsVerb[1]);
        if (oTagsVerb[4] && oTagsVerb[1] === ':LV'){
            oTagsVerb[4].split(/(?!$)/u).forEach(function(sKey) {
                sRes += _dLocVERB.get(sKey);
            });
        }
        if (oTagsVerb[5]){
            let m;
            while ((m = this._zTag.exec(oTagsVerb[5])) !== null) {
                sRes += _dLocTAGS.get(m[0]);
                if (sRes.length > 100) {
                    break;
                }
            }
        }
        if (!sRes) {
            sRes = "#Erreur. Étiquette inconnue : [" + sTags + "]";
            helpers.echo(sRes);
            return sRes;
        }
        return sRes.gl_trimRight(",");
    }

    _formatSuffix (s) {
        if (s.startsWith("t-")) {







<
<
<






<


















<
<
<




<







326
327
328
329
330
331
332



333
334
335
336
337
338

339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356



357
358
359
360

361
362
363
364
365
366
367

    _formatTags (sTags) {
        let sRes = "";
        sTags = sTags.replace(/V([0-3][ea]?)[itpqnmr_eaxz]+/, "V$1");
        let m;
        while ((m = this._zTag.exec(sTags)) !== null) {
            sRes += _dTAGS.get(m[0]);



        }
        if (sRes.startsWith(" verbe") && !sRes.includes("infinitif")) {
            sRes += " [" + sTags.slice(1, sTags.indexOf(" ")) + "]";
        }
        if (!sRes) {
            sRes = "#Erreur. Étiquette inconnue : [" + sTags + "]";

            return sRes;
        }
        return sRes.gl_trimRight(",");
    }

    _formatTagsLoc (sTags) {
        let sRes = "";
        let oTagsVerb = this._zLocTag.exec(sTags);
        sRes += _dLocTAGS.get(oTagsVerb[1]);
        if (oTagsVerb[4] && oTagsVerb[1] === ':LV'){
            oTagsVerb[4].split(/(?!$)/u).forEach(function(sKey) {
                sRes += _dLocVERB.get(sKey);
            });
        }
        if (oTagsVerb[5]){
            let m;
            while ((m = this._zTag.exec(oTagsVerb[5])) !== null) {
                sRes += _dLocTAGS.get(m[0]);



            }
        }
        if (!sRes) {
            sRes = "#Erreur. Étiquette inconnue : [" + sTags + "]";

            return sRes;
        }
        return sRes.gl_trimRight(",");
    }

    _formatSuffix (s) {
        if (s.startsWith("t-")) {