qmetrics.net

translate-book

Agent skill for parallel book translation

Installable Agent Skill that splits PDF, DOCX, or EPUB books into chunks, translates them via parallel sub-agents, and rebuilds HTML, DOCX, EPUB, and PDF outputs with glossary and manifest checks.

Overview

translate-book is an Agent Skill aimed at coding agents such as Claude Code, Codex, Cursor, and OpenClaw. It turns whole books in common ebook formats into another language by converting to Markdown chunks, running many translators in parallel—each with a fresh context window—and merging validated results into multiple export formats.

The pipeline uses Calibre for format conversion when needed, SHA-256 manifests to detect stale chunks, a glossary built from sampled text, and neighbor excerpts so pronouns and entities stay consistent across chunks. Runs can resume at chunk granularity, and only affected sections re-translate when the glossary or source changes.

Heavy academic PDFs can be pre-parsed to Markdown with layout-aware tools such as MinerU, Marker, or docling before the skill runs, avoiding broken formulas and tables from naive PDF reflow. Python scripts under the skill handle deterministic bookkeeping; the hosting agent orchestrates translation and merge decisions.

Outputs land in a per-book temporary workspace as merged Markdown, HTML with floating table of contents, Word, EPUB, and print-oriented PDF. The skill is platform-neutral: one SKILL.md drives any agent that can spawn sub-agents per chunk, with verified flows documented for Cursor and Codex among others.

Key features

  • Parallel chunk translation sub-agents
  • PDF, DOCX, EPUB, Markdown input
  • SHA-256 manifest integrity checks
  • Glossary and neighbor context
  • Resumable chunk-level runs
  • HTML, DOCX, EPUB, PDF output
  • Layout-aware PDF preprocess path
  • Multi-agent skill installation paths

Use cases

  • Translating full ebooks for personal reading
  • Localizing long technical PDFs via Markdown
  • Batch book translation with resume
  • Agent-driven localization workflows
  • Rebuilding EPUB after glossary edits

Tags

Similar software

github-chinese

Userscript localization of the GitHub web interface

GitHub 中文化插件 translates GitHub’s English UI into Chinese using a maintained dictionary and regex rules. It runs as a browser userscript with optional machine translation for repository descriptions.

  • Chinese UI translation for GitHub pages
  • Regex and per-page dictionary matching
  • Repository description machine translation
JavaScriptAndroid, Browser extensionDetails →
★ 39.9k⟳ 4 days agoGPL-3.0

i18next

JavaScript internationalization and translation framework

i18next loads and applies translation files in browser, Node.js, and Deno apps. It handles plurals, context, nesting, variables, backends, caching, and language detection.

  • Runtime and build-time translation
  • Plural and context rules
  • Backend translation loading
JavaScriptWeb, CLIDetails →
★ 8.7k⟳ todayMIT

Argos Translate

Open-source offline neural machine translation for Python

Argos Translate is a Python library for offline translation using installable language model packages.

  • Offline Python translation API
  • Installable .argosmodel language packages
  • Command-line translation interface
PythonLinux, Windows, CLIDetails →
★ 6.7k⟳ 6 days agoMIT · open core

JS Lingui

Compile-time i18n macros for JavaScript and TypeScript

Lingui is a lightweight internationalization library with compile-time macros and a CLI. It targets React, React Native, Vue, SolidJS, Astro, Svelte, and plain Node with PO catalog extraction.

  • Compile-time Trans macros for UI text
  • CLI extract and compile PO catalogs
  • React, Vue, Solid, and React Native packages
TypeScriptCLIDetails →
★ 5.9k⟳ 15 days agoMIT

Python Pinyin

Chinese hanzi to pinyin conversion library

python-pinyin (pypinyin) converts Chinese characters to phonetic pinyin for notation, sorting, and search. It handles heteronyms and multiple romanization styles.

  • Phrase-aware pinyin mapping
  • Heteronym support
  • Multiple romanization styles
PythonDetails →
★ 5.4k⟳ 1 month agoMIT

Globalize

CLDR-based JavaScript internationalization library

Globalize formats and parses numbers, dates, and messages using official Unicode CLDR JSON data. It runs in browsers and as a Node.js module with modular feature packages.

  • Unicode CLDR JSON locale data
  • Number, currency, and percent formatting
  • Date and time parsing and display
JavaScriptWebDetails →
★ 4.8k⟳ 17 days agoMIT