Differences From Artifact [e3348f90d5]:
- File gc_lang/fr/oxt/Lexicographer/Enumerator.py — part of check-in [9460b6ed05] at 2020-02-02 10:51:10 on branch trunk — [lo] recenseur de mots: boîte de dialogue fermable via la croix rouge (user: olr, size: 20293) [annotate] [blame] [check-ins using]
To Artifact [60452afcd6]:
- File gc_lang/fr/oxt/Lexicographer/Enumerator.py — part of check-in [f02cd26db1] at 2020-03-02 15:15:16 on branch trunk — [lo][fr] Recenseur de mots: compte double pour les mots composés formes verbales interrogatives (user: olr, size: 20460) [annotate] [blame] [check-ins using]
| ︙ | |||
305 306 307 308 309 310 311 312 313 314 315 316 317 318 | 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 | + + |
i = 0
nTotOccur = 0
for sWord, nOccur in sorted(self.dWord.items(), key=lambda t: t[1], reverse=True):
xGridDataModel.addRow(i, (sWord, nOccur))
self.xProgressBar.ProgressValue += 1
i += 1
nTotOccur += nOccur
if sWord.lower().endswith(("-je", "-tu", "-il", "-elle", "-on", "-nous", "-vous", "-ils", "-elles", "-iel", "-iels")):
nTotOccur += nOccur
self.xProgressBar.ProgressValue = self.xProgressBar.ProgressValueMax
self.xNumWord.Label = str(i)
self.xTotWord.Label = nTotOccur
def export (self):
if not self.dWord:
return
|
| ︙ |