9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import os
import itertools
import graphspell.ibdawg as ibdawg
from graphspell.echo import echo
from graphspell.str_transform import defineSuffixCode
import graphspell.tokenizer as tkz
import grammalecte.fr.conj as conj
class cd:
"""Context manager for changing the current working directory"""
def __init__ (self, newPath):
self.newPath = os.path.expanduser(newPath)
|
<
|
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import os
import itertools
import graphspell.ibdawg as ibdawg
from graphspell.echo import echo
from graphspell.str_transform import defineSuffixCode
import graphspell.tokenizer as tkz
class cd:
"""Context manager for changing the current working directory"""
def __init__ (self, newPath):
self.newPath = os.path.expanduser(newPath)
|
265
266
267
268
269
270
271
272
273
274
275
276
277
278
|
open(sp+"/modules-js/mfsp_data.json", "w", encoding="utf-8", newline="\n").write(sCode)
def makePhonetTable (sp, bJS=False):
print("> Correspondances phonétiques ", end="")
print("(Python et JavaScript)" if bJS else "(Python seulement)")
try:
oDict = ibdawg.IBDAWG("French.bdic")
except:
traceback.print_exc()
return
# set of homophonic words
|
>
>
|
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
|
open(sp+"/modules-js/mfsp_data.json", "w", encoding="utf-8", newline="\n").write(sCode)
def makePhonetTable (sp, bJS=False):
print("> Correspondances phonétiques ", end="")
print("(Python et JavaScript)" if bJS else "(Python seulement)")
import gc_lang.fr.modules.conj as conj
try:
oDict = ibdawg.IBDAWG("French.bdic")
except:
traceback.print_exc()
return
# set of homophonic words
|