Overview
Comment: | [build][fr] data: locutions |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | fr | build |
Files: | files | file ages | folders |
SHA3-256: |
e356116b6e708e00a5c4be38c79d5cd6 |
User & Date: | olr on 2017-10-28 13:17:46 |
Other Links: | manifest | tags |
Context
2017-10-28
| ||
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 | |
12:04 | [fx] Menu buttons: option true by default for editable nodes check-in: 4dd50863c2 user: olr tags: trunk, fx | |
Changes
Modified gc_lang/fr/build_data.py from [3f80b32195] to [a31829c3c5].
︙ | |||
302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 | 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 | + + + + + + + + + + + + + + + + + + + + + + + | ## write file for JavaScript sCode = "{\n" + \ ' "dWord": ' + json.dumps(dWord, ensure_ascii=False) + ",\n" + \ ' "lSet": ' + json.dumps(lSet, ensure_ascii=False) + ",\n" + \ ' "dMorph": ' + json.dumps(dMorph, ensure_ascii=False) + "\n}" open(sp+"/modules-js/phonet_data.json", "w", encoding="utf-8", newline="\n").write(sCode) def makeLocutions (sp, bJS=False): "compile list of locutions in JSON" print("> Locutions ", end="") print("(Python et JavaScript)" if bJS else "(Python seulement)") with open(sp+"/data/locutions.txt", 'r', encoding='utf-8') as hSrc: dLocutions = {} for sLine in hSrc.readlines(): if not sLine.startswith("#") and sLine.strip(): lElem = sLine.strip().split() dCur = dLocutions 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) if bJS: open(sp+"/modules-js/locutions.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']) def after (spLaunch, dVars, bJS=False): print("========== Build French data ==========") makeMfsp(spLaunch, bJS) makeConj(spLaunch, bJS) makePhonetTable(spLaunch, bJS) makeLocutions(spLaunch, bJS) |
Added gc_lang/fr/data/locutions.txt version [190d018874].
|
Added gc_lang/fr/modules-js/locutions.json version [12115cc355].
1 | + | {"à": {"califourchon": {}, "cœur": {"joie": {}, "ouvert": {}}, "corps": {"perdu": {}}, "perte": {"de": {"vue": {}}}, "visage": {"découvert": {}}}, "par": {"ailleurs": {}, "acquit": {"de": {"conscience": {}}}}} |
Modified gc_lang/fr/modules-js/phonet_data.json from [8bd5376c44] to [63815e6d96].
cannot compute difference between binary files
Added gc_lang/fr/modules/locutions.py version [4e9754ba4b].
|
Modified gc_lang/fr/modules/phonet_data.py from [ae068889b8] to [be2bb20c17].
cannot compute difference between binary files