Overview
| Comment: | [core][fr][js] Remplacement des “compréhensions de tableau” par du code supporté par un plus grand nombre d’interpréteurs JS : permet de fonctionner sur Chrome et NodeJS |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | core | webext2_fix |
| Files: | files | file ages | folders |
| SHA3-256: |
51348d75f8858fc76c0321301cd21638 |
| User & Date: | IllusionPerdu on 2017-08-06 01:43:34 |
| Original Comment: | [CHG JS] Remplacement des "compréhensions de tableau" par du code supporter par un plus grand nombre d'interpréteur JS : permet de fonctionner sur chrome et nodejs |
| Other Links: | branch diff | manifest | tags |
Context
|
2017-08-06
| ||
| 01:47 | [fr] Ajout des "conj." oubliés pour l’utilisation de la fonction getConj check-in: b869868cd3 user: IllusionPerdu tags: fr, webext2_fix | |
| 01:43 | [core][fr][js] Remplacement des “compréhensions de tableau” par du code supporté par un plus grand nombre d’interpréteurs JS : permet de fonctionner sur Chrome et NodeJS check-in: 51348d75f8 user: IllusionPerdu tags: core, webext2_fix | |
| 01:32 | [core][fr][js] ajout des ; oubliés et ajustement des ; en trop check-in: 1800ac6b98 user: IllusionPerdu tags: core, webext2_fix | |
Changes
Modified gc_core/js/lang_core/gc_engine.js from [46c54e0aa3] to [bacc2dbbb4].
| ︙ | |||
463 464 465 466 467 468 469 | 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 | - + |
// returns a list of sWord's stems
if (!sWord) {
return [];
}
if (!_dAnalyses.has(sWord) && !_storeMorphFromFSA(sWord)) {
return [];
}
|
| ︙ | |||
567 568 569 570 571 572 573 | 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 | - + |
if (!_dAnalyses.has(sWord) && !_storeMorphFromFSA(sWord)) {
return true;
}
//echo("morph: "+_dAnalyses.get(sWord).toString());
if (_dAnalyses.get(sWord).length === 1) {
return true;
}
|
| ︙ | |||
592 593 594 595 596 597 598 | 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 | - + |
}
if (!_dAnalyses.has(sWord) && !_storeMorphFromFSA(sWord)) {
return true;
}
if (_dAnalyses.get(sWord).length === 1) {
return true;
}
|
| ︙ |
Modified gc_lang/fr/modules-js/gce_suggestions.js from [5dc3101886] to [d6c09c4817].
| ︙ | |||
140 141 142 143 144 145 146 | 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | - + |
return Array.from(aSugg).join("|");
}
return "";
}
function suggVerbInfi (sFlex) {
//return stem(sFlex).join("|");
|
| ︙ |
Modified gc_lang/fr/modules-js/lexicographe.js from [ec41f2c317] to [a348883011].
| ︙ | |||
222 223 224 225 226 227 228 | 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 | - + + + + - + + + + |
break;
case 'WORD':
if (oToken.sValue.gl_count("-") > 4) {
return { sType: "COMPLEX", sValue: oToken.sValue, aLabel: ["élément complexe indéterminé"] };
}
else if (this.oDict.isValidToken(oToken.sValue)) {
let lMorph = this.oDict.getMorph(oToken.sValue);
|
| ︙ |
Modified gc_lang/fr/modules-js/mfsp.js from [caaf79f7f1] to [4b4672ec80].
| ︙ | |||
34 35 36 37 38 39 40 | 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | + + - + + + + - + + + + |
// returns True if sWord exists in this._dMasForm
return this._dMasForm.has(sWord);
},
getMasForm: function (sWord, bPlur) {
// returns masculine form with feminine form
if (this._dMasForm.has(sWord)) {
let masForm = [];
for (var sTag of this._whatSuffixCode(sWord, bPlur)){
|
| ︙ |