Skip to main content

trujaman

PyPI Python license

Select text anywhere on GNOME and get an offline translation and Spanish spell check.

Highlight a word or a sentence in any app and a small window shows its translation next to the cursor. English becomes Spanish and Spanish becomes English, detected for you. Spanish selections also get spelling corrections, and the menu has a big area to proofread a whole paragraph. Everything runs on your machine: the models are downloaded once and no text ever leaves it. A top-bar icon keeps the last query, a quick-settings menu and a small translator with its own text area.

Install

pipx install trujaman
trujaman install

trujaman install copies the GNOME Shell extension, installs the fonts and downloads the two translation models (about 400 MB). Then log out and back in, because GNOME on Wayland only scans extensions at startup.

You need Why
GNOME Shell 50 (Ubuntu 26.04) Shell extensions are version-bound; only 50 is tested
Python 3.12 or newer The translation daemon
glib-compile-schemas (libglib2.0-bin) Compiles the extension settings

Quick start

trujaman doctor      # checks Python, GNOME, the extension and the models

Select any text with the mouse. After half a second the translation appears. Click the top-bar icon for the last query, the switches, the Traducir texto box and the Corregir ortografía area (Ctrl+Enter runs either).

How it works

select text → extension reads the PRIMARY selection → `python -m trujaman daemon`
            ← JSON lines ← CTranslate2 + Argos models, Hunspell for spelling
Piece What it does
Extension Watches the selection, draws the window and the top-bar menu
Daemon One long-lived process: detects the language, translates, checks spelling
Models Argos Translate models, run with CTranslate2. No PyTorch
Spelling Hunspell Spanish dictionary, with suggestions ranked by word frequency

Settings

Open them from the menu (Ajustes…) or with gnome-extensions prefs trujaman@egar.

Setting Default What it does
Source language auto auto detects, or force es or en
Delay 500 ms Wait after selecting before translating
Max characters 600 Longer selections are ignored
Auto-close 8000 ms 0 keeps the window until you close it
Close button on The × in the window
Font and size Rotulo Sans, 12 pt Any installed family

Commands

Command What it does
trujaman install [--skip-models] Installs the extension, fonts and models
trujaman uninstall Removes the extension and fonts; models stay
trujaman models [--install] Lists or downloads the en/es models
trujaman doctor Checks the installation
trujaman daemon The daemon the extension starts; not for direct use

Known limitations

  • Only English and Spanish, and GNOME Shell 50.
  • A sentence full of typos is translated as typed, so the translation can be nonsense. The corrections show above it.
  • Language detection is a heuristic. Force the language in settings when it guesses wrong.
  • Quality is that of the small Argos models: good for words and short sentences, weaker on long text.
  • The proofreading area takes up to 5000 characters and spends at most 10 seconds on them; longer texts are checked only in part, and the result says so.
  • Some apps do not update the PRIMARY selection when you select text.

Development

python3 -m venv .venv && .venv/bin/pip install -e '.[dev]'
.venv/bin/trujaman models --install
.venv/bin/pytest
.venv/bin/ruff check . && .venv/bin/ruff format --check . && .venv/bin/mypy

The extension lives in src/trujaman/data/extension/; run trujaman install after editing it.

Contributing

Issues are welcome; please open one before a pull request.

License

AGPL-3.0-only © GHEgar. The bundled Spanish dictionary keeps its own licenses (src/trujaman/data/dict/LICENSE-es.txt) and the bundled Rotulo fonts are OFL-1.1.

Metadata

Release files for trujaman 0.2.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 trujaman 0.2.0
File Size Uploaded Provenance Actions
trujaman-0.2.0.tar.gz 304.9 kB With provenance Details for trujaman-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 610.3 kB

Release files / trujaman-0.2.0.tar.gz

Download URL trujaman-0.2.0.tar.gz
Size 304.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fa4e094d5e2710bb4adfd56c06999caed5d0ad70fbd4ae6f09b1649edb401603
BLAKE2b-256 checksum
How to use checksums
213080313e7de728733be48a6a7051a5a30a56904f01fb508ec250ddacbbc59f
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 30, 2026.

Transparency log

Release files / trujaman-0.2.0-py3-none-any.whl

Download URL trujaman-0.2.0-py3-none-any.whl
Size 305.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd1932c4809a9fd217e3dd28e41552d7edb5762e355ba1dca285ac5f317543e0
BLAKE2b-256 checksum
How to use checksums
3f7d010135395cc45eda8acf13b76a955e4ce3dad8e033594bdf50d9f31cb7c2
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 30, 2026.

Transparency log

Security for trujaman 0.2.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 trujaman-0.2.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 30, 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