Overview
| Comment: | [graphspell][js][bug] wrong exported vars + test number instead of string |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk | graphspell |
| Files: | files | file ages | folders |
| SHA3-256: |
8c7797db955d1fdf9be3eb6b07dcbd49 |
| User & Date: | olr on 2018-02-17 12:59:02 |
| Other Links: | manifest | tags |
Context
|
2018-02-18
| ||
| 19:57 | [build][fr][py][bug] fix build_data: dictionary name check-in: ff9cf4daea user: olr tags: trunk, fr, build | |
| 10:13 | [tb] merge trunk: fix bugs check-in: bce8dea5b0 user: olr tags: tb, multid | |
|
2018-02-17
| ||
| 12:59 | [graphspell][js][bug] wrong exported vars + test number instead of string check-in: 8c7797db95 user: olr tags: trunk, graphspell | |
| 12:46 | [build][tb][bug] fix dictionary loading check-in: cbb63cf495 user: olr tags: trunk, build, tb | |
Changes
Modified graphspell-js/ibdawg.js from [6c0fce95e9] to [08ad598b63].
| ︙ | ︙ | |||
118 119 120 121 122 123 124 |
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);
}
| | | 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
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);
}
if (!(this.nCompressionMethod == 1 || this.nCompressionMethod == 2 || this.nCompressionMethod == 3)) {
throw RangeError("# Error. Unknown dictionary compression method: " + this.nCompressionMethod);
}
// <dChar> to get the value of an arc, <dCharVal> to get the char of an arc with its value
this.dChar = helpers.objectToMap(this.dChar);
this.dCharVal = this.dChar.gl_reverse();
if (this.cStemming == "S") {
|
| ︙ | ︙ |
Modified graphspell-js/str_transform.js from [047ef79ee5] to [4a82fc9e42].
| ︙ | ︙ | |||
209 210 211 212 213 214 215 |
sWord = sPfxCode.slice(1) + sWord.slice(sPfxCode.charCodeAt(0)-48);
return sSfxCode[0] == '0' ? sWord + sSfxCode.slice(1) : sWord.slice(0, -(sSfxCode.charCodeAt(0)-48)) + sSfxCode.slice(1);
}
};
if (typeof(exports) !== 'undefined') {
| | | | 209 210 211 212 213 214 215 216 217 218 |
sWord = sPfxCode.slice(1) + sWord.slice(sPfxCode.charCodeAt(0)-48);
return sSfxCode[0] == '0' ? sWord + sSfxCode.slice(1) : sWord.slice(0, -(sSfxCode.charCodeAt(0)-48)) + sSfxCode.slice(1);
}
};
if (typeof(exports) !== 'undefined') {
exports.changeWordWithSuffixCode = str_transform.changeWordWithSuffixCode;
exports.changeWordWithAffixCode = str_transform.changeWordWithAffixCode;
}
|