Grammalecte  Check-in [4ffad6e596]

Overview
Comment:[build][fr] rename locutions files
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fr | build
Files: files | file ages | folders
SHA3-256: 4ffad6e596b64bcc3ccafd4fe3e4ff3c752ebbb7f7af73db71099bd5be1d991f
User & Date: olr on 2017-10-28 13:47:52
Other Links: manifest | tags
Context
2017-10-29
11:19
Détection des locutions dans le lexicographe check-in: 47ddd1a06d user: IllusionPerdu tags: Lexicographe
2017-10-28
19:58
[build][fr] build_data: code cleaning check-in: ba1b8fe0e2 user: olr tags: trunk, fr, build
13:47
[build][fr] rename locutions files check-in: 4ffad6e596 user: olr tags: trunk, fr, build
13:17
[build][fr] data: locutions check-in: e356116b6e user: olr tags: trunk, fr, build
Changes

Modified gc_lang/fr/build_data.py from [a31829c3c5] to [1ffed9614b].

320
321
322
323
324
325
326
327

328
329

330
331
332
333
334
335
336
320
321
322
323
324
325
326

327
328

329
330
331
332
333
334
335
336







-
+

-
+







                for sWord in lElem:
                    if sWord not in dCur:
                        dCur[sWord] = {}
                    dCur = dCur[sWord]

    sCode = "# generated data (do not edit)\n\n" + \
            "dLocutions = " + str(dLocutions) + "\n"
    open(sp+"/modules/locutions.py", "w", encoding="utf-8", newline="\n").write(sCode)
    open(sp+"/modules/locutions_data.py", "w", encoding="utf-8", newline="\n").write(sCode)
    if bJS:
        open(sp+"/modules-js/locutions.json", "w", encoding="utf-8", newline="\n").write(json.dumps(dLocutions, ensure_ascii=False))
        open(sp+"/modules-js/locutions_data.json", "w", encoding="utf-8", newline="\n").write(json.dumps(dLocutions, ensure_ascii=False))


def before (spLaunch, dVars, bJS=False):
    print("========== Build Hunspell dictionaries ==========")
    makeDictionaries(spLaunch, dVars['oxt_version'])


Name change from gc_lang/fr/modules-js/locutions.json to gc_lang/fr/modules-js/locutions_data.json.

Name change from gc_lang/fr/modules/locutions.py to gc_lang/fr/modules/locutions_data.py.