Grammalecte  Check-in [8396b80e31]

Overview
Comment:[fx] update: lexicon editor
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: 8396b80e31e26514807e2583535744ab32fdb4080958cacb3ae8be1a0144775d
User & Date: olr on 2018-01-17 17:37:49
Other Links: manifest | tags
Context
2018-01-22
13:53
[fx] lexicon editor check-in: 9cf43b3e45 user: olr tags: trunk, fx
2018-01-17
17:37
[fx] update: lexicon editor check-in: 8396b80e31 user: olr tags: trunk, fx
2018-01-16
16:45
[fx] WebExt: lexicon editor (ß) check-in: 8a66c7c437 user: olr tags: trunk, fx
Changes

Modified gc_lang/fr/webext/panel/lex_editor.css from [00c320e4d1] to [5dc566c63a].

25
26
27
28
29
30
31
32

33
34
35
36
37
38
39
40
41

42
43
44
45
46

47
48
49
50
51

52
53
54
55
56
57
58
59
60
61




62
63
64
65
66
67
68
69
70
71
72
73
74
75
76

77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95







96






















97
98

99
100
101
102
103
104
105
106
107
108
109


110
111
112
113
114
115
116
25
26
27
28
29
30
31

32
33
34
35
36
37
38
39
40

41
42
43
44
45

46
47
48
49
50

51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107

108
109
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
137
138
139
140


141
142
143
144
145
146
147
148
149







-
+








-
+




-
+




-
+










+
+
+
+















+



















+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

-
+









-
-
+
+







    color: #505050;
}



/* MAIN ====================================================================== */

#main .inbox {
.inbox {
    width: 600px;
    margin: 20px auto 10px auto;
    padding: 10px 30px 30px 30px;
    background: hsl(0, 0%, 100%);
    border: 2px solid #F0F0F0;
    border-radius: 20px;
}

#main h1 {
h1 {
    margin: 5px 0 20px 0;
    color: hsl(210, 50%, 50%);
    font: bold 30px "Trebuchet MS", "Fira Sans", "Liberation Sans", sans-serif;
}
#main h2 {
h2 {
    margin: 5px 0 2px 0;
    color: hsl(0, 50%, 50%);
    font: bold 20px "Trebuchet MS", "Fira Sans", "Liberation Sans", sans-serif;
}
#main h3 {
h3 {
    margin: 3px 0 2px 0;
    color: hsl(210, 50%, 50%);
    font: bold 16px "Trebuchet MS", "Fira Sans", "Liberation Sans", sans-serif;
}


#categories {
    display: flex;
    padding: 10px 0;
}

#another_word_section {
    opacity: .2;
}

.category {
    padding: 10px;
    border-radius: 3px;
    cursor: pointer;
}
.category:hover {
    background-color: hsl(0, 0%, 90%);
}


.empty_section {
    padding: 80px;
    font-size: 24px;
    text-align: center;
    color: hsl(0, 0%, 50%);
}
.section {
    display: none;
    padding: 10px;
}

.container {
    display: flex;
}

.block {
    flex-grow: 1;
    margin: 5px;
    padding: 10px 15px 15px 15px;
    background-color: hsl(0, 10%, 96%);
    border-radius: 3px;
}


.typeline {
    padding: 5px 10px;
}
.widelabel {
    display: inline-block;
    min-width: 80px;
}
input#word {

.examples_true {
    flex-grow: 1;
    margin: 2px;
    padding: 10px;
    background-color: hsl(120, 10%, 90%);
    color: hsl(120, 10%, 50%);
    font-size: 14px;
    border-radius: 3px;
}
.examples_false {
    flex-grow: 1;
    margin: 2px;
    padding: 10px;
    background-color: hsl(0, 10%, 90%);
    color: hsl(0, 10%, 50%);
    font-size: 14px;
    border-radius: 3px;
}


