Word list export includes LT top replacement - helps separate typos from abbreviations

This commit is contained in:
Sadmin committed 2026-11-02 17:33:09 +03:00
1 parent 7df303ba0e
commit 35ca06dd6b
2 files changed
+10 -3

No files matched your search

+2 -2
View File
@@ -182,9 +182,9 @@ function render(r) {
document.querySelectorAll(".repl").forEach(b => b.onclick = () => { navigator.clipboard.writeText(b.dataset.t); b.title = "скопировано"; });
const dl = $("dlw"); if (dl) dl.onclick = () => { window.location = "/api/report/" + jobId + "/docx"; };
const dl2 = $("dlw2"); if (dl2) dl2.onclick = () => {
const top = (lastReport.fragments_top || []).map(x => x.count + " " + x.fragment).join("\r\n");
const top = (lastReport.fragments_top || []).map(x => x.count + " " + x.fragment + (x.top_replacement ? " -> " + x.top_replacement.replace(/\s+/g, " ") : "")).join("\r\n");
const a = document.createElement("a");
a.href = URL.createObjectURL(new Blob(["сколько фрагмент\r\n" + top], {type: "text/plain;charset=utf-8"}));
a.href = URL.createObjectURL(new Blob(["сколько фрагмент -> подсказка\r\n" + top], {type: "text/plain;charset=utf-8"}));
a.download = "spisok_slov.txt";
a.click();
};