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. 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, switches and the Traducir texto box (Ctrl+Enter translates).

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.
  • 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.1.1

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.1.1
File Size Uploaded Provenance Actions
trujaman-0.1.1.tar.gz 303.0 kB With provenance Details for trujaman-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 607.0 kB

Release files / trujaman-0.1.1.tar.gz

Download URL trujaman-0.1.1.tar.gz
Size 303.0 kB
Tags Source
SHA-256 checksum
How to use checksums
80707b4fdea47a55eb4a1e2007b9abfb8d52b1321dec53538bbe48d28bb48f8c
BLAKE2b-256 checksum
How to use checksums
c7f99c538270851b9ba2275ae80a2d9c2e5ade9cbeebc48421ebe3afc3f6cedc
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.1.1-py3-none-any.whl

Download URL trujaman-0.1.1-py3-none-any.whl
Size 303.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0c8b6d85a3f1bc58caab8dee5921abd28d209978d68b3cd0e2416228c17363d
BLAKE2b-256 checksum
How to use checksums
9901c0f3c8ab2d9deb62c558b4fb0b0d757a0370fdbfefc20059c704266f7221
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.1.1

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