Grammalecte  Check-in [67790bd50d]

Overview
Comment:[fr][py][bug] conj generator: nissing else
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fr | multid
Files: files | file ages | folders
SHA3-256: 67790bd50d08c8d6b2daa4e35cab030e30004bcaa0f4952f7b280ec80e9f39ee
User & Date: olr on 2018-03-11 21:57:25
Other Links: branch diff | manifest | tags
Context
2018-03-11
21:57
[fr][js][bug] conj generator: missing else check-in: b3026938be user: olr tags: fr, multid
21:57
[fr][py][bug] conj generator: nissing else check-in: 67790bd50d user: olr tags: fr, multid
19:15
[fr][py][bug] conj generator: forgotten parameter check-in: ace3220f34 user: olr tags: fr, multid
Changes

Modified gc_lang/fr/modules/conj_generator.py from [f5ebd235af] to [c321680ceb].

32
33
34
35
36
37
38

39
40
41
42

43
44
45
46
47
48
49
        # 5 lettres
        if sVerb[-5:] in oConj["V1"]:
            lConj = oConj["V1"][sVerb[-5:]]
        # 4 lettres
        elif sVerb[-4:] in oConj["V1"]:
            if sVerb.endswith(("eler", "eter")):
                lConj = oConj["V1"][sVerb[-4:]]["1"]

            lConj = oConj["V1"][sVerb[-4:]]
        # 3 lettres
        elif sVerb[-3:] in oConj["V1"]:
            lConj = oConj["V1"][sVerb[-3:]]

        else:
            lConj = oConj["V1"]["er"]
        lConj.extend(oConj["V1_ppas"][bVarPpas])
    elif sVerb.endswith("ir") and nGroup <= 2:
        # deuxième groupe
        lConj = oConj["V2"]
        lConj.extend(oConj["V2_ppas"][bVarPpas])







>
|



>







32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
        # 5 lettres
        if sVerb[-5:] in oConj["V1"]:
            lConj = oConj["V1"][sVerb[-5:]]
        # 4 lettres
        elif sVerb[-4:] in oConj["V1"]:
            if sVerb.endswith(("eler", "eter")):
                lConj = oConj["V1"][sVerb[-4:]]["1"]
            else:
                lConj = oConj["V1"][sVerb[-4:]]
        # 3 lettres
        elif sVerb[-3:] in oConj["V1"]:
            lConj = oConj["V1"][sVerb[-3:]]
        # 2 lettres
        else:
            lConj = oConj["V1"]["er"]
        lConj.extend(oConj["V1_ppas"][bVarPpas])
    elif sVerb.endswith("ir") and nGroup <= 2:
        # deuxième groupe
        lConj = oConj["V2"]
        lConj.extend(oConj["V2_ppas"][bVarPpas])