Grammalecte  Check-in [2349600755]

Overview
Comment:[graphspell][py] spellchecker: option to activate dictionary while loading
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | graphspell | multid
Files: files | file ages | folders
SHA3-256: 2349600755e54bd3126feb4ef1f5a8e6d6f73142456ea979ae4557fe2246eaa0
User & Date: olr on 2018-03-31 12:34:55
Other Links: branch diff | manifest | tags
Context
2018-03-31
12:35
[graphspell][js] spellchecker: option to activate dictionary while loading check-in: 6c22a745d0 user: olr tags: graphspell, multid
12:34
[graphspell][py] spellchecker: option to activate dictionary while loading check-in: 2349600755 user: olr tags: graphspell, multid
2018-03-30
09:37
[tb] ui to select/deselect personal dictionary check-in: 6c984d1387 user: olr tags: tb, multid
Changes

Modified graphspell/spellchecker.py from [42f77c6a07] to [71c4e5d992].

56
57
58
59
60
61
62
63

64
65
66

67
68
69

70
71
72

73
74
75

76
77
78

79
80
81

82
83
84
85
86
87
88
56
57
58
59
60
61
62

63
64
65

66
67
68

69
70
71

72
73
74

75
76
77

78
79
80

81
82
83
84
85
86
87
88







-
+


-
+


-
+


-
+


-
+


-
+


-
+







    def getTokenizer (self):
        if not self.oTokenizer:
            self.loadTokenizer()
        return self.oTokenizer

    def setMainDictionary (self, source):
        "returns True if the dictionary is loaded"
        self.oMainDic = self._loadDictionary(source)
        self.oMainDic = self._loadDictionary(source, True)
        return bool(self.oMainDic)
            
    def setExtendedDictionary (self, source):
    def setExtendedDictionary (self, source, bActivate=True):
        "returns True if the dictionary is loaded"
        self.oExtendedDic = self._loadDictionary(source)
        self.bExtendedDic = bool(self.oExtendedDic)
        self.bExtendedDic = False  if not bActivate  else bool(self.oExtendedDic)
        return self.bExtendedDic

    def setCommunityDictionary (self, source):
    def setCommunityDictionary (self, source, bActivate=True):
        "returns True if the dictionary is loaded"
        self.oCommunityDic = self._loadDictionary(source)
        self.bCommunityDic = bool(self.oCommunityDic)
        self.bCommunityDic = False  if not bActivate  else bool(self.oCommunityDic)
        return self.bCommunityDic

    def setPersonalDictionary (self, source):
    def setPersonalDictionary (self, source, bActivate=True):
        "returns True if the dictionary is loaded"
        self.oPersonalDic = self._loadDictionary(source)
        self.bPersonalDic = bool(self.oPersonalDic)
        self.bPersonalDic = False  if not bActivate  else bool(self.oPersonalDic)
        return self.bPersonalDic

    def activateExtendedDictionary (self):
        self.bExtendedDic = bool(self.oExtendedDic)

    def activateCommunityDictionary (self):
        self.bCommunityDic = bool(self.oCommunityDic)