Grammalecte  Check-in [f7bed407d3]

Overview
Comment:[lo] fix Grammalecte init
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | lo | multid
Files: files | file ages | folders
SHA3-256: f7bed407d3fe82fd001948a1697723a2267b017b0d596b3113a4bd6e4cf22cad
User & Date: olr on 2018-02-16 17:43:16
Other Links: branch diff | manifest | tags
Context
2018-02-16
17:47
[lo] fix Grammalecte init check-in: 5aca2f6bbf user: olr tags: lo, multid
17:43
[lo] fix Grammalecte init check-in: f7bed407d3 user: olr tags: lo, multid
17:41
[lo] use spellchecker instead of ibdawg check-in: 6cde77e557 user: olr tags: lo, multid
Changes

Modified gc_core/py/oxt/Grammalecte.py from [0f730fb3f5] to [1551ba65fd].

    39     39           dOpt = Options.load(xCurCtx)
    40     40           gce.setOptions(dOpt)
    41     41           # store for results of big paragraphs
    42     42           self.dResult = {}
    43     43           self.nMaxRes = 1500
    44     44           self.lLastRes = deque(maxlen=self.nMaxRes)
    45     45           self.nRes = 0
           46  +        oSpellChecker = self.getSpellChecker();
           47  +        oSpellChecker.setPersonalDictionary("fr.personal.json")
    46     48   
    47     49       # XServiceName method implementations
    48     50       def getServiceName (self):
    49     51           return self.ImplementationName
    50     52   
    51     53       # XServiceInfo method implementations
    52     54       def getImplementationName (self):
................................................................................
   128    130           gce.resetIgnoreRules()
   129    131   
   130    132       # XServiceDisplayName
   131    133       def getServiceDisplayName (self, aLocale):
   132    134           return gce.name
   133    135   
   134    136       # Grammalecte
   135         -    def getDictionary (self):
   136         -        return gce.getDictionary()
          137  +    def getSpellChecker (self):
          138  +        return gce.getSpellChecker()
   137    139   
   138    140   
   139    141   g_ImplementationHelper = unohelper.ImplementationHelper()
   140    142   g_ImplementationHelper.addImplementation(Grammalecte, "org.openoffice.comp.pyuno.Lightproof."+gce.pkg, ("com.sun.star.linguistic2.Proofreader",),)
   141    143   
   142    144   # g_ImplementationHelper.addImplementation( opt_handler.LightproofOptionsEventHandler, \
   143    145   #     "org.openoffice.comp.pyuno.LightproofOptionsEventHandler." + gce.pkg, ("com.sun.star.awt.XContainerWindowEventHandler",),)