Grammalecte  Check-in [f657e4fdcd]

Overview
Comment:[fx] lexicographer: show real value of token
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: f657e4fdcd5bf03f92fe3daf11d5560d5538a98ca1d3a6394040a36238f1a1e3
User & Date: olr on 2020-11-18 20:17:58
Other Links: manifest | tags
Context
2020-11-19
18:38
[fr] ajustements check-in: 38b9862aab user: olr tags: trunk, fr
2020-11-18
20:17
[fx] lexicographer: show real value of token check-in: f657e4fdcd user: olr tags: trunk, fx
20:13
[fr] ajustements check-in: d654d12a61 user: olr tags: trunk, fr
Changes

Modified gc_lang/fr/webext/content_scripts/panel_gc.js from [f433ad18fb] to [88e5c8321b].

658
659
660
661
662
663
664

665
666
667
668
669
670
671
672
        }
        return xTokenBlock;
    }

    _createTokenDescr (oToken) {
        try {
            let xTokenDescr = oGrammalecte.createNode("div", {className: "grammalecte_lxg_token_descr"});

            xTokenDescr.appendChild(oGrammalecte.createNode("div", {className: "grammalecte_lxg_token grammalecte_lxg_token_" + oToken.sType, textContent: oToken.sValue}));
            let xMorphList = oGrammalecte.createNode("div", {className: "grammalecte_lxg_morph_list"});
            xTokenDescr.appendChild(xMorphList);
            if (oToken.aLabels) {
                for (let sLabel of oToken.aLabels) {
                    xMorphList.appendChild(oGrammalecte.createNode("div", {className: "grammalecte_lxg_morph_elem", textContent: "• " + sLabel.trim()}));
                }
            } else {







>
|







658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
        }
        return xTokenBlock;
    }

    _createTokenDescr (oToken) {
        try {
            let xTokenDescr = oGrammalecte.createNode("div", {className: "grammalecte_lxg_token_descr"});
            let sValue = (oToken.hasOwnProperty("sRealValue")) ? oToken["sRealValue"] : oToken["sValue"];
            xTokenDescr.appendChild(oGrammalecte.createNode("div", {className: "grammalecte_lxg_token grammalecte_lxg_token_" + oToken.sType, textContent: sValue}));
            let xMorphList = oGrammalecte.createNode("div", {className: "grammalecte_lxg_morph_list"});
            xTokenDescr.appendChild(xMorphList);
            if (oToken.aLabels) {
                for (let sLabel of oToken.aLabels) {
                    xMorphList.appendChild(oGrammalecte.createNode("div", {className: "grammalecte_lxg_morph_elem", textContent: "• " + sLabel.trim()}));
                }
            } else {