Grammalecte  Check-in [1249b779da]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

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 2018-09-25 12:02:20
Context
2018-09-25
15:49
[fr] couleurs par défaut + options manquantes sur certaines règles check-in: 757f44a2f3 user: olr tags: fr, trunk
12:02
[lo] paramater for colors check-in: 1249b779da user: olr tags: lo, trunk
11:10
[core][build] color rework check-in: 30b9f4680e user: olr tags: build, core, trunk
Changes

Changes to gc_core/py/oxt/Grammalecte.py.

30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
...
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
        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
................................................................................
                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):







|







 







|







30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
...
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
        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
................................................................................
                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):