input[type=text] {
    display: inline-block;
    width: 230px;
    width: 250px;
    margin-left: 5px;
    padding: 5px 10px;
    border: 2px solid hsl(0, 0%, 80%);
    border-radius: 3px;
    height: 24px;
    background: transparent;
    font: normal 20px Tahoma, "Ubuntu Condensed";
    color: hsl(0, 0%, 30%);
}
input[placeholder]#word {
    color: hsl(0, 0%, 70%);
input[placeholder] {
    color: hsl(0, 0%, 80%);
}


#generated_words {
    padding: 10px;
}

131
132
133
134
135
136
137
138
164
165
166
167
168
169
170








-
    cursor: pointer;
}
#add_to_dictionary:hover {
    background-color: hsl(0, 60%, 40%);
    color: hsl(0, 60%, 70%);
    box-shadow: 0 0 2px hsl(0, 60%, 50%);
}

Modified gc_lang/fr/webext/panel/lex_editor.html from [4e9fa3bf55] to [14764f0eb2].

1
2
3
4
5
6
7
8
9
10
11
12
13

14
15

16
17

18
19
20


21
22
23


24
25

26
27
28
29



30
31

32
33
34


35
36
37

38
39
40
41



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59





















60
61
62
63








64
65
66
67

68
69
70
71
72
73

74
75
76
77
78
79
80
81
82
83

84
85
86
87
88
89
90
91








92

93
94
95
96
97






98

99
100
101
102





103
104

105
106
107
108
109






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
137
138
139
140
141
142
143
144
145
146
147
148
149
150















151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166















167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182















183
184
185
186
187
188
189
190
191
192
193
194
195














196
197
198
199
200
201





202
203
204
205
206
207
208
209
210
1
2
3
4
5
6
7
8
9
10



11
12

13
14

15
16


17
18



19
20
21

22
23



24
25
26
27

28
29


30
31
32
33

34
35



36
37
38
39

















40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61



62
63
64
65
66
67
68
69
70
71
72

73
74
75
76
77
78

79
80
81
82
83
84





85
86







87
88
89
90
91
92
93
94
95
96





97
98
99
100
101
102
103
104




105
106
107
108
109
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







137
138
139
140
141
142
143
144
145
146




147
148
149
150
151















152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167















168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183















184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199












200
201
202
203
204
205
206
207
208
209
210
211
212
213
214





215
216
217
218
219
220


221
222
223
224
225
226










-
-
-
+

-
+

-
+

-
-
+
+
-
-
-
+
+

-
+

-
-
-
+
+
+

-
+

-
-
+
+


-
+

-
-
-
+
+
+

-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

-
-
-
+
+
+
+
+
+
+
+



-
+





-
+





-
-
-
-
-
+

-
-
-
-
-
-
-
+
+
+
+
+
+
+
+

+
-
-
-
-
-
+
+
+
+
+
+

+
-
-
-
-
+
+
+
+
+


+
-
-
-
-
-
+
+
+
+
+
+

+
-
-
-
-
-
+
+
+
+
+
+

+
-
-
-
-
-
+
+
+
+
+
+

+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+

-
-
-
-
+
+
+
+

-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+

-
-
-
-
-
+
+
+
+
+

-
-






