Index: gc_lang/fr/webext/content_scripts/panel_gc.js ================================================================== --- gc_lang/fr/webext/content_scripts/panel_gc.js +++ gc_lang/fr/webext/content_scripts/panel_gc.js @@ -570,11 +570,11 @@ } this.startWaitIcon(); this.clearLexicographer(); let sText = this.xLxgInput.innerText.replace(/\n/g, " "); //console.log(sText); - this.addMessageToLexicographer("Analyse grammaticale : les mots sont analysés autant que possible en fonction du contexte (cette fonctionnalité est expérimentale)."); + this.addMessageToLexicographer("Analyse grammaticale : les mots sont analysés autant que possible en fonction du contexte. (Cette fonctionnalité n’est pas terminée et demeure EXPÉRIMENTALE)."); oGrammalecteBackgroundPort.parseFull(sText, "__GrammalectePanel__"); } showParagraphAnalysis (oResult) { if (!this.bOpened || oResult === null) { @@ -588,11 +588,12 @@ xSentenceBlock.appendChild(oGrammalecte.createNode("div", {className: "grammalecte_lxg_list_num", textContent: this.nLxgCount})); xSentenceBlock.appendChild(oGrammalecte.createNode("p", {className: "grammalecte_lxg_paragraph_sentence", textContent: oSentence.sSentence})); let xTokenList = oGrammalecte.createNode("div", {className: "grammalecte_lxg_list_of_tokens"}); for (let oToken of oSentence.lTokens) { if (oToken["sType"] != "INFO" && !oToken.hasOwnProperty("bMerged")) { - if (oToken["sType"] == "WORD" && !oToken["bValidToken"]) { + //console.log(">", oToken["sValue"], oToken["sType"], oToken["bValidToken"]); + if (oToken["sType"].startsWith("WORD") && !oToken["bValidToken"]) { oToken["sType"] = "UNKNOWN_WORD"; } xTokenList.appendChild(this._createTokenBlock(oToken)); } } Index: gc_lang/fr/webext/content_scripts/panel_lxg.css ================================================================== --- gc_lang/fr/webext/content_scripts/panel_lxg.css +++ gc_lang/fr/webext/content_scripts/panel_lxg.css @@ -130,15 +130,13 @@ } div.grammalecte_lxg_token_LOC { background-color: hsla(150, 50%, 30%, 1); } -div.grammalecte_lxg_token_WORD { - background-color: hsla(150, 50%, 50%, 1); -} +div.grammalecte_lxg_token_WORD, div.grammalecte_lxg_token_WORD_ELIDED { - background-color: hsla(150, 30%, 50%, 1); + background-color: hsla(150, 50%, 50%, 1); } div.grammalecte_lxg_token_UNKNOWN_WORD { background-color: hsla(0, 50%, 50%, 1); } div.grammalecte_lxg_token_NUM { @@ -148,8 +146,15 @@ background-color: hsla(60, 50%, 50%, 1); } div.grammalecte_lxg_token_PUNC { background-color: hsla(210, 50%, 50%, 1); } +div.grammalecte_lxg_token_SIGN { + background-color: hsla(300, 50%, 50%, 1); +} div.grammalecte_lxg_token_LINK { background-color: hsla(270, 50%, 50%, 1); } +div.grammalecte_lxg_token_HTML, +div.grammalecte_lxg_token_PSEUDO_HTML { + background-color: hsla(60, 50%, 50%, 1); +}