rosettex 📜✨
Translate scientific papers into 19+ languages — and keep the paper's own layout.
Quick Install • Features • How It Works • Connect Your Agent • Languages • Manual Install
A born-digital PDF (left) and rosettex's Vietnamese output (right): same page, same figure, same fonts for names and formulas. Paper: Berestov et al., CEUR-WS Vol-3550 (CC BY 4.0).
rosettex lets an AI coding agent translate a whole scientific paper — from its TeX source or from a
born-digital PDF — and returns a PDF with the paper's own layout.
rosettex does not translate by itself — your agent is the translator. rosettex does the engineering around it: it splits the paper into question sheets with protected placeholders, checks every answer against strict rules, and typesets the result so formulas, figures, citations and links stay real, selectable and clickable. It ships as a CLI, an MCP server and an Agent Skill, packaged as a plugin for the major agent harnesses.
🌟 Key Features
| Feature | Description |
|---|---|
| 🤖 Built for agents | Every command speaks --json and returns the next command to run (next_argv); an agent can drive the whole loop and resume after any interruption. |
| 📐 Original layout | From TeX source the paper is rebuilt with its own class and packages; from a PDF the original pages are kept and only the text in the translated boxes is replaced. |
| 🧮 Formulas stay formulas | Math, citations and links become placeholders (⟦m1⟧, ⟦l2⟧) the translation must keep; on PDFs they are copied as vector snippets of the original, and a formula the agent copies verbatim is protected automatically. |
| 🛡️ Strict checks | rosettex check catches lost placeholders, changed numbers, glossary violations, untranslated text and over-long answers before anything is built. |
| 🔁 Repair loop | When text does not fit, build answers needs_repair with the segments to shorten and by how much; nothing is silently cut. |
| 🌐 Many scripts | Latin, Cyrillic, CJK, Arabic/Persian/Urdu, Devanagari, Bengali, Tamil, Thai, Myanmar, Ethiopic … with bundled fonts (Noto, Vazirmatn) and copy/search-friendly output. |
| 🔌 One plugin, many harnesses | Claude Code, Codex, GitHub Copilot, VS Code, Cursor, Antigravity, Gemini CLI, Hermes, Devin and more install it from this repository; any MCP client or Agent Skills host can use it too. |
| 💻 Linux, macOS, Windows | CI builds translated PDFs (Vietnamese, Arabic, Japanese) on all three. |
🔀 Two Routes
| From TeX source | From a born-digital PDF | |
|---|---|---|
| Input | folder, archive, arXiv ID or link | a PDF with a text layer (journals, arXiv PDF-only, Word exports) |
| Output | the paper recompiled with LuaLaTeX in the target language | the original pages with translated text in the same boxes |
| Best for | any paper with source; changes of writing direction (e.g. English → Arabic) | papers without source |
🔄 How It Works
flowchart LR
A[📄 TeX source<br/>or PDF] --> B[🧩 rosettex prepare<br/>sheets + placeholders]
B --> C[🤖 Your agent<br/>translates]
C --> D[🛡️ rosettex check<br/>placeholders · numbers · terms]
D --> E[🏗️ rosettex build<br/>LuaLaTeX]
E -->|needs_repair| C
E --> F[📑 Translated PDF]
rosettex fetch 2108.07760 -o work # folder, archive, arXiv ID/link, or a local .pdf
rosettex prepare work --lang vi # question sheets in work/read/, glossary in work/terms.md
# … the agent appends "sNNNN <translation>" lines to work/out/NN.txt …
rosettex check work # repeat until ok
rosettex build work --out paper.vi.pdf # may ask for shorter text (needs_repair), then build again
🚀 Quick Install: Let Your Agent Do It
Install rosettex (https://github.com/20235106-huynk/rosettex) and connect it to yourself: install uv if it is
missing, then `uv tool install rosettex`, `rosettex setup` (follow its next_argv), `rosettex doctor`, and the rosettex
plugin for your harness from the README (or `rosettex install-skill`). No sudo; ask me before any download or installer.
Then just ask, for example: "Translate arXiv 1512.03385 into Simplified Chinese and save it as ~/papers/resnet.zh.pdf."
The agent fetches the paper, picks the field and key terms, translates sheet by sheet, runs check until it passes,
builds the PDF, shortens any text build reports as too long, and tells you where the PDF is.
🔌 Connect Your Agent
This repository is a plugin at its root: one skill (skills/rosettex) and one MCP server that uvx starts from the
release on PyPI (uvx rosettex==<version> mcp), so uv must be on PATH. The first run of setup installs TeX (the agent
asks you first).
Install as a plugin
| Harness | Command |
|---|---|
| Claude Code | /plugin marketplace add 20235106-huynk/rosettex, then /plugin install rosettex@rosettex |
| Claude Desktop / claude.ai | Customize › Plugins › Add marketplace 20235106-huynk/rosettex |
| Codex CLI / ChatGPT desktop | codex plugin marketplace add 20235106-huynk/rosettex, then install rosettex from /plugins (or the app's Plugins directory) |
| GitHub Copilot CLI | copilot plugin install 20235106-huynk/rosettex |
| VS Code (Copilot) | Chat: Install Plugin from Source with the repository URL, or add 20235106-huynk/rosettex to chat.plugins.marketplaces |
| Antigravity | agy plugin install https://github.com/20235106-huynk/rosettex (or the strict-clean slim package in plugins/antigravity) |
| Gemini CLI | gemini extensions install https://github.com/20235106-huynk/rosettex |
| Hermes | hermes plugins install 20235106-huynk/rosettex/plugins/hermes, then hermes plugins enable rosettex |
| Devin (Desktop, CLI, cloud) | devin plugins install 20235106-huynk/rosettex; cloud: Customize › Add plugin › From repository |
| Factory Droid | droid plugin marketplace add 20235106-huynk/rosettex, then droid plugin install rosettex@rosettex |
| Auggie | auggie plugin marketplace add 20235106-huynk/rosettex |
| Junie CLI | /extensions marketplace add 20235106-huynk/rosettex, then /extensions install rosettex |
| Qwen Code | qwen extensions install 20235106-huynk/rosettex |
| goose | goose plugin install https://github.com/20235106-huynk/rosettex.git |
| Kiro IDE | Powers › Add Custom Power › Import power from a repository URL |
Skill + MCP server (every other harness)
- Install the skill:
rosettex install-skill(writes~/.agents/skills,~/.claude/skills,~/.gemini/config/skills, and the Cline, Kiro, Qoder, Trae and CodeBuddy skill folders when they exist), ornpx skills add 20235106-huynk/rosettex. - Add the MCP server. Most harnesses (Cursor, Cline, Kiro, Qoder, Kimi Code, Pi, CodeBuddy, Warp, Junie, Auggie, Tabnine, Trae, JetBrains AI Assistant) take the standard block in their MCP settings:
{ "mcpServers": { "rosettex": { "command": "uvx", "args": ["rosettex", "mcp"] } } }
Harnesses with their own MCP syntax
| Harness | Where | Entry |
|---|---|---|
| OpenCode | opencode.json |
"mcp": { "servers": { "rosettex": { "type": "local", "command": ["uvx", "rosettex", "mcp"] } } } |
| Kilo | kilo.jsonc |
"mcp": { "rosettex": { "type": "local", "command": ["uvx", "rosettex", "mcp"] } } |
| Crush | crush.json |
"mcp": { "rosettex": { "type": "stdio", "command": "uvx", "args": ["rosettex", "mcp"] } } |
| goose | config.yaml |
extensions: { rosettex: { name: rosettex, type: stdio, enabled: true, cmd: uvx, args: [rosettex, mcp], envs: {}, timeout: 300 } } |
| Mistral Vibe | config.toml |
[[mcp_servers]] with name = "rosettex", transport = "stdio", command = "uvx", args = [...] |
| Amp | CLI | amp mcp add rosettex -- uvx rosettex mcp |
| Zed | settings.json |
"context_servers": { "rosettex": { "command": "uvx", "args": [...] } } |
| Zencoder | VS Code settings.json |
"zencoder.mcpServers" with the standard block |
| Visual Studio | %USERPROFILE%\.mcp.json |
"servers": { "rosettex": { "command": "uvx", "args": [...] } } |
| GitHub Copilot cloud agent | repository Settings › Copilot › MCP servers | "type": "local", "tools": ["*"], and install uv in copilot-setup-steps.yml |
Harnesses that accept only remote MCP servers (Android Studio, Replit, ChatGPT custom MCP) cannot run this stdio server;
use the skill and the CLI there. Without any integration, tell the agent: "Run rosettex guide and follow it."
🛠️ Manual Install
Commands, requirements and environment variables
Requirements
- Python ≥ 3.11 and uv.
- LuaLaTeX:
rosettex setupinstalls a private TinyTeX into~/.rosettex(asks first; retries flaky CTAN mirrors), orrosettex setup --tex systemuses an existing TeX Live.
uv tool install rosettex
rosettex setup # or: rosettex setup --tex system
rosettex doctor
rosettex install-skill
Environment variables
ROSETTEX_HOME: where rosettex keeps its TeX toolchain and state (default~/.rosettex).
Update and uninstall
uv tool upgrade rosettex && rosettex install-skill --force
rosettex install-skill --remove && uv tool uninstall rosettex # then delete the folder ~/.rosettex
🌍 Languages
Language data covers about 50 target languages (src/rosettex/data/langs/). Tested end to end:
| Script | Languages |
|---|---|
| Latin | Vietnamese, French |
| Cyrillic | Russian |
| Han / Kana / Hangul | Chinese (Simplified, Traditional), Japanese, Korean |
| Arabic (RTL) | Arabic, Persian, Urdu |
| Indic | Hindi, Bengali, Gujarati, Kannada, Tamil, Telugu |
| Southeast Asian | Thai, Myanmar |
| Ethiopic | Amharic |
⚠️ Limits
- The PDF route needs a born-digital PDF with a text layer (no OCR) and keeps the writing direction: a left-to-right paper cannot become right-to-left there — use the TeX source for that.
- Table contents are not translated; scanned PDFs, vertical writing and PDF forms are not supported.
- Very tight layouts may need shorter translations (
needs_repair) or a slightly smaller font.
📄 License
MIT — see LICENSE. Bundled fonts are under the SIL Open
Font License 1.1 (src/rosettex/data/fonts/LICENSES/). Release notes: CHANGELOG.md.
Metadata
Release files for rosettex 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rosettex-1.0.3.tar.gz | 12.9 MB | With provenance | Details for rosettex-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rosettex-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for rosettex-1.0.3-py3-none-any.whl |
Total release size: 25.7 MB
Release files / rosettex-1.0.3.tar.gz
| Download URL | rosettex-1.0.3.tar.gz |
|---|---|
| Size | 12.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b25686cbe0c7a1758ab4d44817546f6fe5d1de39229d121865ffe4ba3b2226e1
|
|
BLAKE2b-256 checksum How to use checksums |
0614916a433ba366588736cc66d734bdc90322ae9e23045337975bd154d21cb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logRelease files / rosettex-1.0.3-py3-none-any.whl
| Download URL | rosettex-1.0.3-py3-none-any.whl |
|---|---|
| Size | 12.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
971ea96e967ab3cffbc265514f77f0e34c3892fd1668ff85c8b31b669d79e241
|
|
BLAKE2b-256 checksum How to use checksums |
acb4fdb43db5dd02ba4c28ad131af3621278e477c6a56f2471fb326969780f7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logSecurity for rosettex 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for rosettex-1.0.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.