Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.0.3 instead.

rosettex 📜✨

Translate scientific papers into 19+ languages — and keep the paper's own layout.

Python Input Typesetting Agents License: MIT

Quick Install • Features • How It Works • Usage • Languages • Manual Install

Page 1 of a paper in English (left) and the same page translated into Vietnamese by rosettex (right)

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 is a tool for AI coding agents (Claude Code, Gemini CLI, Antigravity, or any MCP client) that translates whole scientific papers.

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.

🌟 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 Inline and display math, citations and links become placeholders (⟦m1⟧, ⟦l2⟧) the translation must keep; on PDFs they are copied as vector snippets of the original.
🛡️ 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.

🔀 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 the tool "rosettex" on this computer and connect it to yourself, so that later I can ask you to translate
scientific papers. Source: https://github.com/20235106-huynk/rosettex

Rules: never use sudo; install only into my home folder (~/.rosettex, the folder where uv puts tools, and the skill
folders written by "rosettex install-skill"); ask me before running a remote installer or editing my shell profile;
run one command at a time and show me any error.

1. uv: run "uv --version". If missing, ask me, then install it with the official installer
   (the commands are on https://docs.astral.sh/uv/getting-started/installation/).
2. rosettex: run "uv tool install git+https://github.com/20235106-huynk/rosettex", then "rosettex --help".
   If the command is not found, use the path from "uv tool dir --bin".
3. TeX: run "rosettex setup --json". If it asks (ask_user), ask me exactly that question; on yes run its next_argv and
   keep running next_argv while state is "partial". If I prefer my own TeX Live, run "rosettex setup --tex system --json".
4. Run "rosettex doctor --json" and tell me the result.
5. Run "rosettex install-skill --json" so you know when and how to use rosettex.
6. Report what you installed and give me an example request, such as:
   "Translate the paper ~/papers/attention.pdf into Vietnamese and save it in ~/translated/".

📖 Usage

Ask your agent in plain language:

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 and what to look at.

🔌 Connect Your Agent

This repository is a plugin at its root: one skill (skills/rosettex) and one MCP server (uvx runs rosettex-mcp from the tagged release), so you need uv on PATH. Install it into your harness with its own command:

Harness Command
Claude Code /plugin marketplace add 20235106-huynk/rosettex, then /plugin install rosettex@rosettex
Codex CLI codex plugin marketplace add 20235106-huynk/rosettex --ref v1.0.0, then install rosettex from the Plugins tab
GitHub Copilot CLI copilot plugin install 20235106-huynk/rosettex
VS Code (Copilot) "Chat: Install Plugin from Source", then the repository URL
Antigravity agy plugin install https://github.com/20235106-huynk/rosettex
Gemini CLI gemini extensions install https://github.com/20235106-huynk/rosettex --ref v1.0.0
Hermes hermes plugins install 20235106-huynk/rosettex/plugins/hermes, then hermes plugins enable rosettex (the slim package: Hermes rejects the full repository)
Factory Droid, Auggie, Junie, Qwen Code, Devin, Kiro, goose their plugin or extension command on the repository URL (they read the Claude Code or Agent Plugins files)
Any harness with Agent Skills rosettex install-skill (writes ~/.agents/skills, ~/.claude/skills, ~/.gemini/config/skills, and ~/.cline, ~/.kiro, ~/.qoder, ~/.trae, ~/.codebuddy skills when those folders exist)
Any MCP client a stdio server: uvx --from git+https://github.com/20235106-huynk/rosettex@v1.0.0 rosettex-mcp (or rosettex-mcp after uv tool install)
Anything else tell the agent: "Run rosettex guide and follow it."

Claude Code, in one step: /plugin install rosettex --marketplace 20235106-huynk/rosettex. Harnesses that accept only remote MCP servers (Android Studio, Replit, ChatGPT custom MCP) cannot run the stdio server; use the skill and the CLI. The manifests are generated from the package version: uv run python -m rosettex.skill (--check in CI).

To try the server from a checkout, plugins/mcp.dev.json runs it with uv run --project ..

🛠️ Manual Install

Commands, requirements and environment variables

Requirements

  • Python ≥ 3.11 and uv.
  • LuaLaTeX: rosettex setup installs a private TinyTeX into ~/.rosettex (asks first), or rosettex setup --tex system uses an existing TeX Live.
uv tool install git+https://github.com/20235106-huynk/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/).

Metadata

Release files for rosettex 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rosettex 1.0.0
File Size Uploaded Provenance Actions
rosettex-1.0.0.tar.gz 12.9 MB With provenance Details for rosettex-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rosettex 1.0.0
File Interpreter ABI Platform Actions
rosettex-1.0.0-py3-none-any.whl Python 3 none any Details for rosettex-1.0.0-py3-none-any.whl

Total release size: 25.7 MB

Release files / rosettex-1.0.0.tar.gz

Download URL rosettex-1.0.0.tar.gz
Size 12.9 MB
Tags Source
SHA-256 checksum
How to use checksums
69936033c8566f4549e1875cd10f3270b01e7c5e680de25254539a6b88a3f241
BLAKE2b-256 checksum
How to use checksums
0e43531fac24072484cdae4726c80999fa05dfbe9e58519724570359f7e6c8ba
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 log

Release files / rosettex-1.0.0-py3-none-any.whl

Download URL rosettex-1.0.0-py3-none-any.whl
Size 12.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d1d26e3a27ce4fe26db8de7a1f14e8a0dd43ee6dde4efab8ccda6f50e410ed0a
BLAKE2b-256 checksum
How to use checksums
91370ee8db8da106a857fc9a465d91731a31eb77e4352b62a59d0037406adb88
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 log

Security for rosettex 1.0.0

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.

Select from 2 files

Attestation for rosettex-1.0.0.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 log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page