Usage¶
Web UI¶
Start the app with Docker (http://localhost:3838) or from R (http://localhost:8080), as in Getting started. Then:
- Upload the first language ePub (this language will appear first in each paragraph pair).
- Upload the second language ePub.
- Click Go!.
- Download the merged bilingual ePub.
Command line (batch)¶
Example:
Use it in scripts or to merge many books in a row.
script.R is not in the Docker image. Run it from a checkout with the R packages installed, as in Getting started.
Filename convention¶
The tool expects input filenames in the format Title_LangCode.epub, for example MyBook_EN.epub and MyBook_ES.epub. The tool reads the last underscore-separated part of each name as the language code, and the merged file combines both codes: MyBook_EN_ES.epub. A name with no underscore gives <name>_merged.epub.