Overview
| Comment: | [graphspell] spellchecker: handling exception when loading dictionary file | 
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive | 
| Timelines: | family | ancestors | descendants | both | graphspell | multid | 
| Files: | files | file ages | folders | 
| SHA3-256: | c075441c64d3321bdc24f3a612ef4c86 | 
| User & Date: | olr on 2018-02-17 10:13:11 | 
| Other Links: | branch diff | manifest | tags | 
Context
| 2018-02-17 | ||
| 11:31 | [graphspell][js][bug] spellchecker: dictionary not always a filename string check-in: ae469535bc user: olr tags: graphspell, multid | |
| 10:13 | [graphspell] spellchecker: handling exception when loading dictionary file check-in: c075441c64 user: olr tags: graphspell, multid | |
| 09:56 | [build][core] add options for extended and personal dictionaries check-in: f91f4879a1 user: olr tags: core, build, multid | |
Changes
Modified graphspell-js/spellchecker.js from [61ed7ab1e9] to [2310ecd9b2].
| ︙ | |||
| 47 48 49 50 51 52 53 | 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | - - + + + | 
            if (typeof(require) !== 'undefined') {
                return new ibdawg.IBDAWG(dictionary);  // dictionary can be a filename or a JSON object
            } else {
                return new IBDAWG(dictionary, sPath);  // dictionary can be a filename or a JSON object
            }
        }
        catch (e) {
 | 
| ︙ | 
Modified graphspell/spellchecker.py from [9a77ab3107] to [638f8d8cdf].
| ︙ | |||
| 22 23 24 25 26 27 28 | 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | - + - + - + + + | 
class SpellChecker ():
    def __init__ (self, sLangCode, sfMainDic="", sfExtendedDic="", sfPersonalDic=""):
        "returns True if the main dictionary is loaded"
        self.sLangCode = sLangCode
        if not sfMainDic:
            sfMainDic = dDefaultDictionaries.get(sLangCode, "")
 | 
| ︙ |