# Whole-Book Translator, Any Language (PDF, EPUB, DOCX)

> Translates entire books from any language to any language, chunk by chunk, with every sentence, code block, table and figure verified and rebuilt as PDF, EPUB or DOCX.

Whole-Book Translator, Any Language (PDF, EPUB, DOCX) is a free AI agent skill on Agensi by asad eisa, in Translation & Localization. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [asad eisa](https://www.agensi.io/creators/asad-eisa)
- Category: [Translation & Localization](https://www.agensi.io/skills/translation-localization)
- Uses: 2
- Version: 1.1
- Last updated: 2026-10-08
- Security: scan passed (2026-10-08); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/whole-book-translator-any-language-pdf-epub-docx
- Tags: translation, documentation, pdf, localization, glossary, subagents, long-documents

## About this skill

Ask an AI agent to translate a 200-page book and it fails without telling you. The book doesn't fit in its context, so it translates from memory in big pieces. Sentences drop out of long paragraphs, `$OFS = " "` and URLs disappear, a term like "bucket" is rendered three different ways, tables are flattened into prose, and captions get invented for images nobody looked at. The result reads fluently, so nobody notices.

This skill gives your agent a tested pipeline that turns the book into numbered segments, translates it in small self-contained tasks, and checks every task against the source before the book is rebuilt.

**What it handles**

- **Any input:** text-based PDF, EPUB, DOCX, HTML, Markdown and TXT. Chapters come from the outline or headings. Running headers, page numbers and the printed table of contents are left out.
- **Nothing lost:** code blocks are copied byte for byte and never pass through the translator. Inline code, URLs, e-mails, link targets and numbers are checked in every segment. Figures are copied as images and never get invented captions.
- **Context-safe chunks:** about 2,500 tokens per task, with the rules, style, glossary entries and the previous chunk's last lines included. State lives on disk, so a context reset or a new session continues where it stopped (`status`).
- **Parallel translation:** `task next --count 4` hands out four chunks to subagents. One shared glossary and style keep them consistent.
- **Automatic checks:** `check` fails a chunk for missing or misplaced segments, lost code/URLs/terms or untranslated text. It warns on dropped sentences, missing numbers, length outliers and glossary misses.
- **Glossary first:** `terms` finds the recurring vocabulary before translation starts, so a domain word keeps its domain meaning.
- **Real typesetting:** PDF is printed through Edge or Chrome, so every script renders correctly, including Chinese, Japanese, Hindi, Thai, Hebrew and Arabic. It includes a TOC with page numbers and bookmarks. EPUB 3, editable DOCX, HTML and Markdown are also available.
- **Review pass:** side-by-side review sheets and a fidelity rubric for an independent reviewer agent.

The page layout is re-typeset, not copied page by page. Text inside images stays as it is. Free and open source (MIT).

## Requires

- Python

## Known limitations

- Scanned PDFs need OCR first; only PDFs with a text layer can be extracted.
- The book is re-typeset, not reproduced page by page: structure, code, tables, images and links are kept, the original page design is not.
- Text inside images (screenshots, diagrams) is not translated; images are copied as they are.
- PDF extraction is heuristic. Very complex layouts (magazines, multi-column pages with sidebars, forms) need options such as --columns 2, or manual exclusions. Check the extraction with `show` before translating.
- DRM-protected EPUBs are refused. MOBI/AZW3/DOC must be converted first (Calibre, LibreOffice).
- Code comments are kept in the source language: code blocks are copied byte for byte.
- Translation quality is your model's. The skill prevents omissions and drift and makes review systematic, but it does not replace a human editor for publication.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Whole-Book Translator, Any Language (PDF, EPUB, DOCX) skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill prevent the 'missing text' problem common in standard AI book translations?

Unlike standard LLM translations that hallucinate or skip text when context limits are reached, this skill uses a verified pipeline that breaks books into small chunks, cross-references every segment against the source, and preserves technical elements like code blocks and URLs byte-for-byte.

### Which file formats can I upload and what formats are available for the final translated output?

The skill supports text-based PDF, EPUB, DOCX, HTML, Markdown, and TXT files, and it can export your finished translation into high-quality EPUB 3, editable DOCX, or professionally typeset PDFs with functional tables of contents.

### Can this skill handle very long books quickly using multiple subagents?

Yes, the skill includes a 'Parallel Translation' feature that allows you to deploy multiple subagents simultaneously to process different chapters, significantly reducing the time required for long-form books while maintaining consistency through a shared glossary.

### How does the skill ensure that technical terminology stays consistent across the entire book?

The skill automatically generates a glossary of recurring domain-specific vocabulary before translation begins, ensuring that technical terms remain consistent throughout the entire book even when different chapters are processed separately.

### What exactly is included in the purchase of this skill?

The package includes the full translation pipeline, the automated fidelity checking system, a side-by-side review sheet generator, and the specialized typesetting engine for professional PDF and EPUB exports.

### Does the skill translate text found inside images or diagrams?

While text within the main flow of the book is translated and re-typeset, text contained inside flat images or diagrams remains in its original language to maintain visual integrity and prevent the AI from 'inventing' captions.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
