Index: gc_core/py/oxt/Grammalecte.py ================================================================== --- gc_core/py/oxt/Grammalecte.py +++ gc_core/py/oxt/Grammalecte.py @@ -41,10 +41,12 @@ # store for results of big paragraphs self.dResult = {} self.nMaxRes = 1500 self.lLastRes = deque(maxlen=self.nMaxRes) self.nRes = 0 + oSpellChecker = self.getSpellChecker(); + oSpellChecker.setPersonalDictionary("fr.personal.json") # XServiceName method implementations def getServiceName (self): return self.ImplementationName @@ -130,14 +132,14 @@ # XServiceDisplayName def getServiceDisplayName (self, aLocale): return gce.name # Grammalecte - def getDictionary (self): - return gce.getDictionary() + def getSpellChecker (self): + return gce.getSpellChecker() g_ImplementationHelper = unohelper.ImplementationHelper() g_ImplementationHelper.addImplementation(Grammalecte, "org.openoffice.comp.pyuno.Lightproof."+gce.pkg, ("com.sun.star.linguistic2.Proofreader",),) # g_ImplementationHelper.addImplementation( opt_handler.LightproofOptionsEventHandler, \ # "org.openoffice.comp.pyuno.LightproofOptionsEventHandler." + gce.pkg, ("com.sun.star.awt.XContainerWindowEventHandler",),)