epub-bilingual-converter-skill
Installation
SKILL.md
epub-bilingual-converter-skill
Overview
Use this skill to convert an EPUB into a bilingual EPUB through four separated stages:
- Extract structure with
scripts/extract.py. - Estimate translation token budget with
scripts/estimate_tokens.py. - Fill only target-language fields in
extraction.json. - Assemble the bilingual EPUB, summary text files, and
report.txtwithscripts/assemble.py.
Keep extraction, translation, and assembly responsibilities separate. Extraction must not translate. Assembly must not invent translations. Translation must not alter source fields or structure.
Inputs
Require an EPUB file and target language. If the user omits the target language, ask for it before processing.
Use an output directory supplied by the user. If none is supplied, create a sibling directory named output beside the EPUB.