Index: gc_lang/fr/modules-js/lexicographe.js ================================================================== --- gc_lang/fr/modules-js/lexicographe.js +++ gc_lang/fr/modules-js/lexicographe.js @@ -252,11 +252,11 @@ // Token: .sType, .sValue, .nStart, .nEnd // return a object {sType, sValue, aLabel} let m = null; try { switch (oToken.sType) { - case 'SEPARATOR': + case 'PUNC': case 'SIGN': return { sType: oToken.sType, sValue: oToken.sValue, aLabel: [_dChar.gl_get(oToken.sValue, "caractère indéterminé")] @@ -365,16 +365,22 @@ sValue: oToken.sValue, aLabel: this._getMorph(oToken.sValue) }; } else { return { - sType: "UNKNOWN", + sType: "UNKNOWN_WORD", sValue: oToken.sValue, aLabel: ["mot inconnu du dictionnaire"] }; } break; + default: + return { + sType: "NO_TYPE", + sValue: oToken.sValue, + aLabel: ["token inconnu"] + } } } catch (e) { console.error(e); } return null;