Overview
Comment: | [build] fix build |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | build |
Files: | files | file ages | folders |
SHA3-256: |
ba196f25219298ec60f1dcebb52d5243 |
User & Date: | olr on 2018-01-03 15:47:03 |
Other Links: | manifest | tags |
Context
2018-01-04
| ||
09:03 | [fr] faux positif avec si bien que + correction d’un bug de suggestion avec flanc check-in: 69ec8495eb user: olr tags: trunk, fr | |
2018-01-03
| ||
15:47 | [build] fix build check-in: ba196f2521 user: olr tags: trunk, build | |
2018-01-02
| ||
10:30 | [graphspell] deprecated code check-in: c915d50f4a user: olr tags: trunk, graphspell | |
Changes
Modified gc_lang/fr/config.ini from [6a6145331a] to [874aca7947].
︙ | ︙ | |||
13 14 15 16 17 18 19 | description = Correcteur grammatical pour le français. extras = README_fr.txt logo = logo.png # lexicon source lexicon_src = lexicons/French.lex # binary dictionary name | | | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | description = Correcteur grammatical pour le français. extras = README_fr.txt logo = logo.png # lexicon source lexicon_src = lexicons/French.lex # binary dictionary name dic_name = fr # Finite state automaton compression: 1, 2 (experimental) or 3 (experimental) fsa_method = 1 # stemming method: S for suffixes only, A for prefixes and suffixes stemming_method = S # LibreOffice unopkg = C:/Program Files/LibreOffice 5/program/unopkg.com |
︙ | ︙ |
Modified gc_lang/fr/modules/tests.py from [3069e3edd1] to [f1c386c508].
︙ | ︙ | |||
20 21 22 23 24 25 26 | return s.replace("\u2019", "'").replace("\u2013", "–").replace("\u2014", "—") class TestDictionary (unittest.TestCase): @classmethod def setUpClass (cls): | | | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | return s.replace("\u2019", "'").replace("\u2013", "–").replace("\u2014", "—") class TestDictionary (unittest.TestCase): @classmethod def setUpClass (cls): cls.oDic = IBDAWG("${dic_name}.bdic") def test_lookup (self): for sWord in ["branche", "Émilie"]: self.assertTrue(self.oDic.lookup(sWord), sWord) def test_lookup_failed (self): for sWord in ["Branche", "BRANCHE", "BranchE", "BRanche", "BRAnCHE", "émilie"]: |
︙ | ︙ |
Modified make.py from [219363c68b] to [72eca8b4d4].
︙ | ︙ | |||
220 221 222 223 224 225 226 | helpers.createCleanFolder(spLangPack) for sf in os.listdir("gc_core/py/lang_core"): if not os.path.isdir("gc_core/py/lang_core/"+sf): helpers.copyAndFileTemplate("gc_core/py/lang_core/"+sf, spLangPack+"/"+sf, dVars) print("+ Modules: ", end="") for sf in os.listdir(spLang+"/modules"): if not sf.startswith(("gce_", "__pycache__")): | | | 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 | helpers.createCleanFolder(spLangPack) for sf in os.listdir("gc_core/py/lang_core"): if not os.path.isdir("gc_core/py/lang_core/"+sf): helpers.copyAndFileTemplate("gc_core/py/lang_core/"+sf, spLangPack+"/"+sf, dVars) print("+ Modules: ", end="") for sf in os.listdir(spLang+"/modules"): if not sf.startswith(("gce_", "__pycache__")): helpers.copyAndFileTemplate(spLang+"/modules/"+sf, spLangPack+"/"+sf, dVars) print(sf, end=", ") print() # TEST FILES with open("grammalecte/"+sLang+"/gc_test.txt", "w", encoding="utf-8", newline="\n") as hDstPy: hDstPy.write("# TESTS FOR LANG [" + sLang + "]\n\n") hDstPy.write(dVars['gctests']) |
︙ | ︙ | |||
301 302 303 304 305 306 307 | for sf in os.listdir("graphspell-js"): if not os.path.isdir("graphspell-js/"+sf): file_util.copy_file("graphspell-js/"+sf, "grammalecte-js/graphspell") helpers.copyAndFileTemplate("graphspell-js/"+sf, "grammalecte-js/graphspell/"+sf, dVars) def copyGraphspellDictionary (dVars, bJavaScript=False): | | > | | | | | 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 | for sf in os.listdir("graphspell-js"): if not os.path.isdir("graphspell-js/"+sf): file_util.copy_file("graphspell-js/"+sf, "grammalecte-js/graphspell") helpers.copyAndFileTemplate("graphspell-js/"+sf, "grammalecte-js/graphspell/"+sf, dVars) def copyGraphspellDictionary (dVars, bJavaScript=False): spfPyDic = "graphspell/_dictionaries/"+dVars['dic_name']+".bdic" spfJSDic = "graphspell-js/_dictionaries/"+dVars['dic_name']+".json" if not os.path.isfile(spfPyDic) or (bJavaScript and not os.path.isfile(spfJSDic)): buildDictionary(dVars, bJavaScript) file_util.copy_file(spfPyDic, "grammalecte/graphspell/_dictionaries") file_util.copy_file(spfPyDic[:-5]+".info.txt", "grammalecte/graphspell/_dictionaries") if bJavaScript: file_util.copy_file(spfJSDic, "grammalecte-js/graphspell/_dictionaries") def buildDictionary (dVars, bJavaScript): lex_build.build(dVars['lexicon_src'], dVars['lang_name'], dVars['dic_name'], bJavaScript, dVars['stemming_method'], int(dVars['fsa_method'])) def main (): |
︙ | ︙ |