by bryanrasmussen · 9mo ago · 0 comments
Anyway as I know from my reading history at 1400 it gets difficult, but I can make it through 1400 and 1300 with difficulty, but would need to break out the middle English dictionaries for 1200 and 1100. 1000 forget it, too busy to make that effort.
(function() {
const SKIP_PARENTS = new Set(["SCRIPT", "STYLE", "NOSCRIPT", "TEXTAREA"]);
const walker = document.createTreeWalker(
document.body,
NodeFilter.SHOW_TEXT,
{
acceptNode(node) {
const p = node.parentNode;
if (!p || SKIP_PARENTS.has(p.nodeName)) return NodeFilter.FILTER_REJECT;
if (p.nodeName === "INPUT") return NodeFilter.FILTER_REJECT;
return NodeFilter.FILTER_ACCEPT;
}
}
);
let node;
while ((node = walker.nextNode())) {
node.nodeValue = node.nodeValue.replace(/ſ/g, "s");
}
})()document.body.style.fontFamily = "Baskerville";
Baskerville has a nice long-s. TNR is also not bad. Garamond is passable.