Grammalecte  Check-in [274f43cc25]

Overview
Comment:[graphspell][py] spellchecker: return value is success of dictionary loading
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | graphspell | multid
Files: files | file ages | folders
SHA3-256: 274f43cc25bee83f66ea47f17a4ebae905f81b41a9887061bab828dcc6297ab8
User & Date: olr on 2018-03-31 12:46:48
Other Links: branch diff | manifest | tags
Context
2018-03-31
12:47
[graphspell][js] spellchecker: return value is success of dictionary loading check-in: a5bfbd33d4 user: olr tags: graphspell, multid
12:46
[graphspell][py] spellchecker: return value is success of dictionary loading check-in: 274f43cc25 user: olr tags: graphspell, multid
12:35
[graphspell][js] spellchecker: option to activate dictionary while loading check-in: 6c22a745d0 user: olr tags: graphspell, multid
Changes

Modified graphspell/spellchecker.py from [71c4e5d992] to [696f7480ec].

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
89
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
89







-
+





-
+





-
+







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

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

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

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

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