<!DOCTYPE HTML>
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="lex_editor.css" />
        <title>Grammalecte · Éditeur lexical</title>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    </head>
    
    <body>


        <div id="main">
            <div class="inbox">
        <div class="inbox">

                <h1>Éditeur lexical</h1>
            <h1>Éditeur lexical</h1>

                <input type="text" id="word" name="word" maxlength="60" value="" placeholder="votre mot" autofocus />
            <input type="text" id="word" name="word" maxlength="60" value="" placeholder="votre mot" autofocus />

                <div id="categories">
                    <div class="category" id="select_nom">Nom</div>
            <div id="categories">
                <div class="category" id="select_nom" data-tag="N">Nom, adjectif</div>
                    <div class="category" id="select_adjectif">Adjectif</div>
                    <div class="category" id="select_verbe">Verbe</div>
                    <div class="category" id="select_adverbe">Adverbe</div>
                <div class="category" id="select_verbe" data-tag="V">Verbe</div>
                <div class="category" id="select_adverbe" data-tag="W">Adverbe</div>

                    <div class="separator"></div>
                <div class="separator"></div>

                    <div class="category" id="select_prenom">Prénom</div>
                    <div class="category" id="select_patronyme">Patronyme</div>
                    <div class="category" id="select_nom_propre">Nom propre</div>
                <div class="category" id="select_prenom" data-tag="M1">Prénom</div>
                <div class="category" id="select_patronyme" data-tag="M2">Patronyme</div>
                <div class="category" id="select_nom_propre" data-tag="MP">Nom propre</div>

                    <div class="separator"></div>
                <div class="separator"></div>

                    <div class="category" id="select_autre">Autre</div>
                </div>
                <div class="category" id="select_autre" data-tag="">Autre</div>
            </div>


                <div id="editor">
            <div id="editor">

                    <div id="section_vide" class="empty_section">
                        Sélectionnez une catégorie.
                    </div>
                <div id="section_vide" class="empty_section">
                    Sélectionnez une catégorie.
                </div>

                    <div id="section_nom" class="section">
                        <h2>Nom</h2>
                        <p><input type="checkbox" id="nom_adj" /><label for="nom_adj"> c’est aussi un adjectif</label></p>
                        <div class="container">
                            <div class="block">
                                <h3>Genre</h3>
                                <p><input type="radio" id="nom_genre_e" name="genre" value="epi" checked /><label for="nom_genre_e"> épicène</label></p>
                                <p><input type="radio" id="nom_genre_m" name="genre" value="mas" /><label for="nom_genre_m"> masculin</label></p>
                                <p><input type="radio" id="nom_genre_f" name="genre" value="fem" /><label for="nom_genre_f"> féminin</label></p>
                            </div>
                            <div class="block">
                                <h3>Pluriel</h3>
                                <p><input type="radio" id="nom_pluriel_e" name="pluriel" value="s" checked /><label for="nom_pluriel_e"> pluriel en ·s</label></p>
                                <p><input type="radio" id="nom_pluriel_m" name="pluriel" value="x" /><label for="nom_pluriel_m"> pluriel en ·x</label></p>
                                <p><input type="radio" id="nom_pluriel_f" name="pluriel" value="inv" /><label for="nom_pluriel_f"> invariable</label></p>
                            </div>
                        </div>
                <div id="section_nom" class="section">
                    <h2>Nom, adjectif</h2>
                    <p class="typeline">
                        <input type="radio" id="type_nom" name="POS" value="nom" /> <label class="widelabel" for="type_nom">Nom</label>
                        <input type="radio" id="type_adj" name="POS" value="adj" /> <label class="widelabel" for="type_adj">Adjectif</label>
                        <input type="radio" id="type_nomadj" name="POS" value="nomadj" /> <label class="widelabel" for="type_nomadj">Nom &amp; adjectif</label>
                    </p>
                    <div class="container">
                        <div class="block">
                            <h3>Genre</h3>
                            <p><input type="radio" id="nom_genre_e" name="genre" value="epi" /><label for="nom_genre_e"> épicène</label></p>
                            <p><input type="radio" id="nom_genre_m" name="genre" value="mas" /><label for="nom_genre_m"> masculin</label></p>
                            <p><input type="radio" id="nom_genre_f" name="genre" value="fem" /><label for="nom_genre_f"> féminin</label></p>
                        </div>
                        <div class="block">
                            <h3>Pluriel</h3>
                            <p><input type="radio" id="nom_pluriel_e" name="pluriel" value="s" /><label for="nom_pluriel_e"> pluriel en ·s</label></p>
                            <p><input type="radio" id="nom_pluriel_m" name="pluriel" value="x" /><label for="nom_pluriel_m"> pluriel en ·x</label></p>
                            <p><input type="radio" id="nom_pluriel_f" name="pluriel" value="inv" /><label for="nom_pluriel_f"> invariable</label></p>
                        </div>
                    </div>

                        <h3>[optionnel] Autre forme (masculine, féminine, variante, etc.)</h3>
                        <input type="text" id="word2" name="word2" maxlength="60" value="" placeholder="votre mot" />
                        <p><input type="checkbox" id="nom_adj2" /><label for="nom_adj2"> c’est aussi un adjectif</label></p>
                    <h2>[optionnel] Autre forme (masculine, féminine, variante, etc.)</h2>
                    <input type="text" id="word2" name="word2" maxlength="60" value="" placeholder="votre mot" />
                    <div id="another_word_section">
                        <p class="typeline">
                            <input type="radio" id="type_nom2" name="POS2" value="nom" /> <label class="widelabel" for="type_nom2">Nom</label>
                            <input type="radio" id="type_adj2" name="POS2" value="adj" /> <label class="widelabel" for="type_adj2">Adjectif</label>
                            <input type="radio" id="type_nomadj2" name="POS2" value="nomadj" /> <label class="widelabel" for="type_nomadj2">Nom &amp; adjectif</label>
                        </p>
                        <div class="container">
                            <div class="block">
                                <h3>Genre</h3>
                                <p><input type="radio" id="nom2_genre_e" name="genre2" value="epi" checked /><label for="nom2_genre_e"> épicène</label></p>
                                <p><input type="radio" id="nom2_genre_e" name="genre2" value="epi" /><label for="nom2_genre_e"> épicène</label></p>
                                <p><input type="radio" id="nom2_genre_m" name="genre2" value="mas" /><label for="nom2_genre_m"> masculin</label></p>
                                <p><input type="radio" id="nom2_genre_f" name="genre2" value="fem" /><label for="nom2_genre_f"> féminin</label></p>
                            </div>
                            <div class="block">
                                <h3>Pluriel</h3>
                                <p><input type="radio" id="nom2_pluriel_e" name="pluriel2" value="s" checked /><label for="nom2_pluriel_e"> pluriel en ·s</label></p>
                                <p><input type="radio" id="nom2_pluriel_e" name="pluriel2" value="s" /><label for="nom2_pluriel_e"> pluriel en ·s</label></p>
                                <p><input type="radio" id="nom2_pluriel_m" name="pluriel2" value="x" /><label for="nom2_pluriel_m"> pluriel en ·x</label></p>
                                <p><input type="radio" id="nom2_pluriel_f" name="pluriel2" value="inv" /><label for="nom2_pluriel_f"> invariable</label></p>
                            </div>
                        </div>
                    </div>

                    <div id="section_adjectif" class="section">
                        <h2>Adjectif</h2>

                    </div>
                </div>

                    <div id="section_verbe" class="section">
                        <h2>Verbe</h2>
                        <div class="block">
                            <h3><input type="checkbox" id="v_i" /><label for="v_i"> intransitif</label></h3>
                            <div class="description">Cochez cette case, si ce verbe peut s’utiliser sans complément d’objet.</div>
                            <div class="examples_true">Je mange. Je pars. Je pense.</div>
                            <div class="examples_false">J’appartiens à…</div>
                <div id="section_verbe" class="section">
                    <h2>Verbe</h2>
                    <div class="block">
                        <h3><input type="checkbox" id="v_i" /><label for="v_i"> intransitif</label></h3>
                        <div class="description">Cochez cette case si ce verbe peut s’utiliser sans complément d’objet.</div>
                        <div class="container">
                            <div class="examples_true">Je dors.<br/>Tu pars.<br/>Elle pense.<br/>Nous écrivons.<br/>Vous manifestez.<br/>Ils viennent.</div>
                            <div class="examples_false">J’appartiens à ce groupe…</div>
                        </div>
                    </div>
                        <div class="block">
                            <h3><input type="checkbox" id="v_t" /><label for="v_t"> transitif direct</label></h3>
                            <div class="description">Cochez cette case, si ce verbe peut s’utiliser avec un complément d’objet direct.</div>
                            <div class="examples_true">Je mange <i>une pomme</i>. Je donne <i>une gifle</i>.</div>
                            <div class="examples_false">Je pars. J’appartiens à…</div>
                    <div class="block">
                        <h3><input type="checkbox" id="v_t" /><label for="v_t"> transitif direct</label></h3>
                        <div class="description">Cochez cette case si ce verbe peut s’utiliser avec un complément d’objet direct (COD).</div>
                        <div class="container">
                            <div class="examples_true">Je mange <i>une pomme</i>.<br/>Tu donnes <i>une bonne impression</i>.<br/>Elle écrit <i>un livre</i>.<br/>Nous fabriquons <i>une œuvre</i>.</div>
                            <div class="examples_false">Je pars.<br/>J’appartiens à…</div>
                        </div>
                    </div>
                        <div class="block">
                            <h3><input type="checkbox" id="v_n" /><label for="v_n"> transitif indirect</label></h3>
                            <div class="description">Cochez cette case, si ce verbe peut s’utiliser avec un complément d’objet indirect direct.</div>
                            <div class="examples_true">Je donne une bise <i>à sa femme</i>.J’appartiens <i>à ce groupe.</i>.</div>
                    <div class="block">
                        <h3><input type="checkbox" id="v_n" /><label for="v_n"> transitif indirect</label></h3>
                        <div class="description">Cochez cette case, si ce verbe peut s’utiliser avec un complément d’objet indirect (COI). Attention à ne pas confondre avec un complément de temps ou de lieu.</div>
                        <div class="container">
                            <div class="examples_true">Je donne un cadeau <i>à sa femme</i>.<br/>Elle appartient <i>à ce groupe</i>.</div>
                            <div class="examples_false"></div>
                        </div>
                    </div>
                        <div class="block">
                            <h3><input type="checkbox" id="v_p" /><label for="v_p"> pronominal</label></h3>
                            <div class="description">Cochez cette case, si ce verbe peut s’utiliser pronominalement.</div>
                            <div class="examples_true">Je me suis trompé.</div>
                            <div class="examples_false"></div>
                    <div class="block">
                        <h3><input type="checkbox" id="v_p" /><label for="v_p"> pronominal</label></h3>
                        <div class="description">Cochez cette case si ce verbe peut s’utiliser pronominalement.</div>
                        <div class="container">
                            <div class="examples_true">Je me suis trompé.<br/>Tu t’es étonné toi-même.<br/>Elle s’est souvenu de ses études.<br/>Nous nous sommes égarés.<br/>Vous vous êtes retrouvées.<br/>Ils se sont rappelé leur enfance.</div>
                            <div class="examples_false">Je me suis venu.</div>
                        </div>
                    </div>
                        <div class="block">
                            <h3><input type="checkbox" id="v_m" /><label for="v_m"> impersonnel</label></h3>
                            <div class="description">Cochez cette case, si ce verbe ne peut s’utiliser à la première personne, mais uniquement à la troisième personne du singulier ou du pluriel.</div>
                            <div class="examples_true">.</div>
                            <div class="examples_false"></div>
                    <div class="block">
                        <h3><input type="checkbox" id="v_m" /><label for="v_m"> impersonnel</label></h3>
                        <div class="description">Cochez cette case si ce verbe ne peut s’utiliser à la première personne, mais uniquement à la troisième personne du singulier ou du pluriel.</div>
                        <div class="container">
                            <div class="examples_true">Il pleut.</div>
                            <div class="examples_false">Je pleus.</div>
                        </div>
                    </div>
                        <div class="block">
                            <h3><input type="checkbox" id="v_ae" /><label for="v_ae">passé compsé avec l’auxiliaire “être”</label></h3>
                            <div class="description">Cochez cette case, si ce verbe s’emploie au passé composé avec l’auxilaire “être”.</div>
                            <div class="examples_true">Je suis venu. Je suis parti.</div>
                            <div class="examples_false">J’ai venu. J’ai parti.</div>
                    <div class="block">
                        <h3><input type="checkbox" id="v_ae" /><label for="v_ae"> passé composé avec l’auxiliaire “être”</label></h3>
                        <div class="description">Cochez cette case, si ce verbe s’emploie au passé composé avec l’auxilaire “être”.</div>
                        <div class="container">
                            <div class="examples_true">Je suis venu.<br/>Je suis parti.</div>
                            <div class="examples_false">J’ai venu.<br/>J’ai parti.</div>
                        </div>
                    </div>
                        <div class="block">
                            <h3><input type="checkbox" id="v_aa" /><label for="v_aa">passé compsé avec l’auxiliaire “avoir”</label></h3>
                            <div class="description">Cochez cette case, si ce verbe s’emploie au passé composé avec l’auxilaire “avoir”.</div>
                            <div class="examples_true">J’ai mangé. J’ai prié.</div>
                            <div class="examples_false">Je suis mangé. Je suis prié.</div>
                        </div>
                    </div>
                    <div class="block">
                        <h3><input type="checkbox" id="v_aa" /><label for="v_aa"> passé composé avec l’auxiliaire “avoir”</label></h3>
                        <div class="description">Cochez cette case, si ce verbe s’emploie au passé composé avec l’auxilaire “avoir”.</div>
                        <div class="container">
                            <div class="examples_true">J’ai mangé.<br/>J’ai prié.</div>
                            <div class="examples_false">Je suis mangé.<br/>Je suis prié.</div>
                        </div>
                    </div>
                </div>

                    <div id="section_adverbe" class="section">
                        <h2>Adverbe</h2>
                        <p>Les adverbes sont invariables en genre et en nombre.</p>
                    </div>
                <div id="section_adverbe" class="section">
                    <h2>Adverbe</h2>
                    <p>Les adverbes sont invariables en genre et en nombre.</p>
                </div>

                    <div id="section_prenom" class="section">
                        <h2>Prénom</h2>
                        <div class="container">
                            <div class="block">
                                <h3>Genre</h3>
                                <p><input type="radio" id="prenom_genre_e" name="genre" value="epi" checked /><label for="prenom_genre_e"> épicène</label></p>
                                <p><input type="radio" id="prenom_genre_m" name="genre" value="mas" /><label for="prenom_genre_m"> masculin</label></p>
                                <p><input type="radio" id="prenom_genre_f" name="genre" value="fem" /><label for="prenom_genre_f"> féminin</label></p>
                            </div>
                            <div class="block">
                                <h3>Pluriel</h3>
                                <p>Les prénoms sont invariables en nombre.</p>
                            </div>
                        </div>
                    </div>
                <div id="section_prenom" class="section">
                    <h2>Prénom</h2>
                    <div class="container">
                        <div class="block">
                            <h3>Genre</h3>
                            <p><input type="radio" id="prenom_genre_e" name="genre" value="epi" checked /><label for="prenom_genre_e"> épicène</label></p>
                            <p><input type="radio" id="prenom_genre_m" name="genre" value="mas" /><label for="prenom_genre_m"> masculin</label></p>
                            <p><input type="radio" id="prenom_genre_f" name="genre" value="fem" /><label for="prenom_genre_f"> féminin</label></p>
                        </div>
                        <div class="block">
                            <h3>Pluriel</h3>
                            <p>Les prénoms sont invariables en nombre.</p>
                        </div>
                    </div>
                </div>

                    <div id="section_patronyme" class="section">
                        <h2>Patronyme</h2>
                        <div class="container">
                            <div class="block">
                                <h3>Genre</h3>
                                <p><input type="radio" id="patronyme_genre_e" name="genre" value="epi" checked /><label for="patronyme_genre_e"> épicène</label></p>
                                <p><input type="radio" id="patronyme_genre_m" name="genre" value="mas" /><label for="patronyme_genre_m"> masculin</label></p>
                                <p><input type="radio" id="patronyme_genre_f" name="genre" value="fem" /><label for="patronyme_genre_f"> féminin</label></p>
                            </div>
                            <div class="block">
                                <h3>Pluriel</h3>
                                <p>Les noms de famille sont invariables en nombre.</p>
                            </div>
                        </div>
                    </div>
                <div id="section_patronyme" class="section">
                    <h2>Patronyme</h2>
                    <div class="container">
                        <div class="block">
                            <h3>Genre</h3>
                            <p><input type="radio" id="patronyme_genre_e" name="genre" value="epi" checked /><label for="patronyme_genre_e"> épicène</label></p>
                            <p><input type="radio" id="patronyme_genre_m" name="genre" value="mas" /><label for="patronyme_genre_m"> masculin</label></p>
                            <p><input type="radio" id="patronyme_genre_f" name="genre" value="fem" /><label for="patronyme_genre_f"> féminin</label></p>
                        </div>
                        <div class="block">
                            <h3>Pluriel</h3>
                            <p>Les noms de famille sont invariables en nombre.</p>
                        </div>
                    </div>
                </div>

                    <div id="section_nom_propre" class="section">
                        <h2>Nom propre</h2>
                        <div class="container">
                            <div class="block">
                                <h3>Genre</h3>
                                <p><input type="radio" id="nom_propre_genre_e" name="genre" value="epi" checked /><label for="nom_propre_genre_e"> épicène</label></p>
                                <p><input type="radio" id="nom_propre_genre_m" name="genre" value="mas" /><label for="nom_propre_genre_m"> masculin</label></p>
                                <p><input type="radio" id="nom_propre_genre_f" name="genre" value="fem" /><label for="nom_propre_genre_f"> féminin</label></p>
                            </div>
                            <div class="block">
                                <h3>Pluriel</h3>
                                <p>Les noms propres sont invariables en nombre.</p>
                            </div>
                        </div>
                    </div>
                <div id="section_nom_propre" class="section">
                    <h2>Nom propre</h2>
                    <div class="container">
                        <div class="block">
                            <h3>Genre</h3>
                            <p><input type="radio" id="nom_propre_genre_e" name="genre" value="epi" checked /><label for="nom_propre_genre_e"> épicène</label></p>
                            <p><input type="radio" id="nom_propre_genre_m" name="genre" value="mas" /><label for="nom_propre_genre_m"> masculin</label></p>
                            <p><input type="radio" id="nom_propre_genre_f" name="genre" value="fem" /><label for="nom_propre_genre_f"> féminin</label></p>
                        </div>
                        <div class="block">
                            <h3>Pluriel</h3>
                            <p>Les noms propres sont invariables en nombre.</p>
                        </div>
                    </div>
                </div>

                    <div id="section_autre" class="section">
                        <h2>Autre</h2>
                        <p>Indiquez les étiquettes grammaticales que vous voulez appliquer au mot. À utiliser seulement si vous savez ce que vous faites. Dans le cas contraire, tant pis pour vous.</p>
                        <h3>Étiquettes</h3>
                        <p><input type="text" id="tag" name="tag" maxlength="20" value="" placeholder="étiquettes" autofocus /></p>
                    </div>
                </div>
                    
                <div id="generated_words">
                    <h2>Mots générés</h2>
                    <pre></pre>
                </div>
                <div id="section_autre" class="section">
                    <h2>Autre</h2>
                    <p>Indiquez les étiquettes grammaticales que vous voulez appliquer au mot. À utiliser seulement si vous savez ce que vous faites. Dans le cas contraire, tant pis pour vous.</p>
                    <h3>Lemme</h3>
                    <p><input type="text" id="lemma" name="lemma" maxlength="20" value="" placeholder="Lemme" autofocus /></p>
                    <h3>Étiquettes</h3>
                    <p><input type="text" id="tags" name="tags" maxlength="20" value="" placeholder="étiquettes" autofocus /></p>
                </div>
            </div>
                
            <div id="generated_words">
                <h2>Mots générés</h2>
                <pre></pre>
            </div>

                <div id="buttonline">
                    <div id="add_to_dictionary">Ajouter au dictionnaire</div>
                </div>
                
            </div>
            <div id="buttonline">
                <div id="add_to_dictionary">Ajouter au dictionnaire</div>
            </div>
            
        </div>


        </div>

        <script src="../grammalecte/graphspell/helpers.js"></script>
        <script src="lex_editor.js"></script>
    </body>
    
