Index: gc_lang/fr/modules-js/conj_generator.js ================================================================== --- gc_lang/fr/modules-js/conj_generator.js +++ gc_lang/fr/modules-js/conj_generator.js @@ -61,12 +61,12 @@ } // 2 lettres else { lConj = this.oConj["V1"]["er"]; } - console.log(lConj); - console.log(this.oConj["V1_ppas"][sVarPpas]); + //console.log(lConj); + //console.log(this.oConj["V1_ppas"][sVarPpas]); lConj.push(...this.oConj["V1_ppas"][sVarPpas]); } else if (sVerb.endsWith("ir") && nGroup <= 2) { // deuxième groupe lConj = this.oConj["V2"]; lConj.push(...this.oConj["V2_ppas"][sVarPpas]); Index: gc_lang/fr/webext/panel/lex_editor.css ================================================================== --- gc_lang/fr/webext/panel/lex_editor.css +++ gc_lang/fr/webext/panel/lex_editor.css @@ -59,13 +59,15 @@ #lexicon_button { background-color: hsl(210, 80%, 90%); } .main_button { margin: 0 5px; - padding: 10px 30px; + width: 100px; + padding: 10px 20px; background-color: hsl(210, 10%, 95%); border-radius: 5px; + text-align: center; cursor: pointer; } .big_block { margin: 10px 0; @@ -97,17 +99,18 @@ #word_section2 { display: none; } .category { + margin-right: 5px; padding: 10px; border-radius: 3px; - border-left: 2px solid hsl(210, 10%, 90%); + background-color: hsl(210, 20%, 96%); cursor: pointer; } .category:hover { - background-color: hsl(0, 0%, 90%); + background-color: hsl(210, 20%, 90%); } .section { display: none; padding: 10px; @@ -156,11 +159,11 @@ flex-grow: 1; margin: 2px; padding: 10px; background-color: hsl(0, 10%, 90%); color: hsl(0, 10%, 50%); - font-size: 14px; + font-size: 12px; border-radius: 3px; } ul { margin-left: 30px; @@ -167,11 +170,10 @@ } input[type=text] { display: inline-block; width: 250px; - margin-left: 5px; padding: 5px 10px; border: 2px solid hsl(0, 0%, 80%); border-radius: 3px; height: 24px; background: transparent; @@ -184,30 +186,28 @@ #buttonline { - margin-top: 10px; + margin-top: 5px; text-align: right; } #add_to_lexicon { display: inline-block; - padding: 7px 10px; - font-size: 18px; - background-color: hsl(0, 30%, 30%); - color: hsl(0, 30%, 60%); + padding: 5px 10px; + font-size: 16px; + background-color: hsl(150, 50%, 50%); + color: hsl(150, 50%, 96%); border-radius: 3px; - text-transform: uppercase; text-align: center; - text-decoration: none; cursor: pointer; } #add_to_lexicon:hover { - background-color: hsl(0, 60%, 40%); - color: hsl(0, 60%, 70%); - box-shadow: 0 0 2px hsl(0, 60%, 50%); + background-color: hsl(150, 60%, 40%); + color: hsl(150, 60%, 90%); + box-shadow: 0 0 2px hsl(150, 60%, 50%); } #lexicon_page { @@ -268,5 +268,11 @@ font-size: 11px; font-variant: small-caps; color: hsl(210, 50%, 50%); cursor: pointer; } +details > * { + font-size: 12px; + font-variant: normal; + color: hsl(210, 0%, 0%); + cursor: auto; +} Index: gc_lang/fr/webext/panel/lex_editor.html ================================================================== --- gc_lang/fr/webext/panel/lex_editor.html +++ gc_lang/fr/webext/panel/lex_editor.html @@ -10,25 +10,25 @@

Éditeur lexical

-
-
Lexique
-
Ajout
-
-
-

Dictionnaire personnel.

-
Enregistré le : néant.
-
0 entrées.
+

Dictionnaire personnel

+
Enregistré le :
+
0 entrées
Exporter
Importer
+ +
+
Lexique
+
Ajout
+

Nouveau mot (lemme)

@@ -35,11 +35,11 @@
-

Nom, adjectif

+

Nom commun

@@ -90,31 +90,31 @@

Le verbe peut s’utiliser sans complément d’objet.
Je dors.
Tu pars.
Elle pense.
Nous écrivons.
Vous manifestez.
Ils viennent.
-
J’appartiens à ce groupe…
+
J’appartiens à ce groupe…
J’accède au niveau supérieur.

Ce verbe peut s’utiliser avec un complément d’objet direct (COD).
Je mange une pomme.
Tu donnes une bonne impression.
Elle écrit un livre.
Nous fabriquons une œuvre.
-
Je pars.
J’appartiens à…
+
Je pars ce matin.
J’appartiens à…

Ce verbe peut s’utiliser avec un complément d’objet indirect (COI). Attention à ne pas confondre avec un complément circonstanciel de temps, de lieu ou de manière.
Je donne un cadeau à sa femme.
Elle appartient à ce groupe.
-
+
Elle danse à l’opéra.

@@ -129,28 +129,25 @@

