Grammalecte  Check-in [a9ed4298f2]

Overview
Comment:[graphspell] ibdawg: fix lexicographer import (cherrypick from safxg)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | graphspell
Files: files | file ages | folders
SHA3-256: a9ed4298f200077d0abbe530d7391af4ad09c1f4decda755e2148d5fe861f6bd
User & Date: olr on 2020-08-31 10:48:27
Other Links: manifest | tags
Context
2020-08-31
11:07
[fr] ajustements (cherrypick from salxg) check-in: 7cc4578cb5 user: olr tags: trunk, fr
10:48
[graphspell] ibdawg: fix lexicographer import (cherrypick from safxg) check-in: a9ed4298f2 user: olr tags: trunk, graphspell
10:44
[graphspell] ibdawg: fix lexicographer import check-in: c88bf29423 user: olr tags: graphspell, salxg
2020-08-28
09:36
[core] fix unnoticed bug: getCleanText check-in: 050f94978a user: olr tags: trunk, core
Changes

Modified graphspell/ibdawg.py from [4f7f19d7d1] to [01e0cc9f3f].

153
154
155
156
157
158
159
160
161
162
163
164
165
166
167

        self.bAcronymValid = False
        self.bNumAtLastValid = False

        # lexicographer module ?
        self.lexicographer = None
        try:
            self.lexicographer = importlib.import_module("graphspell.lexgraph_"+self.sLangCode)
        except ImportError:
            print("# No module <graphspell.lexgraph_"+self.sLangCode+".py>")


    def _initBinary (self):
        "initialize with binary structure file"
        if self.by[0:17] != b"/grammalecte-fsa/":







|







153
154
155
156
157
158
159
160
161
162
163
164
165
166
167

        self.bAcronymValid = False
        self.bNumAtLastValid = False

        # lexicographer module ?
        self.lexicographer = None
        try:
            self.lexicographer = importlib.import_module(".lexgraph_"+self.sLangCode, "grammalecte.graphspell")
        except ImportError:
            print("# No module <graphspell.lexgraph_"+self.sLangCode+".py>")


    def _initBinary (self):
        "initialize with binary structure file"
        if self.by[0:17] != b"/grammalecte-fsa/":