Grammalecte  Check-in [f48668714a]

Overview
Comment:[core][fr] update switchGender()
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fr | core
Files: files | file ages | folders
SHA3-256: f48668714aca556659d6b6b8a8346a04726cd5d1b27cd16aa343738ed5566198
User & Date: olr on 2021-02-02 14:06:42
Other Links: manifest | tags
Context
2021-02-03
17:34
[fr] ajustements check-in: aaec50e9ed user: olr tags: trunk, fr
2021-02-02
14:06
[core][fr] update switchGender() check-in: f48668714a user: olr tags: trunk, fr, core
14:05
[fr] ajustements check-in: 715da7466d user: olr tags: trunk, fr
Changes

Modified gc_lang/fr/modules-js/gce_suggestions.js from [ccfb591c57] to [712aa0bc24].

590
591
592
593
594
595
596



597
598
599
600
601
602
603
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606







+
+
+







    if (bPlur === null) {
        for (let sMorph of gc_engine.oSpellChecker.getMorph(sFlex)) {
            if (sMorph.includes(":f")) {
                if (sMorph.includes(":s")) {
                    aSugg.add(suggMasSing(sFlex));
                } else if (sMorph.includes(":p")) {
                    aSugg.add(suggMasPlur(sFlex));
                } else {
                    aSugg.add(suggMasSing(sFlex));
                    aSugg.add(suggMasPlur(sFlex));
                }
            } else if (sMorph.includes(":m")) {
                if (sMorph.includes(":s")) {
                    aSugg.add(suggFemSing(sFlex));
                } else if (sMorph.includes(":p")) {
                    aSugg.add(suggFemPlur(sFlex));
                } else {

Modified gc_lang/fr/modules/gce_suggestions.py from [649f566ef0] to [99dc48572e].

447
448
449
450
451
452
453



454
455
456
457
458
459
460
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463







+
+
+







    if bPlur is None:
        for sMorph in _oSpellChecker.getMorph(sFlex):
            if ":f" in sMorph:
                if ":s" in sMorph:
                    dSugg[suggMasSing(sFlex)] = ""
                elif ":p" in sMorph:
                    dSugg[suggMasPlur(sFlex)] = ""
                else:
                    dSugg[suggMasSing(sFlex)] = ""
                    dSugg[suggMasPlur(sFlex)] = ""
            elif ":m" in sMorph:
                if ":s" in sMorph:
                    dSugg[suggFemSing(sFlex)] = ""
                elif ":p" in sMorph:
                    dSugg[suggFemPlur(sFlex)] = ""
                else:
                    dSugg[suggFemSing(sFlex)] = ""