ebook-GPT-translator
Free1.6k
FreeFree tier
Inputs: fileOutputs: file
About ebook-GPT-translator
ebook-GPT-translator is an open-source toolkit designed for translating ebooks in various formats, including TXT, EPUB, DOCX, PDF, and optionally MOBI. It leverages large language models (LLMs) such as OpenAI's GPT, Azure OpenAI, Anthropic's Claude, Google's Gemini, and local Codex CLI as translation providers. The tool is built as a modernized Python package with a command-line interface (CLI), supporting resume-safe translation caching via SQLite, configurable chunk and token limits for long books, and glossary handling for consistent terminology. It is intended for readers who want to enjoy ebooks in their preferred language or style, and it is maintained on GitHub under the MIT license.
Key Features
Supports multiple ebook input formats: TXT, EPUB, DOCX, PDF, and optional MOBI
Integrates with multiple translation providers: OpenAI, Azure, Anthropic Claude, Google Gemini, and local Codex CLI
Provides a modern CLI and package layout under src/
Includes resume-safe SQLite translation cache and manifest files
Offers configurable chunk and token limits for handling long books
Supports glossary files for consistent translation of specific terms
Compatible with settings.toml, .env, and legacy settings.cfg configuration files
Includes unit tests and GitHub Actions CI for quality assurance
Pros & Cons
Pros
- Open-source and free to use, with no subscription required beyond any LLM API costs
- Supports a wide range of ebook formats, making it versatile for different source materials
- Multi-provider architecture allows users to choose or switch between LLM backends
- Resume cache prevents losing progress on long translations if interrupted
- Glossary support enables consistent translation of domain-specific terms
Cons
- Requires users to have access to an LLM API (e.g., OpenAI, Anthropic) or a local CLI setup, which may incur costs or setup effort
- Translation quality depends on the underlying LLM provider and model chosen
- Setup involves Python environment configuration and dependency installation, which may be non-trivial for non-technical users
- Free tier of some LLM APIs may have rate limits or usage caps that affect large ebook translations
- MOBI output support is listed as optional and may require additional steps or tools
Best For
Translating entire ebooks from one language to another while preserving formattingLocalizing technical documentation or academic texts with consistent terminologyReading foreign-language literature in a preferred language using LLM-based translationBatch translating multiple ebook files with resume capability for long translationsExperimenting with different LLM providers to compare translation quality
FAQ
What ebook formats does ebook-GPT-translator support?
Based on the repository, it supports TXT, EPUB, DOCX, PDF, and optional MOBI input formats.
Which translation providers can I use with this tool?
The tool supports OpenAI, Azure OpenAI, Anthropic Claude, Google Gemini, and local Codex CLI as translation providers. The exact list of supported providers should be verified in the latest documentation.
Is ebook-GPT-translator free to use?
The tool itself is open-source and free. However, using it with cloud-based LLM providers may require API keys and incur usage costs based on the provider's pricing.
Does the tool support resuming interrupted translations?
Yes, it includes a resume-safe SQLite translation cache and manifest files, which allow translations to be resumed if interrupted.
Can I customize the translation of specific terms?
Yes, the tool supports glossary files (e.g., CSV or Excel) to enforce consistent translation of specific terms across the ebook.
Do I need programming experience to use ebook-GPT-translator?
The tool is command-line based and requires Python installation and dependency management. Some technical familiarity is helpful, but the repository provides documentation and examples to assist users.