Grammalecte  Check-in [1249b779da]

Overview
Comment:[lo] paramater for colors
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | lo
Files: files | file ages | folders
SHA3-256: 1249b779da5083b6fd3041ed4556aa12a529cea4552bd0fed45a1627e398cae5
User & Date: olr on 2018-09-25 12:02:20
Other Links: manifest | tags
Context
2018-09-25
15:49
[fr] couleurs par défaut + options manquantes sur certaines règles check-in: 757f44a2f3 user: olr tags: trunk, fr
12:02
[lo] paramater for colors check-in: 1249b779da user: olr tags: trunk, lo
11:10
[core][build] color rework check-in: 30b9f4680e user: olr tags: trunk, core, build
Changes

Modified gc_core/py/oxt/Grammalecte.py from [6b2cfc5228] to [f7ef93bdfb].

30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
        self.locales = []
        for i in gce.locales:
            l = gce.locales[i]
            self.locales.append(Locale(l[0], l[1], l[2]))
        self.locales = tuple(self.locales)
        xCurCtx = uno.getComponentContext()
        # init
        gce.load("Writer")
        # GC options
        # opt_handler.load(xCurCtx)
        dOpt = Options.load(xCurCtx)
        gce.setOptions(dOpt)
        # dictionaries options
        self.loadUserDictionaries()
        # store for results of big paragraphs







|







30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
        self.locales = []
        for i in gce.locales:
            l = gce.locales[i]
            self.locales.append(Locale(l[0], l[1], l[2]))
        self.locales = tuple(self.locales)
        xCurCtx = uno.getComponentContext()
        # init
        gce.load("Writer", "nInt")
        # GC options
        # opt_handler.load(xCurCtx)
        dOpt = Options.load(xCurCtx)
        gce.setOptions(dOpt)
        # dictionaries options
        self.loadUserDictionaries()
        # store for results of big paragraphs
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
                self.dResult[nHashedVal] = xRes
                self.nRes += 1
                if self.nRes > self.nMaxRes:
                    del self.dResult[self.lLastRes.popleft()]
                    self.nRes = self.nMaxRes
                self.lLastRes.append(nHashedVal)
            # END OF WORKAROUND
            
        except Exception as e:
            if sys.version_info.major == 3:
                traceback.print_exc()

        return xRes

    def ignoreRule (self, rid, aLocale):







|







114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
                self.dResult[nHashedVal] = xRes
                self.nRes += 1
                if self.nRes > self.nMaxRes:
                    del self.dResult[self.lLastRes.popleft()]
                    self.nRes = self.nMaxRes
                self.lLastRes.append(nHashedVal)
            # END OF WORKAROUND

        except Exception as e:
            if sys.version_info.major == 3:
                traceback.print_exc()

        return xRes

    def ignoreRule (self, rid, aLocale):