Grammalecte  Check-in [f86cdbb103]

Overview
Comment:[fx] lexcographer update
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: f86cdbb103b2fc2e98ca07eb663142b7e84f65c712ee8a63f42e5c2c4bd490ad
User & Date: olr on 2020-10-12 13:27:15
Other Links: manifest | tags
Context
2020-10-13
08:08
[fr] ajustements check-in: abca1c84bf user: olr tags: fr, trunk
2020-10-12
13:27
[fx] lexcographer update check-in: f86cdbb103 user: olr tags: fx, trunk
12:31
[fr] ajustements check-in: f3ddb0167f user: olr tags: fr, trunk
Changes

Modified gc_lang/fr/webext/content_scripts/panel_gc.js from [988b1eccad] to [00f590124b].

651
652
653
654
655
656
657
658

659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
        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}));
            xTokenDescr.appendChild(oGrammalecte.createNode("div", {className: "grammalecte_lxg_token_colon", textContent: ":"}));

            if (oToken.aLabels) {
                if (oToken.aLabels.length < 2) {
                    // one morphology only
                    xTokenDescr.appendChild(oGrammalecte.createNode("div", {className: "grammalecte_lxg_morph_elem_inline", textContent: oToken.aLabels[0]}));
                } else {
                    // several morphology
                    let xMorphList = oGrammalecte.createNode("div", {className: "grammalecte_lxg_morph_list"});
                    for (let sLabel of oToken.aLabels) {
                        xMorphList.appendChild(oGrammalecte.createNode("div", {className: "grammalecte_lxg_morph_elem", textContent: "• " + sLabel}));
                    }
                    xTokenDescr.appendChild(xMorphList);
                }
            } else {
                xTokenDescr.appendChild(oGrammalecte.createNode("div", {className: "grammalecte_lxg_morph_elem_inline", textContent: "étiquettes non décrites : [" + oToken.lMorph + "]" }));
            }
            return xTokenDescr;
        }
        catch (e) {
            showError(e);
        }
    }







|
>

<
<
<
<
<
<
|
|
|
<
<

|







651
652
653
654
655
656
657
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 {
                xMorphList.appendChild(oGrammalecte.createNode("div", {className: "grammalecte_lxg_morph_elem", textContent: "• " + "étiquettes non décrites : [" + oToken.lMorph + "]"}));
            }
            return xTokenDescr;
        }
        catch (e) {
            showError(e);
        }
    }

Modified gc_lang/fr/webext/content_scripts/panel_lxg.css from [b335aa8c9f] to [5ca513def6].

92
93
94
95
96
97
98


99
100
101
102
103
104
105
...
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
    border-left: 4px solid hsl(210, 50%, 80%);
    background-color: hsl(210, 50%, 94%);
    border-radius: 3px;
}
div.grammalecte_lxg_token_descr {
    margin: 1px;
    padding: 1px;


}
div.grammalecte_lxg_token {
    display: inline-block;
    background-color: hsl(150, 0%, 50%);
    color: hsl(0, 0%, 96%);
    padding: 2px 5px;
    border-radius: 2px;
................................................................................
div.grammalecte_lxg_token_also {
    display: inline-block;
    margin-left: 5px;
    color: hsl(0, 0%, 50%);
    padding: 2px 5px;
    text-decoration: none;
}
div.grammalecte_lxg_token_colon {
    display: inline-block;
    padding: 2px 5px;
    font-family: "Trebuchet MS", "Fira Sans", "Ubuntu Condensed", "Liberation Sans", sans-serif;
    color: hsl(0, 0%, 50%);
}
div.grammalecte_lxg_morph_list {
    padding: 2px 0 2px 20px;
}
div.grammalecte_lxg_morph_elem_inline {
    display: inline-block;
    font-family: "Trebuchet MS", "Fira Sans", "Ubuntu Condensed", "Liberation Sans", sans-serif;
    color: hsl(0, 0%, 0%);
}
div.grammalecte_lxg_morph_elem {
    font-family: "Trebuchet MS", "Fira Sans", "Ubuntu Condensed", "Liberation Sans", sans-serif;
    color: hsl(0, 0%, 0%);
}
div.grammalecte_lxg_other_tags {
    padding-left: 20px;







>
>







 







<
<
<
<
<
<

|
<
<
<
<
<







92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
...
112
113
114
115
116
117
118






119
120





121
122
123
124
125
126
127
    border-left: 4px solid hsl(210, 50%, 80%);
    background-color: hsl(210, 50%, 94%);
    border-radius: 3px;
}
div.grammalecte_lxg_token_descr {
    margin: 1px;
    padding: 1px;
    display: flex;
    align-items: flex-start;
}
div.grammalecte_lxg_token {
    display: inline-block;
    background-color: hsl(150, 0%, 50%);
    color: hsl(0, 0%, 96%);
    padding: 2px 5px;
    border-radius: 2px;
................................................................................
div.grammalecte_lxg_token_also {
    display: inline-block;
    margin-left: 5px;
    color: hsl(0, 0%, 50%);
    padding: 2px 5px;
    text-decoration: none;
}






div.grammalecte_lxg_morph_list {
    padding: 2px 0 2px 4px;





}
div.grammalecte_lxg_morph_elem {
    font-family: "Trebuchet MS", "Fira Sans", "Ubuntu Condensed", "Liberation Sans", sans-serif;
    color: hsl(0, 0%, 0%);
}
div.grammalecte_lxg_other_tags {
    padding-left: 20px;