Grammalecte  Check-in [f3ed6e3893]

Overview
Comment:[graphspell][js] ibdawg: don’t reset this.sByDic
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | graphspell
Files: files | file ages | folders
SHA3-256: f3ed6e38931fa80749e7145732eb13e2618468e7db0e6927db60f54a153fd783
User & Date: olr on 2018-02-12 13:41:08
Other Links: manifest | tags
Context
2018-02-12
14:00
[fx][bug] lexicon editor: fix count of new entries check-in: d66c46e64b user: olr tags: trunk, fx
13:41
[graphspell][js] ibdawg: don’t reset this.sByDic check-in: f3ed6e3893 user: olr tags: trunk, graphspell
13:37
[graphspell][js][bug] ibdawg: fix getJSON() check-in: c7ead17f10 user: olr tags: trunk, graphspell
Changes

Modified graphspell-js/ibdawg.js from [2c539cbd16] to [cea88b04de].

112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
112
113
114
115
116
117
118

119
120
121
122
123
124
125







-







            So we convert huge hexadecimal string to list of numbers…
            https://github.com/mozilla/addons-linter/issues/1361
        */
        let lTemp = [];
        for (let i = 0;  i < this.sByDic.length;  i+=2) {
            lTemp.push(parseInt(this.sByDic.slice(i, i+2), 16));
        }
        this.sByDic = "";
        this.byDic = lTemp;
        //this.byDic = new Uint8Array(lTemp);  // not quicker, even slower
        /* end of bug workaround */

        if (!this.sHeader.startsWith("/pyfsa/")) {
            throw TypeError("# Error. Not a pyfsa binary dictionary. Header: " + this.sHeader);
        }