350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
|
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
|
-
+
|
return ""
if bTpsCo:
sPartPre = _getConjWithTags(self.sVerbAux, self._tTagsAux, ":PQ", ":P") if not bPro else getConj("être", ":PQ", ":P")
else:
sPartPre = self.dConj[":P"][":"]
if not sPartPre:
return ""
bEli = True if _zStartVoy.search(sPartPre) else False
bEli = bool(_zStartVoy.search(sPartPre))
if bPro:
if self.bProWithEn:
sPartPre = "s’en " + sPartPre
else:
sPartPre = "s’" + sPartPre if bEli else "se " + sPartPre
if bNeg:
if bEli and not bPro:
|
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
|
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
|
-
+
|
sWho = ":1ś"
if bTpsCo:
sConj = _getConjWithTags(self.sVerbAux, self._tTagsAux, sTemps, sWho) if not bPro else getConj("être", sTemps, sWho)
else:
sConj = self.dConj[sTemps][sWho]
if not sConj:
return ""
bEli = True if _zStartVoy.search(sConj) else False
bEli = bool(_zStartVoy.search(sConj))
if bPro:
if not self.bProWithEn:
sConj = _dProObjEl[sWho] + sConj if bEli else _dProObj[sWho] + sConj
else:
sConj = _dProObjEl[sWho] + "en " + sConj
if bNeg:
sConj = "n’" + sConj if bEli and not bPro else "ne " + sConj
|
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
|
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
|
-
+
-
+
|
def _getPronomSujet (self, sWho, bFem):
try:
if sWho == ":3s":
if self._sRawInfo[5] == "r":
return "on"
elif bFem:
return "elle"
elif sWho == ":3p" and bFem:
if sWho == ":3p" and bFem:
return "elles"
return _dProSuj[sWho]
except:
traceback.print_exc()
return "# erreur"
def imperatif (self, sWho, bPro, bNeg, bTpsCo, bFem):
"returns string (conjugaison à l’impératif)"
try:
if not self.dConj[":E"][sWho]:
return ""
if bTpsCo:
sImpe = _getConjWithTags(self.sVerbAux, self._tTagsAux, ":E", sWho) if not bPro else getConj(u"être", ":E", sWho)
else:
sImpe = self.dConj[":E"][sWho]
if not sImpe:
return ""
bEli = True if _zStartVoy.search(sImpe) else False
bEli = bool(_zStartVoy.search(sImpe))
if bNeg:
if bPro:
if not self.bProWithEn:
if bEli and sWho == ":2s":
sImpe = "ne t’" + sImpe + " pas"
else:
sImpe = _dImpeProNeg[sWho] + sImpe + " pas"
|
471
472
473
474
475
476
477
478
479
480
481
482
483
484
|
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
|
+
|
return self.dConj[":Q"][":Q3"] if self.dConj[":Q"][":Q3"] else self.dConj[":Q"][":Q1"]
return self.dConj[":Q"][":Q4"] if self.dConj[":Q"][":Q4"] else self.dConj[":Q"][":Q1"]
except:
traceback.print_exc()
return "# erreur"
def createConjTable (self, bPro=False, bNeg=False, bTpsCo=False, bInt=False, bFem=False):
"return a dictionary of all conjugations with titles, according to options (used to be displayed as is)"
dConjTable = {
"t_infi": "Infinitif",
"infi": self.infinitif(bPro, bNeg, bTpsCo, bInt, bFem),
"t_ppre": "Participe présent",
"ppre": self.participePresent(bPro, bNeg, bTpsCo, bInt, bFem),
"t_ppas": "Participes passés",
"ppas1": self.participePasse(":Q1"),
|