Grammalecte  Check-in [4015c58808]

Overview
Comment:[build][fr] system call for Linux
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fr | build
Files: files | file ages | folders
SHA3-256: 4015c5880818e16fc9c1a6cc5167c28fa7c1df224bb41e6e5d6505c31a7115b1
User & Date: olr on 2020-01-06 16:14:43
Other Links: manifest | tags
Context
2020-01-07
19:37
[fr] faux positif check-in: ebbc98aeaa user: olr tags: trunk, fr
2020-01-06
16:14
[build][fr] system call for Linux check-in: 4015c58808 user: olr tags: trunk, fr, build
16:04
[fr] nr: sgpl en rangs serrés check-in: 90dfcf3620 user: olr tags: trunk, fr
Changes

Modified gc_lang/fr/build_data.py from [858a6f42b2] to [c910fde1c7].

1
2
3
4
5
6
7
8
9
10
11

12
13
14
15
16
17
18
#!python3

# FRENCH DATA BUILDER
#
# by Olivier R.
# License: MPL 2

import json
import os
import itertools
import traceback


import graphspell.ibdawg as ibdawg
from graphspell.echo import echo
from graphspell.str_transform import defineSuffixCode
import graphspell.tokenizer as tkz













>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!python3

# FRENCH DATA BUILDER
#
# by Olivier R.
# License: MPL 2

import json
import os
import itertools
import traceback
import platform

import graphspell.ibdawg as ibdawg
from graphspell.echo import echo
from graphspell.str_transform import defineSuffixCode
import graphspell.tokenizer as tkz


52
53
54
55
56
57
58

59


60
61
62
63
64
65
66
            oDict = ibdawg.IBDAWG("fr-allvars.bdic")
        except:
            traceback.print_exc()


def makeDictionaries (sp, sVersion):
    with cd(sp+"/dictionnaire"):

        os.system("genfrdic.py -s -gl -v "+sVersion)




def makeConj (sp, bJS=False):
    print("> Conjugaisons ", end="")
    print("(Python et JavaScript)"  if bJS  else "(Python seulement)")
    dVerb = {}
    lVinfo = []; dVinfo = {}; nVinfo = 0







>
|
>
>







53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
            oDict = ibdawg.IBDAWG("fr-allvars.bdic")
        except:
            traceback.print_exc()


def makeDictionaries (sp, sVersion):
    with cd(sp+"/dictionnaire"):
        if platform.system() == "Windows":
            os.system("genfrdic.py -s -gl -v "+sVersion)
        else:
            os.system("python3 ./genfrdic.py -s -gl -v "+sVersion)


def makeConj (sp, bJS=False):
    print("> Conjugaisons ", end="")
    print("(Python et JavaScript)"  if bJS  else "(Python seulement)")
    dVerb = {}
    lVinfo = []; dVinfo = {}; nVinfo = 0