Translating an EPUB with an LLM without wrecking it: text nodes, batching and a bilingual mode
"Just send the book to an LLM and ask for a translation" works for about one paragraph. Then you meet a real EPUB: 60 XHTML files, inline <em> and <a> tags mid-sentence, footnote back-links, a CSS fil
iloveepub.hashnode.dev6 min read