Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- app.js +89 -2
- index.html +2 -2
- style.css +8 -0
app.js
CHANGED
|
@@ -125,6 +125,7 @@
|
|
| 125 |
if (path.startsWith("/search")) { closePanel(); setNav("search"); return renderSearch(path.slice(8), params); }
|
| 126 |
if (path.startsWith("/phrases")) { closePanel(); setNav("phrases"); return renderPhrases(); }
|
| 127 |
if (path.startsWith("/ideas")) { closePanel(); setNav("ideas"); return renderIdeas(path.slice(7), params); }
|
|
|
|
| 128 |
if (path.startsWith("/quotes")) { closePanel(); setNav("quotes"); return renderQuotes(); }
|
| 129 |
if (path.startsWith("/about")) { closePanel(); setNav("about"); return renderAbout(path.slice(7)); }
|
| 130 |
const [wid, b, unit] = path.split("/");
|
|
@@ -1063,6 +1064,15 @@
|
|
| 1063 |
const U = usual[lid];
|
| 1064 |
if (U && U.length) parts.push(`<div>Usually translated as ${U.map(([w, pc]) => `<i>${esc(w)}</i> <span class="muted">${pc}%</span>`).join(", ")}</div>`);
|
| 1065 |
if (parts.length) el.innerHTML = parts.join("") + `<div class="muted" style="font-size:11px">Found automatically from the library's translations.</div>`;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1066 |
}
|
| 1067 |
|
| 1068 |
function phrasesAt(li, ti) {
|
|
@@ -1250,6 +1260,75 @@ all any one no nor my me our your us what when where how why too very more most
|
|
| 1250 |
document.addEventListener("focusin", onOver); // keyboard: a word reached with the arrow keys shows its link too
|
| 1251 |
}
|
| 1252 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1253 |
// ------------------------------------------------------------ search
|
| 1254 |
const TRANS =[["th", ["θ"]], ["ph", ["φ"]], ["ch", ["χ"]], ["kh", ["χ"]], ["ps", ["ψ"]], ["rh", ["ρ"]], ["a", ["α"]], ["b", ["β"]], ["g", ["γ"]], ["d", ["δ"]], ["e", ["ε", "η"]], ["ē", ["η"]], ["z", ["ζ"]], ["h", ["", "η"]], ["i", ["ι"]], ["k", ["κ"]], ["c", ["κ"]], ["l", ["λ"]], ["m", ["μ"]], ["n", ["ν"]], ["x", ["ξ"]], ["o", ["ο", "ω"]], ["ō", ["ω"]], ["p", ["π"]], ["q", ["κ"]], ["r", ["ρ"]], ["s", ["σ"]], ["t", ["τ"]], ["u", ["υ"]], ["y", ["υ"]], ["f", ["φ"]], ["w", ["ω"]], ["v", ["β"]]];
|
| 1255 |
function translit(word) {
|
|
@@ -1310,9 +1389,16 @@ all any one no nor my me our your us what when where how why too very more most
|
|
| 1310 |
<label><input type="checkbox" id="s-exact" ${st.exact ? "checked" : ""}> Exact form only</label>
|
| 1311 |
${FILTERS.map(([k, , label, map]) => `<label>${label} <select data-f="${k}"><option value="">any</option>${Object.entries(map).map(([c, v]) => `<option value="${c}" ${st.filters[k] === c ? "selected" : ""}>${v}</option>`).join("")}</select></label>`).join("")}
|
| 1312 |
</div>
|
| 1313 |
-
<div class="small muted">Greek can be typed with or without accents, or in Latin letters (lógos, logos). Morphology filters apply to the first word.</div>
|
| 1314 |
</form>
|
| 1315 |
-
<div id="cands"></div><div id="sres"></div>`;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1316 |
$("#sform").addEventListener("submit", (e) => {
|
| 1317 |
e.preventDefault();
|
| 1318 |
const v = $("#sq").value.trim();
|
|
@@ -2083,6 +2169,7 @@ grc,φίλον ἦτορ,"dear heart, my heart",Polis</pre>
|
|
| 2083 |
<li>Lemmas and grammar: <a href="https://github.com/PerseusDL/treebank_data" target="_blank" rel="noopener">Ancient Greek and Latin Dependency Treebank</a>, CC BY-SA; <a href="https://huggingface.co/latincy" target="_blank" rel="noopener">LatinCy</a> models.</li>
|
| 2084 |
<li>Dictionaries: Liddell–Scott–Jones and Lewis & Short, <a href="https://github.com/PerseusDL/lexica" target="_blank" rel="noopener">Perseus lexica</a>, CC BY-SA.</li>
|
| 2085 |
<li>Further dictionaries, as tabs beside them: the Intermediate Liddell & Scott (1889) and Smith's Dictionaries of Biography and Mythology (1849) and of Geography (1854), <a href="https://github.com/PerseusDL/canonical-pdlrefwk" target="_blank" rel="noopener">Perseus reference works</a>, CC BY-SA 4.0; Autenrieth's Homeric Dictionary (1891), Perseus, CC BY-SA 3.0; Lewis's Elementary Latin Dictionary (1890), <a href="https://github.com/cltk/cltk_lat_lewis_elementary_lexicon" target="_blank" rel="noopener">CLTK</a>, CC BY-SA; Abbott-Smith's Manual Greek Lexicon of the New Testament (1922), <a href="https://github.com/translatable-exegetical-tools/Abbott-Smith" target="_blank" rel="noopener">public domain edition</a>.</li>
|
|
|
|
| 2086 |
<li>Bailly, <i>Dictionnaire grec-français</i> (1895), digital edition © Gérard Gréco 2018–2020 (authors Gérard Gréco, André Charbonnet, Mark De Wilde & Bernard Maréchal; <a href="http://gerardgreco.free.fr/spip.php?article52" target="_blank" rel="noopener">source</a>), under <a href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank" rel="noopener">CC BY-NC-ND 4.0</a>. Non-commercial use; shown as a tab in the word panel, in French.</li>
|
| 2087 |
<li>Venetus A text, images and scholia: <a href="https://www.homermultitext.org/" target="_blank" rel="noopener">Homer Multitext project</a>, Creative Commons.</li>
|
| 2088 |
<li>AI translations: drafts for demonstration, labelled in the interface and not reviewed.</li>
|
|
|
|
| 125 |
if (path.startsWith("/search")) { closePanel(); setNav("search"); return renderSearch(path.slice(8), params); }
|
| 126 |
if (path.startsWith("/phrases")) { closePanel(); setNav("phrases"); return renderPhrases(); }
|
| 127 |
if (path.startsWith("/ideas")) { closePanel(); setNav("ideas"); return renderIdeas(path.slice(7), params); }
|
| 128 |
+
if (path.startsWith("/english")) { closePanel(); setNav("search"); return renderEnglish(path.slice(9)); }
|
| 129 |
if (path.startsWith("/quotes")) { closePanel(); setNav("quotes"); return renderQuotes(); }
|
| 130 |
if (path.startsWith("/about")) { closePanel(); setNav("about"); return renderAbout(path.slice(7)); }
|
| 131 |
const [wid, b, unit] = path.split("/");
|
|
|
|
| 1064 |
const U = usual[lid];
|
| 1065 |
if (U && U.length) parts.push(`<div>Usually translated as ${U.map(([w, pc]) => `<i>${esc(w)}</i> <span class="muted">${pc}%</span>`).join(", ")}</div>`);
|
| 1066 |
if (parts.length) el.innerHTML = parts.join("") + `<div class="muted" style="font-size:11px">Found automatically from the library's translations.</div>`;
|
| 1067 |
+
// Woodhouse (English–Greek, 1910): the English words he gives this Greek word for, and where it is used
|
| 1068 |
+
if (S.lemmas[lid] && S.lemmas[lid][1] === "grc") {
|
| 1069 |
+
const rows = ((await getJSON(`woodhouse/rev/${lid % 64}.json`).catch(() => ({})))[lid] || []).slice(0, 6);
|
| 1070 |
+
if (rows.length && document.body.contains(el)) {
|
| 1071 |
+
const where = [...new Set(rows.map((r) => r[2]).filter(Boolean))];
|
| 1072 |
+
const one = where.length === 1 ? where[0] : "";
|
| 1073 |
+
el.insertAdjacentHTML("beforeend", `<div class="wh-in" style="margin-top:6px">Woodhouse gives it for ${rows.map(([h, , w]) => `<a href="#/english/${encodeURIComponent(h)}">${esc(h.toLowerCase())}</a>${!one && w ? ` <span class="muted">(${esc(w)})</span>` : ""}`).join(", ")}${one ? ` <span class="muted">— used in ${esc(one)}</span>` : ""}.</div>`);
|
| 1074 |
+
}
|
| 1075 |
+
}
|
| 1076 |
}
|
| 1077 |
|
| 1078 |
function phrasesAt(li, ti) {
|
|
|
|
| 1260 |
document.addEventListener("focusin", onOver); // keyboard: a word reached with the arrow keys shows its link too
|
| 1261 |
}
|
| 1262 |
|
| 1263 |
+
// ------------------------------------------------------------ English → Greek (Woodhouse)
|
| 1264 |
+
// S. C. Woodhouse, English-Greek Dictionary: A Vocabulary of the Attic Language (1910), from the digitised text
|
| 1265 |
+
// used by dcthree.github.io/woodhouse; built by scripts/woodhouse_build.py into woodhouse/.
|
| 1266 |
+
const WH_ABBR = { "absol.": "absolutely", "acc.": "accusative", "act.": "active", "adj.": "adjective", "adv.": "adverb", "Æsch.": "Aeschylus", "Andoc.": "Andocides", "aor.": "aorist", "Ar.": "Aristophanes (comedy)", "Arist.": "Aristotle", "conj.": "conjunction", "cp.": "compare", "dat.": "dative", "Dem.": "Demosthenes", "Eur.": "Euripides", "fem.": "feminine", "frag.": "fragment", "fut.": "future", "gen.": "genitive", "Hdt.": "Herodotus", "imperf.": "imperfect", "indic.": "indicative", "infin.": "infinitive", "interj.": "interjection", "intrans.": "intransitive", "Isae.": "Isaeus", "Isoc.": "Isocrates", "lit.": "literally", "Lys.": "Lysias", "masc.": "masculine", "met.": "metaphorically", "Met.": "metaphorically", "mid.": "middle", "neut.": "neuter", "opt.": "optative", "P.": "prose", "part.": "participle", "perf.": "perfect", "pl.": "plural", "Plat.": "Plato", "prep.": "preposition", "pres.": "present", "pro.": "pronoun", "sing.": "singular", "Soph.": "Sophocles", "subj.": "subjunctive", "subs.": "noun", "Thuc.": "Thucydides", "V.": "verse (tragedy)", "v.": "verb", "voc.": "vocative", "Xen.": "Xenophon" };
|
| 1267 |
+
function whIndex() {
|
| 1268 |
+
if (!S.whIx) S.whIx = getJSON("woodhouse/index.json").then((heads) => ({ heads, byLower: new Map(heads.map((h) => [h.toLowerCase(), h])) })).catch((e) => { S.whIx = null; throw e; });
|
| 1269 |
+
return S.whIx;
|
| 1270 |
+
}
|
| 1271 |
+
const whShard = (h) => { const k = h.toLowerCase().replace(/[^a-z]/g, "").slice(0, 2); return k ? (k + "_").slice(0, 2) : "__"; };
|
| 1272 |
+
function whFind(ix, q) {
|
| 1273 |
+
const t = q.trim().toLowerCase();
|
| 1274 |
+
if (ix.byLower.has(t)) return ix.byLower.get(t);
|
| 1275 |
+
for (const [suf, add] of [["ies", "y"], ["ied", "y"], ["ing", ""], ["ing", "e"], ["ed", ""], ["ed", "e"], ["es", ""], ["s", ""], ["ly", ""]]) {
|
| 1276 |
+
if (t.endsWith(suf) && t.length > suf.length + 2) { const c = t.slice(0, -suf.length) + add; if (ix.byLower.has(c)) return ix.byLower.get(c); }
|
| 1277 |
+
}
|
| 1278 |
+
return null;
|
| 1279 |
+
}
|
| 1280 |
+
async function whEntry(head) { return (await getJSON(`woodhouse/${whShard(head)}.json`).catch(() => ({})))[head] || ""; }
|
| 1281 |
+
// the Greek words of an entry, in order, without repeats
|
| 1282 |
+
async function whGreekFor(head, n) {
|
| 1283 |
+
const d = document.createElement("div");
|
| 1284 |
+
d.innerHTML = await whEntry(head);
|
| 1285 |
+
const seen = new Set(), out = [];
|
| 1286 |
+
d.querySelectorAll("a.wk").forEach((a) => { const w = a.textContent; if (!seen.has(w) && out.length < n && w[0] === w[0].toLowerCase()) { seen.add(w); out.push({ w, href: a.getAttribute("href") }); } });
|
| 1287 |
+
return out;
|
| 1288 |
+
}
|
| 1289 |
+
async function renderEnglish(raw) {
|
| 1290 |
+
const q = decodeURIComponent(raw || "").trim();
|
| 1291 |
+
view.innerHTML = `
|
| 1292 |
+
<h1>English → Greek</h1>
|
| 1293 |
+
<p class="lede">The Greek for an English word, from S. C. Woodhouse's <i>English–Greek Dictionary: A Vocabulary of the Attic Language</i> (1910), with the words this library's own translations use. Every Greek word opens its occurrences in the library.</p>
|
| 1294 |
+
<form id="wh-form" class="srow"><input id="wh-q" type="search" class="big" placeholder="courage, seat, persuade…" value="${esc(q)}" autocomplete="off" list="wh-list"><datalist id="wh-list"></datalist>
|
| 1295 |
+
<button class="btn primary" type="submit">Look up</button></form>
|
| 1296 |
+
<div id="wh-out"></div>
|
| 1297 |
+
<p class="small muted">Woodhouse says where each Greek word is used: <abbr class="wa" title="prose">P.</abbr> prose, <abbr class="wa" title="verse (tragedy)">V.</abbr> verse (tragedy), <abbr class="wa" title="Aristophanes (comedy)">Ar.</abbr> Aristophanes; hover any abbreviation for its meaning.</p>`;
|
| 1298 |
+
$("#wh-form").addEventListener("submit", (e) => { e.preventDefault(); const v = $("#wh-q").value.trim(); if (v) location.hash = "#/english/" + encodeURIComponent(v); });
|
| 1299 |
+
const out = $("#wh-out");
|
| 1300 |
+
let ix;
|
| 1301 |
+
try { ix = await whIndex(); } catch (e) { out.innerHTML = `<p class="muted">The dictionary could not be loaded.</p>`; return; }
|
| 1302 |
+
$("#wh-q").addEventListener("input", (e) => {
|
| 1303 |
+
const t = e.target.value.trim().toLowerCase();
|
| 1304 |
+
$("#wh-list").innerHTML = t.length < 2 ? "" : ix.heads.filter((h) => h.toLowerCase().startsWith(t)).slice(0, 12).map((h) => `<option value="${esc(h)}">`).join("");
|
| 1305 |
+
});
|
| 1306 |
+
if (!q) {
|
| 1307 |
+
out.innerHTML = `<div class="note">Try ${["courage", "seat", "anger", "persuade", "ship", "justice", "friendship", "sea"].map((x) => `<a href="#/english/${x}">${x}</a>`).join(" · ")}</div>`;
|
| 1308 |
+
return;
|
| 1309 |
+
}
|
| 1310 |
+
const head = whFind(ix, q);
|
| 1311 |
+
const usageP = getJSON("woodhouse/usage.json").catch(() => ({}));
|
| 1312 |
+
let html = "";
|
| 1313 |
+
if (head) {
|
| 1314 |
+
html += `<div class="item wh-entry"><h2 class="wh-head">${esc(head)}</h2>${(await whEntry(head)) || "<p class='muted'>Entry missing.</p>"}<div class="small muted" style="margin-top:8px">S. C. Woodhouse, <i>English–Greek Dictionary</i> (London, 1910).</div></div>`;
|
| 1315 |
+
} else {
|
| 1316 |
+
const t = q.toLowerCase(), near = ix.heads.filter((h) => h.toLowerCase().startsWith(t.slice(0, Math.max(3, t.length - 2)))).slice(0, 15);
|
| 1317 |
+
html += `<p class="muted">No Woodhouse entry for “${esc(q)}”.${near.length ? " Nearby: " + near.map((h) => `<a href="#/english/${encodeURIComponent(h)}">${esc(h)}</a>`).join(", ") : ""}</p>`;
|
| 1318 |
+
}
|
| 1319 |
+
// how this library's own translations render the word (from the word links)
|
| 1320 |
+
const usage = await usageP, U = usage[q.toLowerCase()] || (head && usage[head.toLowerCase()]) || [];
|
| 1321 |
+
if (U.length && S.lemmas) {
|
| 1322 |
+
const row = ([lid, pc]) => `<a href="#/search/${encodeURIComponent(S.lemmas[lid][0])}?lemma=${lid}" lang="${S.lemmas[lid][1] === "grc" ? "grc" : "la"}">${esc(S.lemmas[lid][0])}</a> <span class="muted small">${pc}%</span>`;
|
| 1323 |
+
const g = U.filter(([lid]) => S.lemmas[lid] && S.lemmas[lid][1] === "grc"), l = U.filter(([lid]) => S.lemmas[lid] && S.lemmas[lid][1] !== "grc");
|
| 1324 |
+
html += `<div class="item"><b>In this library's translations</b>, “${esc((head || q).toLowerCase())}” most often renders:
|
| 1325 |
+
${g.length ? `<div style="margin-top:6px">Greek: ${g.map(row).join(" · ")}</div>` : ""}${l.length ? `<div style="margin-top:6px">Latin: ${l.map(row).join(" · ")}</div>` : ""}
|
| 1326 |
+
<div class="small muted" style="margin-top:6px">Found automatically from the word links between the originals and their translations; the percentage is how often that Greek or Latin word is translated this way.</div></div>`;
|
| 1327 |
+
}
|
| 1328 |
+
out.innerHTML = html;
|
| 1329 |
+
out.querySelectorAll("abbr.wa").forEach((a) => { const t = WH_ABBR[a.textContent.trim()]; if (t) a.title = t; });
|
| 1330 |
+
}
|
| 1331 |
+
|
| 1332 |
// ------------------------------------------------------------ search
|
| 1333 |
const TRANS =[["th", ["θ"]], ["ph", ["φ"]], ["ch", ["χ"]], ["kh", ["χ"]], ["ps", ["ψ"]], ["rh", ["ρ"]], ["a", ["α"]], ["b", ["β"]], ["g", ["γ"]], ["d", ["δ"]], ["e", ["ε", "η"]], ["ē", ["η"]], ["z", ["ζ"]], ["h", ["", "η"]], ["i", ["ι"]], ["k", ["κ"]], ["c", ["κ"]], ["l", ["λ"]], ["m", ["μ"]], ["n", ["ν"]], ["x", ["ξ"]], ["o", ["ο", "ω"]], ["ō", ["ω"]], ["p", ["π"]], ["q", ["κ"]], ["r", ["ρ"]], ["s", ["σ"]], ["t", ["τ"]], ["u", ["υ"]], ["y", ["υ"]], ["f", ["φ"]], ["w", ["ω"]], ["v", ["β"]]];
|
| 1334 |
function translit(word) {
|
|
|
|
| 1389 |
<label><input type="checkbox" id="s-exact" ${st.exact ? "checked" : ""}> Exact form only</label>
|
| 1390 |
${FILTERS.map(([k, , label, map]) => `<label>${label} <select data-f="${k}"><option value="">any</option>${Object.entries(map).map(([c, v]) => `<option value="${c}" ${st.filters[k] === c ? "selected" : ""}>${v}</option>`).join("")}</select></label>`).join("")}
|
| 1391 |
</div>
|
| 1392 |
+
<div class="small muted">Greek can be typed with or without accents, or in Latin letters (lógos, logos). Morphology filters apply to the first word. For the Greek of an English word, type the English word, or open the <a href="#/english/">English → Greek dictionary</a>.</div>
|
| 1393 |
</form>
|
| 1394 |
+
<div id="wh-hint"></div><div id="cands"></div><div id="sres"></div>`;
|
| 1395 |
+
if (/^[a-z][a-z' -]*$/i.test(q) && !/\s/.test(q)) whIndex().then(async (ix) => {
|
| 1396 |
+
const head = whFind(ix, q), el = $("#wh-hint");
|
| 1397 |
+
if (!head || !el) return;
|
| 1398 |
+
const greek = await whGreekFor(head, 8);
|
| 1399 |
+
if (!greek.length || !document.body.contains(el)) return;
|
| 1400 |
+
el.innerHTML = `<div class="note"><b>Greek for “${esc(head.toLowerCase())}”</b> (Woodhouse, English–Greek): ${greek.map((g) => `<a href="${g.href}" lang="grc">${esc(g.w)}</a>`).join(", ")} · <a href="#/english/${encodeURIComponent(head)}">full entry →</a></div>`;
|
| 1401 |
+
}).catch(() => {});
|
| 1402 |
$("#sform").addEventListener("submit", (e) => {
|
| 1403 |
e.preventDefault();
|
| 1404 |
const v = $("#sq").value.trim();
|
|
|
|
| 2169 |
<li>Lemmas and grammar: <a href="https://github.com/PerseusDL/treebank_data" target="_blank" rel="noopener">Ancient Greek and Latin Dependency Treebank</a>, CC BY-SA; <a href="https://huggingface.co/latincy" target="_blank" rel="noopener">LatinCy</a> models.</li>
|
| 2170 |
<li>Dictionaries: Liddell–Scott–Jones and Lewis & Short, <a href="https://github.com/PerseusDL/lexica" target="_blank" rel="noopener">Perseus lexica</a>, CC BY-SA.</li>
|
| 2171 |
<li>Further dictionaries, as tabs beside them: the Intermediate Liddell & Scott (1889) and Smith's Dictionaries of Biography and Mythology (1849) and of Geography (1854), <a href="https://github.com/PerseusDL/canonical-pdlrefwk" target="_blank" rel="noopener">Perseus reference works</a>, CC BY-SA 4.0; Autenrieth's Homeric Dictionary (1891), Perseus, CC BY-SA 3.0; Lewis's Elementary Latin Dictionary (1890), <a href="https://github.com/cltk/cltk_lat_lewis_elementary_lexicon" target="_blank" rel="noopener">CLTK</a>, CC BY-SA; Abbott-Smith's Manual Greek Lexicon of the New Testament (1922), <a href="https://github.com/translatable-exegetical-tools/Abbott-Smith" target="_blank" rel="noopener">public domain edition</a>.</li>
|
| 2172 |
+
<li>S. C. Woodhouse, <i>English–Greek Dictionary: A Vocabulary of the Attic Language</i> (London, 1910), public domain; digitised text from <a href="https://www.textkit.com/" target="_blank" rel="noopener">Textkit</a>, as used by <a href="https://dcthree.github.io/woodhouse/" target="_blank" rel="noopener">dcthree.github.io/woodhouse</a>. Used for the <a href="#/english/">English → Greek</a> page, the Greek suggestions in Search and the "Woodhouse gives it for" line in the word panel.</li>
|
| 2173 |
<li>Bailly, <i>Dictionnaire grec-français</i> (1895), digital edition © Gérard Gréco 2018–2020 (authors Gérard Gréco, André Charbonnet, Mark De Wilde & Bernard Maréchal; <a href="http://gerardgreco.free.fr/spip.php?article52" target="_blank" rel="noopener">source</a>), under <a href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank" rel="noopener">CC BY-NC-ND 4.0</a>. Non-commercial use; shown as a tab in the word panel, in French.</li>
|
| 2174 |
<li>Venetus A text, images and scholia: <a href="https://www.homermultitext.org/" target="_blank" rel="noopener">Homer Multitext project</a>, Creative Commons.</li>
|
| 2175 |
<li>AI translations: drafts for demonstration, labelled in the interface and not reviewed.</li>
|
index.html
CHANGED
|
@@ -8,7 +8,7 @@
|
|
| 8 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 9 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 10 |
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,600;0,700;1,400&family=Noto+Serif:ital,wght@0,400;0,700;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap">
|
| 11 |
-
<link rel="stylesheet" href="style.css?v=
|
| 12 |
</head>
|
| 13 |
<body>
|
| 14 |
<header class="top">
|
|
@@ -54,6 +54,6 @@
|
|
| 54 |
|| (location.hostname.endsWith(".hf.space") ? "https://huggingface.co/datasets/michaelkimmel/mouseion-library-data/resolve/main/" : "data/");
|
| 55 |
</script>
|
| 56 |
<script src="scan.js?v=6"></script>
|
| 57 |
-
<script src="app.js?v=
|
| 58 |
</body>
|
| 59 |
</html>
|
|
|
|
| 8 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 9 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 10 |
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,600;0,700;1,400&family=Noto+Serif:ital,wght@0,400;0,700;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap">
|
| 11 |
+
<link rel="stylesheet" href="style.css?v=31">
|
| 12 |
</head>
|
| 13 |
<body>
|
| 14 |
<header class="top">
|
|
|
|
| 54 |
|| (location.hostname.endsWith(".hf.space") ? "https://huggingface.co/datasets/michaelkimmel/mouseion-library-data/resolve/main/" : "data/");
|
| 55 |
</script>
|
| 56 |
<script src="scan.js?v=6"></script>
|
| 57 |
+
<script src="app.js?v=61"></script>
|
| 58 |
</body>
|
| 59 |
</html>
|
style.css
CHANGED
|
@@ -430,3 +430,11 @@ a.q-open { cursor: pointer; }
|
|
| 430 |
.explain-text { margin: 8px 0 4px; padding: 10px 12px; background: #fffdf7; border-left: 3px solid var(--gold); border-radius: 4px; font-size: 14.5px; line-height: 1.5; }
|
| 431 |
.explain-text p { margin: 0 0 8px; }
|
| 432 |
.explain-text p:last-child { margin-bottom: 0; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 430 |
.explain-text { margin: 8px 0 4px; padding: 10px 12px; background: #fffdf7; border-left: 3px solid var(--gold); border-radius: 4px; font-size: 14.5px; line-height: 1.5; }
|
| 431 |
.explain-text p { margin: 0 0 8px; }
|
| 432 |
.explain-text p:last-child { margin-bottom: 0; }
|
| 433 |
+
/* Woodhouse English-Greek */
|
| 434 |
+
.wh-entry .wd { margin: 4px 0; line-height: 1.55; }
|
| 435 |
+
.wh-head { margin: 0 0 6px; font: 700 22px var(--serif); }
|
| 436 |
+
abbr.wa { color: #8a4b1f; text-decoration: none; cursor: help; font-size: 0.92em; }
|
| 437 |
+
.wg { color: #6b3fa0; font-style: italic; font-size: 0.92em; }
|
| 438 |
+
a.wk { color: var(--ink); text-decoration: underline dotted #b9a27a; text-underline-offset: 3px; font-family: var(--serif); }
|
| 439 |
+
a.wk:hover { color: var(--maroon); }
|
| 440 |
+
hr.wsep { border: 0; border-top: 1px solid var(--rule); margin: 10px 0; }
|