Overview
Comment: | [fx] update: lexicon editor, use verb pattern, + participes passés |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | fx |
Files: | files | file ages | folders |
SHA3-256: |
d6f8f5c533b2cfd79d4fd64ca56abcbb |
User & Date: | olr on 2018-01-29 19:53:43 |
Other Links: | manifest | tags |
Context
2018-01-30
| ||
12:38 | [fr] pt: faire grand bruit check-in: 28d0121978 user: olr tags: trunk, fr | |
2018-01-29
| ||
19:53 | [fx] update: lexicon editor, use verb pattern, + participes passés check-in: d6f8f5c533 user: olr tags: trunk, fx | |
09:54 | [fx] lexicon editor: conjugate a verb according to another verb check-in: d804292a86 user: olr tags: trunk, fx | |
Changes
Modified gc_lang/fr/modules-js/conj.js from [5b98fc996d] to [4a1c359666].
︙ | |||
191 192 193 194 195 196 197 198 199 200 201 202 203 204 | 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 | + | this.sVerb = sVerb; this.sVerbAux = ""; this._sRawInfo = conj.getVtyp(sVerbPattern); this.sInfo = this._readableInfo(this._sRawInfo); this._tTags = conj._getTags(sVerbPattern); this._tTagsAux = conj._getTags(this.sVerbAux); this.bProWithEn = (this._sRawInfo[5] === "e"); this.cGroup = this._sRawInfo[0]; this.dConj = new Map ([ [":Y", new Map ([ ["label", "Infinitif"], [":", sVerb] ])], [":P", new Map ([ ["label", "Participe présent"], |
︙ |
Modified gc_lang/fr/modules/conj.py from [2a47439b95] to [75ccfbe917].
︙ | |||
160 161 162 163 164 165 166 | 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | - + | self.sVerb = sVerb self.sVerbAux = "" self._sRawInfo = getVtyp(sVerbPattern) self.sInfo = self._readableInfo() self.bProWithEn = (self._sRawInfo[5] == "e") self._tTags = _getTags(sVerbPattern) self._tTagsAux = _getTags(self.sVerbAux) |
︙ |
Modified gc_lang/fr/webext/panel/lex_conj_data.js from [0a2c626447] to [465cbcd5b7].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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 | + + + + + + + + + + + + + + + + + + + + + + + + | // JavaScript "use strict"; // beta stage, unfinished, may be useless or the root for a new way to generate flexions… /* Règles de conjugaison */ const oConj = { "V1_ppas": { "var": [ [2, "é", ":Q:A:1ŝ:m:s/*", false], [2, "és", ":Q:A:m:p/*", false], [2, "ée", ":Q:A:f:s/*", false], [2, "ées", ":Q:A:f:p/*", false], ], "invar": [ [2, "é", ":Q:e:i/*", false], ] }, "V2_ppas": { "var": [ [2, "i", ":Q:A:m:s/*", false], [2, "is", ":Q:A:m:p/*", false], [2, "ie", ":Q:A:f:s/*", false], [2, "ies", ":Q:A:f:p/*", false], ], "invar": [ [2, "i", ":Q:e:i/*", false], ] }, // deuxième groupe (le seul groupe régulier) "V2": [ [2, "ir", ":Y/*", false], [2, "issant", ":P/*", false], [2, "is", ":Ip:Is:1s:2s/*", false], [2, "it", ":Ip:Is:3s/*", false], [2, "issons", ":Ip:1p/*", false], |
︙ |
Modified gc_lang/fr/webext/panel/lex_editor.html from [27635ef8a4] to [66c585ccb9].
︙ | |||
161 162 163 164 165 166 167 168 169 170 | 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 | + + + + + - - + + - + - + - - + + | <details> <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> </details> </div> <div class="block"> <h3><input type="checkbox" id="up_partpas" checked /><label for="up_partpas"> participes passés variables</label></h3> <p>Cette option est ignorée si vous utilisez un verbe modèle.</p> </div> <div class="block"> <h3>Verbe modèle [optionnel]</h3> |
︙ |
Modified gc_lang/fr/webext/panel/lex_editor.js from [4723ccb4db] to [c815154404].
︙ | |||
30 31 32 33 34 35 36 37 38 39 40 41 42 43 | 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | + | document.getElementById("lexicon_button").addEventListener("click", () => { oPage.showPage("lexicon"); }, false); document.getElementById("add_word_button").addEventListener("click", () => { oPage.showPage("lemma"); }, false); document.getElementById("editor").addEventListener("click", (xEvent) => { oPage.onSelectionClick(xEvent); }, false); document.getElementById("lemma").addEventListener("keyup", () => { oPage.onWrite(); }, false); document.getElementById("lemma2").addEventListener("keyup", () => { oPage.onWrite2(); }, false); document.getElementById("verb_pattern").addEventListener("keyup", () => { oFlex.update(); }, false); document.getElementById("flexion").addEventListener("keyup", () => { oFlex.update(); }, false); document.getElementById("tags").addEventListener("keyup", () => { oFlex.update(); }, false); document.getElementById("add_to_lexicon").addEventListener("click", () => { oFlex.addToLexicon(); }, false); /* |
︙ | |||
111 112 113 114 115 116 117 118 119 120 121 122 123 124 | 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | + | document.getElementById("up_v_i").checked = false; document.getElementById("up_v_t").checked = false; document.getElementById("up_v_n").checked = false; document.getElementById("up_v_p").checked = false; document.getElementById("up_v_m").checked = false; document.getElementById("up_v_ae").checked = false; document.getElementById("up_v_aa").checked = false; document.getElementById("verb_pattern").value = ""; // autre document.getElementById("flexion").value = ""; document.getElementById("tags").value = ""; } catch (e) { showError(e); } |
︙ | |||
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | 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 | + + | showError(e); } }, onWrite: function () { if (document.getElementById("lemma").value.trim() !== "") { this.showEditor(); oFlex.update(); } else { this.showSection("section_vide"); this.hideEditor(); this.hideActions(); } }, onWrite2: function () { if (document.getElementById("lemma2").value.trim() !== "") { this.showWord2(); oFlex.update(); } else { this.hideWord2(); } }, showWord2: function () { document.getElementById("word_section2").style.display = "block"; |
︙ | |||
238 239 240 241 242 243 244 | 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 | - + - + - + + + + + - + - + + + + + + + + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + | case "i": this.addFlexion(sLemma2, sLemma, sTag2+":i"); break; } } break; case "V": { |
︙ | |||
316 317 318 319 320 321 322 | 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 | - + | this.show(); } catch (e) { showError(e); } }, |
︙ |