Test files for "Translated EPUB Table of Contents Wrong?" https://www.booktranslator.app/blog/fix-epub-toc-after-translation Scripts (Python 3, nothing to install): check_epub_toc.py Checks one EPUB, or compares an original with its translation. Changes nothing. sync_epub_toc.py Copies labels between nav and NCX into a new file. Keep it next to check_epub_toc.py. It does not keep inline markup in rewritten labels, or the comments and DOCTYPE of the rewritten file. Use both scripts on single-language files, not two-language ones. make_samples.py Rebuilds the sample-*.epub source files. Samples (a three-chapter book we wrote for this test): sample-standard.epub nav.xhtml outside the reading order, plus toc.ncx sample-renamed-ncx.epub the NCX file is called book.ncx sample-nav-two-properties.epub the nav file is contents.xhtml, with properties="nav scripted" sample-nav-in-spine.epub nav.xhtml is part of the reading order sample-epub2-contents-page.epub EPUB 2 with a contents page listed in the guide sample-broken-links.epub deliberately broken links, to show what the checker reports Translated samples: sample-renamed-ncx-translated.epub sample-nav-two-properties-translated.epub These came from BookTranslator's EPUB code at commit 422081a2d on 2026-11-05. We replaced the translation step with a marker: each translated string starts with "ES~". They show which text is translated and written back. They say nothing about translation quality. We did not validate the samples with EPUBCheck or open them on e-reader devices.