Ce verbe ne peut s’utiliser à la première personne, mais uniquement à la troisième personne du singulier ou du pluriel.
-
Il pleut.
-
Je pleus.
+
Il pleut.
Il faut.
+
Je pleus.
Nous fallons.
-

-
Ce verbe s’emploie au passé composé avec l’auxiliaire “être”.
+

Auxiliaire pour le passé composé

+
Je suis venu.
Je suis parti.
J’ai venu.
J’ai parti.
-
-
-

-
Ce verbe s’emploie au passé composé avec l’auxiliaire “avoir”.
+
J’ai mangé.
J’ai prié.
Je suis mangé.
Je suis prié.
@@ -157,16 +154,16 @@

-

Cette option est ignorée si vous utilisez un verbe modèle.

+

Cette option est ignorée si vous utilisez un verbe modèle.

Verbe modèle [optionnel]

-

Indiquer un verbe qui doit servir de modèle n’est pas nécessaire pour la très grande majorité des verbes du 1ᵉʳ groupe et du 2ᵉ groupe. Failes-le seulement si les formes fléchies engendrées automatiquement ne vous satisfont pas.

+

Indiquer un verbe qui doit servir de modèle n’est pas nécessaire pour la très grande majorité des verbes du 1ᵉʳ groupe et du 2ᵉ groupe. Faites-le seulement si les formes fléchies engendrées automatiquement ne vous satisfont pas.

Il est fortement recommandé d’appliquer les règles d’un verbe du même groupe que celui que vous créez. Mais aucune restriction n’est imposée.

Classification des groupes :

    @@ -191,46 +188,27 @@

    Adverbe

    Les adverbes sont invariables en genre et en nombre.

    -

    Prénom

    -
    -
    -
    -

    Genre

    -

    -

    -

    -
    -
    -
    - -

    Patronyme

    -
    -
    -
    -

    Genre

    -

    -

    -

    -
    -
    -
    - -

    Nom propre

    +

    Nom propre

    Genre

    -

    -

    -

    +

    +

    +

    +
    +
    +

    Genre

    +

    +

    +

    -

    Autre

    Indiquez les étiquettes grammaticales que vous voulez appliquer au mot. À utiliser seulement si vous savez ce que vous faites.

    Flexion

    Index: gc_lang/fr/webext/panel/lex_editor.js ================================================================== --- gc_lang/fr/webext/panel/lex_editor.js +++ gc_lang/fr/webext/panel/lex_editor.js @@ -197,11 +197,11 @@ document.getElementById("flexion").addEventListener("keyup", () => { this.update(); }, false); document.getElementById("tags").addEventListener("keyup", () => { this.update(); }, false); document.getElementById("add_to_lexicon").addEventListener("click", () => { this.addToLexicon(); }, false); }, - lSection: ["nom", "verbe", "adverbe", "prenom", "patronyme", "nom_propre", "autre"], + lSection: ["nom", "verbe", "adverbe", "nom_propre", "autre"], hideAllSections: function () { for (let sSection of this.lSection) { hideElement("section_" + sSection); document.getElementById("select_" + sSection).style.backgroundColor = ""; @@ -297,11 +297,10 @@ }, update: function () { try { this.lFlexion = []; - let sGenderTag = ""; this.sLemma = document.getElementById("lemma").value.trim(); if (this.sLemma.length > 0) { switch (this.cMainTag) { case "N": if (!this.getRadioValue("POS") || !this.getRadioValue("genre")) { @@ -395,28 +394,16 @@ } case "W": this.sLemma = this.sLemma.toLowerCase(); this.lFlexion.push([this.sLemma, ":W/*"]); break; - case "M1": - this.sLemma = this.sLemma.slice(0,1).toUpperCase() + this.sLemma.slice(1); - sGenderTag = this.getRadioValue("genre_m1"); - if (sGenderTag) { - this.lFlexion.push([this.sLemma, ":M1"+sGenderTag+":i/*"]); - } - break; - case "M2": - this.sLemma = this.sLemma.slice(0,1).toUpperCase() + this.sLemma.slice(1); - sGenderTag = this.getRadioValue("genre_m2"); - if (sGenderTag) { - this.lFlexion.push([this.sLemma, ":M2"+sGenderTag+":i/*"]); - } - break; - case "MP": - sGenderTag = this.getRadioValue("genre_mp"); - if (sGenderTag) { - this.lFlexion.push([this.sLemma, ":MP"+sGenderTag+":i/*"]); + case "M": + this.sLemma = this.sLemma.slice(0,1).toUpperCase() + this.sLemma.slice(1); + let sPOSTag = this.getRadioValue("pos_nom_propre") + let sGenderTag = this.getRadioValue("genre_m"); + if (sGenderTag) { + this.lFlexion.push([this.sLemma, sPOSTag+sGenderTag+":i/*"]); } break; case "X": let sFlexion = document.getElementById("flexion").value.trim(); let sTags = document.getElementById("tags").value.trim(); @@ -499,11 +486,11 @@ setDictData: function (nEntries, sDate) { document.getElementById("dic_num_entries").textContent = nEntries; document.getElementById("dic_save_date").textContent = sDate; }, - listen () { + listen: function () { document.getElementById("export_button").addEventListener("click", () => { this.export(); }, false); document.getElementById("import_button").addEventListener("click", () => { this.import(); }, false); }, build: function () {