</html>

Modified gc_lang/fr/webext/panel/lex_editor.js from [30d4ca29ce] to [19387800f2].

9
10
11
12
13
14
15
16

17
18
19
20
21
22
23
9
10
11
12
13
14
15

16
17
18
19
20
21
22
23







-
+









function onSelectionClick (xEvent) {
    try {
        let xElem = xEvent.target;
        if (xElem.id) {
            if (xElem.id.startsWith("select_")) {
                showSection("section_" + xElem.id.slice(7));
                oPage.showSection("section_" + xElem.id.slice(7));
            } else {
                
            }
        } else {
            
        }
    }
32
33
34
35
36
37
38


39
40
41
42
43
44
45







46
47
48
49
50
51
52
































































32
33
34
35
36
37
38
39
40







41
42
43
44
45
46
47
48






49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112







+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+

-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+



/*
    ACTIONS
*/

const oPage = {

function hideAllSections () {
    for (let xElem of document.getElementById("editor").childNodes) {
        if (xElem.id) {
            xElem.style.display = "none";
        }
    }
}
    hideAllSections: function () {
        for (let xElem of document.getElementById("editor").childNodes) {
            if (xElem.id) {
                xElem.style.display = "none";
            }
        }
    },

function showSection (sName) {
    hideAllSections();
    if (document.getElementById(sName)) {
        document.getElementById(sName).style.display = "block";
    }
}
    showSection: function (sName) {
        this.clear();
        this.hideAllSections();
        if (document.getElementById(sName)) {
            document.getElementById(sName).style.display = "block";
        }
    },

    clear: function () {
        try {
            // nom, adjectif, noms propres
            for (let xElem of document.getElementsByName("POS")) {
                xElem.checked = false;
            }
            for (let xElem of document.getElementsByName("POS2")) {
                xElem.checked = false;
            }
            for (let xElem of document.getElementsByName("pluriel")) {
                xElem.checked = false;
            }
            for (let xElem of document.getElementsByName("genre")) {
                xElem.checked = false;
            }
            // verbe
            document.getElementById("v_i").checked = false;
            document.getElementById("v_t").checked = false;
            document.getElementById("v_n").checked = false;
            document.getElementById("v_p").checked = false;
            document.getElementById("v_m").checked = false;
            document.getElementById("v_ae").checked = false;
            document.getElementById("v_aa").checked = false;
            // autre
            document.getElementById("lemma").value = "";
            document.getElementById("tags").value = "";
        }
        catch (e) {
            showError(e);
        }
    }
}



const oFlex = {

    sLemma: "",
    lFlexion: [],

    getLemma: function () {
        this.sLemma = document.getElementById("lemma").value;
    },

    create: function () {

    },

    show: function () {

    },

    addToDictionary: function () {

    }
}