Grammalecte  Check-in [8c7797db95]

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: 8c7797db955d1fdf9be3eb6b07dcbd49a0d5b55d2a94693834164cc49aea1bcd
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: build, fr, trunk
10:13
[tb] merge trunk: fix bugs check-in: bce8dea5b0 user: olr tags: multid, tb
2018-02-17
12:59
[graphspell][js][bug] wrong exported vars + test number instead of string check-in: 8c7797db95 user: olr tags: graphspell, trunk
12:46
[build][tb][bug] fix dictionary loading check-in: cbb63cf495 user: olr tags: build, tb, trunk
Changes

Modified graphspell-js/ibdawg.js from [6c0fce95e9] to [08ad598b63].

   118    118           this.byDic = lTemp;
   119    119           //this.byDic = new Uint8Array(lTemp);  // not quicker, even slower
   120    120           /* end of bug workaround */
   121    121   
   122    122           if (!this.sHeader.startsWith("/pyfsa/")) {
   123    123               throw TypeError("# Error. Not a pyfsa binary dictionary. Header: " + this.sHeader);
   124    124           }
   125         -        if (!(this.nCompressionMethod == "1" || this.nCompressionMethod == "2" || this.nCompressionMethod == "3")) {
          125  +        if (!(this.nCompressionMethod == 1 || this.nCompressionMethod == 2 || this.nCompressionMethod == 3)) {
   126    126               throw RangeError("# Error. Unknown dictionary compression method: " + this.nCompressionMethod);
   127    127           }
   128    128           // <dChar> to get the value of an arc, <dCharVal> to get the char of an arc with its value
   129    129           this.dChar = helpers.objectToMap(this.dChar);
   130    130           this.dCharVal = this.dChar.gl_reverse();
   131    131   
   132    132           if (this.cStemming == "S") {

Modified graphspell-js/str_transform.js from [047ef79ee5] to [4a82fc9e42].

   209    209           sWord = sPfxCode.slice(1) + sWord.slice(sPfxCode.charCodeAt(0)-48);
   210    210           return sSfxCode[0] == '0' ? sWord + sSfxCode.slice(1) : sWord.slice(0, -(sSfxCode.charCodeAt(0)-48)) + sSfxCode.slice(1);
   211    211       }
   212    212   };
   213    213   
   214    214   
   215    215   if (typeof(exports) !== 'undefined') {
   216         -    exports.getStemFromSuffixCode = str_transform.getStemFromSuffixCode;
   217         -    exports.getStemFromAffixCode = str_transform.getStemFromAffixCode;
          216  +    exports.changeWordWithSuffixCode = str_transform.changeWordWithSuffixCode;
          217  +    exports.changeWordWithAffixCode = str_transform.changeWordWithAffixCode;
   218    218   }