Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sharplab/epub-translator
An utility to translate epub books with DeepL
https://github.com/sharplab/epub-translator
Last synced: 7 days ago
JSON representation
An utility to translate epub books with DeepL
- Host: GitHub
- URL: https://github.com/sharplab/epub-translator
- Owner: sharplab
- License: apache-2.0
- Created: 2020-06-20T00:02:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-31T07:58:47.000Z (12 days ago)
- Last Synced: 2024-10-31T08:29:35.926Z (12 days ago)
- Language: Kotlin
- Homepage:
- Size: 9.9 MB
- Stars: 156
- Watchers: 4
- Forks: 18
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# epub-translator
[![Actions Status](https://github.com/sharplab/epub-translator/workflows/CI/badge.svg)](https://github.com/sharplab/epub-translator/actions)
epub-translator is an utility to translate EPub books.
- Utilize [DeepL API](https://www.deepl.com/ja/docs-api/) (You need to register DeepL API plan)
- Leave the original text for reference, and insert the translated text below per paragraph![Translation sample](./docs/image/translation-sample.png)
This project uses Quarkus, the Supersonic Subatomic Java Framework.
If you want to learn more about Quarkus, please visit its website: https://quarkus.io/ .## Build
### Prerequisites
- JDK 11
### Creating an uber-jar
The application can be packaged using following command:
```
./gradlew quarkusBuild -D quarkus.package.type=uber-jar
```It produces the `epub-translator-runner.jar` file in the `build` directory.
## Configuration
place application.yml to `/config/application.yml`
#### application.yml
```
ePubTranslator:
deepL:
apiEndpoint: https://api.deepl.com # If you subscribe free API plan, use "https://api-free.deepl.com" instead.
apiKey:
language:
source: en # default source language
destination: ja # default destination language```
## Execution
uber-jar
```
java -jar epub-translator-runner.jar --src [--dst ] \
[--srcLang ] [--dstLang ]
```