Grammalecte  Changes On Branch fea8454d8e6cfe5f

Changes In Branch genfrdic Through [fea8454d8e] Excluding Merge-Ins

This is equivalent to a diff from 80a7b8c83d to fea8454d8e

2017-06-08
17:52
[fr][build] merge genfrdic check-in: 3a75d57243 user: olr tags: fr, trunk
16:34
[fr] genfrdic.py: copie des fichiers dans Grammalecte optionnelle check-in: 0f3ea1379e user: olr tags: fr, genfrdic
16:18
[fr] genfrdic.py: fonctions inutiles check-in: fea8454d8e user: olr tags: fr, genfrdic
05:03
[fr] correction bug regex sur taux de qqch check-in: 80a7b8c83d user: olr tags: fr, trunk
04:33
[fr] pt: taux de qqch check-in: 9cea3ed48a user: olr tags: fr, trunk

Modified gc_lang/fr/dictionnaire/genfrdic.py from [38f9af18d9] to [d1ed2a594a].

   805    805           if self.err:
   806    806               echo("\n## Erreur dans le dictionnaire : {}".format(self.err))
   807    807               echo("   dans : " + self.lemma)
   808    808                   
   809    809       def __str__ (self):
   810    810           return "{0.lemma}/{0.flags} {1}".format(self, self.getMorph(2))
   811    811   
   812         -    def display (self):
   813         -        echo(self.__str__())
   814         -
   815    812       def check (self):
   816    813           sErr = ''
   817    814           if self.lemma == '':
   818    815               sErr += 'lemme vide'
   819    816           if not re.match(r"[a-zA-ZéÉôÔàâÂîÎïèÈêÊÜœŒæÆçÇ0-9µåÅΩ&αβγδεζηθικλμνξοπρστυφχψωΔℓΩ_]", self.lemma):
   820    817               sErr += 'premier caractère inconnu: ' + self.lemma[0]
   821    818           if re.search(r"\s$", self.lemma):
................................................................................
  1190   1187   
  1191   1188       def __str__ (self, oStatsLex):
  1192   1189           sOccurs = ''
  1193   1190           for v in oStatsLex.dFlexions[self.sFlexion]:
  1194   1191               sOccurs += str(v) + "\t"
  1195   1192           return "{0.oEntry.iD}\t{0.sFlexion}\t{0.oEntry.sRadical}\t{0.sMorph}\t{0.metagfx}\t{0.metaph2}\t{0.oEntry.lx}\t{0.oEntry.se}\t{0.oEntry.et}\t{0.oEntry.di}{2}\t{1}{0.nOccur}\t{0.nDup}\t{0.nMulti}\t{0.fFreq:.15f}\t{0.cFq}\n".format(self, sOccurs, "/"+self.cDic if self.cDic != "*" else "")
  1196   1193   
  1197         -    def display (self):
  1198         -        echo(self.__str__())
  1199         -
  1200   1194       @classmethod
  1201   1195       def simpleHeader (cls):
  1202   1196           return "# :POS ;LEX ~SEM =FQ /DIC\n"
  1203   1197   
  1204   1198       def getGrammarCheckerRepr (self):
  1205   1199           return "{0.sFlexion}\t{0.oEntry.lemma}\t{1}\n".format(self, self._getSimpleTags())
  1206   1200