541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
|
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
|
-
+
+
|
browser.storage.local.set({ "dictionaries": this.oDictionaries });
}
}
const oBinaryDict = {
oIBDAWG: null,
sName: null,
sName: "",
sDescription: "",
load: function (sName) {
console.log("lexicon editor, load: " + sName);
this.sName = sName;
let oJSON = oDictHandler.getDictionary(sName);
if (oJSON) {
this.parseDict(oJSON);
|
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
|
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
|
-
+
|
document.getElementById("import_input").addEventListener("change", () => { this.import(); }, false);
},
build: function () {
let xProgressNode = document.getElementById("wait_progress");
let lEntry = oLexiconTable.getEntries();
if (lEntry.length > 0) {
let oDAWG = new DAWG(lEntry, "S", "fr", "Français", this.sName, xProgressNode);
let oDAWG = new DAWG(lEntry, "S", "fr", "Français", this.sName, this.sDescription, xProgressNode);
let oJSON = oDAWG.createBinaryJSON(1);
oDictHandler.saveDictionary(this.sName, oJSON);
this.oIBDAWG = new IBDAWG(oJSON);
this.setDictData(this.oIBDAWG.nEntry, this.oIBDAWG.sDate);
} else {
oDictHandler.saveDictionary(this.sName, null);
this.setDictData(0, "[néant]");
|