Install
openclaw skills install epub-converterConvert EPUB ebooks between Traditional and Simplified Chinese with metadata and TOC fixed; supports both directions and outputs a new EPUB file.
openclaw skills install epub-converterConvert EPUB ebooks between Traditional Chinese (繁體中文) and Simplified Chinese (简体中文).
Convert Traditional to Simplified (most common):
python3 scripts/convert_epub.py <input.epub>
Convert Simplified to Traditional:
python3 scripts/convert_epub.py <input.epub> --direction s2t
Specify output filename:
python3 scripts/convert_epub.py <input.epub> -o <output.epub>
The script:
~/.openclaw/epub_venv and installs ebooklib and opencc-python-reimplemented on first runt2s (default): Traditional → Simplified (繁體 → 简体)s2t: Simplified → Traditional (简体 → 繁體)If no output filename is specified:
_简体 suffix_繁體 suffixExample: book.epub → book_简体.epub
Dependencies:
ebooklib - EPUB file parsing and writingopencc-python-reimplemented - Chinese text conversionConversion coverage:
Not converted:
If dependencies fail to install:
# Manual installation
python3 -m venv ~/.openclaw/epub_venv
source ~/.openclaw/epub_venv/bin/activate
pip install ebooklib opencc-python-reimplemented
If EPUB structure is corrupted:
The script automatically fixes common issues:
If conversion fails:
Check that:
Basic conversion:
python3 scripts/convert_epub.py "自我升级第一原理.epub"
# Output: 自我升级第一原理_简体.epub
Custom output:
python3 scripts/convert_epub.py input.epub -o simplified_version.epub
Reverse conversion:
python3 scripts/convert_epub.py simplified.epub --direction s2t
# Output: simplified_繁體.epub
When conversion succeeds, you'll see:
The output EPUB can be opened in any standard ebook reader (Apple Books, Calibre, etc.).