Improve EPUB restoration, book terminology and Calibre QA workflow

This commit is contained in:
Kai Tan
2026-10-08 07:25:27 +08:00
parent 40491e6386
commit caf9d8f4bb
35 changed files with 1439 additions and 959 deletions
+2
View File
@@ -44,6 +44,8 @@ async def run_build(args):
manager = ManifestManager(manifest_path)
manager.load()
if any(e.translated_text and not e.translated_html for e in manager.entries):
raise ValueError("Run format restoration before building; missing validated HTML")
# Backfill (Pure Injection)
logger.info(f"Injecting content (Mode: {args.mode})...")
backfiller = BackfillEngine() # No dependencies needed