458
459
460
461
462
463
464
465
466
467
468
469
470
471
|
c_t = "t" if self.xV_t.State else "_"
c_n = "n" if self.xV_n.State else "_"
c_p = "p" if self.xV_p.State else "_"
c_m = "m" if self.xV_m.State else "_"
c_ae = "e" if self.xV_ae.State else "_"
c_aa = "a" if self.xV_aa.State else "_"
sVerbTag = c_i + c_t + c_n + c_p + c_m + c_ae + c_aa
if not sVerbTag.endswith("__") and not sVerbTag.startswith("____"):
sVerbPattern = self.xVpattern.Text.strip()
if not sVerbPattern:
# Utilisation du générateur de conjugaison
for sFlexion, sFlexTags in conjgen.conjugate(self.sLemma, sVerbTag, not bool(self.xV_pp.State)):
self.lGeneratedFlex.append((sFlexion, sFlexTags))
else:
|
>
>
|
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
|
c_t = "t" if self.xV_t.State else "_"
c_n = "n" if self.xV_n.State else "_"
c_p = "p" if self.xV_p.State else "_"
c_m = "m" if self.xV_m.State else "_"
c_ae = "e" if self.xV_ae.State else "_"
c_aa = "a" if self.xV_aa.State else "_"
sVerbTag = c_i + c_t + c_n + c_p + c_m + c_ae + c_aa
if "p" in sVerbTag and not sVerbTag.startswith("___p_"):
sVerbTag = sVerbTag.replace("p", "q")
if not sVerbTag.endswith("__") and not sVerbTag.startswith("____"):
sVerbPattern = self.xVpattern.Text.strip()
if not sVerbPattern:
# Utilisation du générateur de conjugaison
for sFlexion, sFlexTags in conjgen.conjugate(self.sLemma, sVerbTag, not bool(self.xV_pp.State)):
self.lGeneratedFlex.append((sFlexion, sFlexTags))
else:
|