Overview
| Comment: | [tb] lexicon editor: conj initialization (again) |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | tb | multid |
| Files: | files | file ages | folders |
| SHA3-256: |
71052608f4c91f238912a24b117ee7b2 |
| User & Date: | olr on 2018-03-19 19:38:36 |
| Other Links: | branch diff | manifest | tags |
Context
|
2018-03-20
| ||
| 09:21 | [tb] timeout: progress bar to 0 after 2 s check-in: 5eb79332a3 user: olr tags: tb, multid | |
|
2018-03-19
| ||
| 19:38 | [tb] lexicon editor: conj initialization (again) check-in: 71052608f4 user: olr tags: tb, multid | |
| 18:57 | [tb] lexicon editor: delete selected items check-in: d21c8802ec user: olr tags: tb, multid | |
Changes
Modified gc_lang/fr/tb/content/lex_editor.js from [9880a2fcff] to [53f5f430d2].
| ︙ | ︙ | |||
315 316 317 318 319 320 321 |
// utilisation du générateur de conjugaison
let bVarPpas = document.getElementById("v_ppas").checked;
for (let [sFlexion, sFlexTags] of conj_generator.conjugate(this.sLemma, sVerbTag, bVarPpas)) {
this.lFlexion.push([sFlexion, sFlexTags]);
}
} else {
// copie du motif d’un autre verbe : utilisation du conjugueur
| < < | 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 |
// utilisation du générateur de conjugaison
let bVarPpas = document.getElementById("v_ppas").checked;
for (let [sFlexion, sFlexTags] of conj_generator.conjugate(this.sLemma, sVerbTag, bVarPpas)) {
this.lFlexion.push([sFlexion, sFlexTags]);
}
} else {
// copie du motif d’un autre verbe : utilisation du conjugueur
if (conj.isVerb(sVerbPattern)) {
let oVerb = new Verb(this.sLemma, sVerbPattern);
for (let [sTag1, dFlex] of oVerb.dConj.entries()) {
if (sTag1 !== ":Q") {
for (let [sTag2, sConj] of dFlex.entries()) {
if (sTag2.startsWith(":") && sConj !== "") {
this.lFlexion.push([sConj, ":V" + oVerb.cGroup + "_" + sVerbTag + sTag1 + sTag2]);
}
|
| ︙ | ︙ | |||
550 551 552 553 554 555 556 557 558 559 560 |
}
}
const oGenWordsTable = new Table("generated_words_table", ["Flexions", "Étiquettes"], [1, 1], "progress_new_words");
const oLexiconTable = new Table("lexicon_table", ["Flexions", "Lemmes", "Étiquettes"], [10, 7, 10], "progress_lexicon", "num_entries");
oBinaryDict.load();
oBinaryDict.listen();
oGenerator.listen();
| > | 548 549 550 551 552 553 554 555 556 557 558 559 |
}
}
const oGenWordsTable = new Table("generated_words_table", ["Flexions", "Étiquettes"], [1, 1], "progress_new_words");
const oLexiconTable = new Table("lexicon_table", ["Flexions", "Lemmes", "Étiquettes"], [10, 7, 10], "progress_lexicon", "num_entries");
conj.init(helpers.loadFile("resource://grammalecte/fr/conj_data.json"));
oBinaryDict.load();
oBinaryDict.listen();
oGenerator.listen();
|