A small util to convert epub
files from Simplified Chinese to Traditional Chinese
npm install epub-chinese-converter --save
(See the test files under src/
for details)
- Read epub file:
import {readEpub} from "epub-chinese-converter";
const book = await readEpub(BOOK_URL);
const { metadata, chapters } = book;
- Conversion
import {createSimplifiedToTraditionalConverter} from "epub-chinese-converter";
const converter = createSimplifiedToTraditionalConverter();
const convertedBook = converter.convertBook(book);
const { metadata, chapters } = convertedBook;
- As of now, only translation from Simplified Chinese to Traditional Chinese is supported
julien-c/epub
cthackers/adm-zip
- patched with this commit (
027f6d1
) to fix issue when readingepub
file
- patched with this commit (