From epub-translation
Convert monolingual EPUB files from a source language to a target language. Use when asked to translate an EPUB, ebook, or book file while preserving its technical integrity, structural layout, and metadata.
How this skill is triggered — by the user, by Claude, or both
Slash command
/epub-translation:epub-monolingual-translationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill enables agents to translate EPUB files. It handles deconstruction, surgical text replacement (preserving HTML attributes), metadata updates, and spec-compliant reconstruction.
This skill enables agents to translate EPUB files. It handles deconstruction, surgical text replacement (preserving HTML attributes), metadata updates, and spec-compliant reconstruction.
Supporting scripts are located in the scripts/ directory adjacent to this SKILL.md.
beautifulsoup4, lxml.venv if available, or create one: python3 -m venv .venvEnsure the virtual environment is ready and dependencies are installed.
source .venv/bin/activate && pip install beautifulsoup4 lxml.venv\Scripts\activate && pip install beautifulsoup4 lxmlExtract the EPUB to a temporary directory.
python3 ./scripts/epub_manager.py extract <INPUT_FILE> <TEMP_DIR>
Iterate through .xhtml or .html files in <TEMP_DIR>.
ID:N|text strings using ./scripts/translate_processor.py extract../scripts/translate_processor.py apply.Update <dc:language> in content.opf.
python3 ./scripts/translate_processor.py metadata <OPF_FILE> <LANG_CODE>
Re-pack the EPUB. The script handles the mimetype rule.
python3 ./scripts/epub_manager.py pack <TEMP_DIR> <OUTPUT_FILE>
To ensure the scripts are functioning correctly, you can run the included unit tests:
python3 -m unittest discover ./tests
.venv python interpreter.mimetype file must be first and uncompressed (enforced by epub_manager.py).Searches MemPalace before answering questions about past work, people, projects, or prior decisions. Returns verbatim stored content instead of guessing from model memory.
Guides Payload CMS config (payload.config.ts), collections, fields, hooks, access control, APIs. Debugs validation errors, security, relationships, queries, transactions, hook behavior.
Implements vector databases with Pinecone, Weaviate, Qdrant, Milvus, pgvector for semantic search, RAG, recommendations, and similarity systems. Optimizes embeddings, indexing, and hybrid search.
npx claudepluginhub mauriciopoppe/epub-translation --plugin epub-translation