trans-epub-0.0.23 is not a library.
trans-epub
This is a CLI tool to translate EPUB using OpenAI / Gemini API.
CAUTION
- If a translated book is available, we strongly recommend that you purchase it.
- This is only a tool to assist in reading books that have not been translated.
- Although the API is called in parallel, the translation takes a long time because of the ratelimit.
- Also, although the translation is done in units of 20 lines, if the number of lines does not match the original text and the translated text, the API is called again for each line, which is more expensive than simply translating the text.

Installation
Cargo
- Install the rust toolchain in order to have cargo installed by following this guide.
- run
cargo install trans-epub
Execution
Install
Use Open AI help
)
Use Open AI translate
Wait a few minutes.
Use Gemini help
)
Use Gemini translate
Wait a few minutes.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
See CONTRIBUTING.md.
Thanks
Inspired by epub-translator