Tbook

Tbook

Open source ebook format that lets readers tap any word for instant translation

Open Source

Gallery

About Tbook

Tbook is an open source ebook format designed specifically for language learners. The core interaction is simple. You tap any word in the book, and the app instantly shows the full sentence translation with the matching target word highlighted. Every translation and word alignment is baked into the file at creation time, which means the entire experience works offline with no network connection, no API calls, and no user account required. The format pairs the original text with sentence-by-sentence translations and word-level alignment, making it possible to understand meaning in context without leaving the page.

The problem it solves is one that anyone who has tried reading in a foreign language will recognize. You hit an unfamiliar word, tab over to a dictionary app, lose your place in the text, and interrupt the reading flow that makes the experience enjoyable and effective. That friction compounds over hundreds of lookups until many learners simply give up or fall back to graded readers that feel too simple. Tbook removes that friction entirely by embedding translations directly into the ebook itself. The translations align at the word level, not just the sentence level, so you can see exactly which word in the target language corresponds to which word in the source. Even when word order differs between languages, the alignment holds.

Under the hood, the format is technically simple. A Tbook file is a ZIP archive containing a manifest and one JSON file per chapter. The JSON is human-readable UTF-8 with no proprietary encoding, no DRM, and no binary blobs. Each sentence entry contains the original text, character ranges for tappable tokens, translation data for each supported target language, and optional inline formatting for bold or italic spans. The specification is public, versioned, and designed for extensibility. Older readers can safely open newer files by ignoring unknown fields and clamping invalid offsets. Any developer can build a Tbook reader without licensing concerns or reverse-engineering.

A single Tbook file can contain translations for multiple target languages aligned to a single source language pivot. A Spanish novel, for example, can ship with English, French, German, and Chinese translations all embedded in one file, without exponential size growth. This multi-language architecture avoids the need to distribute separate editions for each language pair and makes the format practical for publishers who want to serve diverse audiences from a single asset.

The conversion process starts with a standard EPUB and runs through five stages. The parser extracts content in reading order and organizes it into chapters. The segmenter splits paragraphs into sentences with precise character offsets. The translator runs each sentence through a language model, tagging source words so the output can be aligned back. The resolver matches translated fragments to source indices, handling reordering and one-to-many word mappings. The assembler packages everything into a ZIP and validates offsets. Translations are cached on disk, so an interrupted conversion resumes where it left off. The result is a Tbook file that any compatible reader can open immediately.

Two reference readers ship with the project. TReader for Android supports IPA pronunciation hints, offline dictionaries, and text-to-speech. TReader for Desktop supports both paged and scrolled reading modes, in-book search, and keyboard navigation. Both readers are open source and serve as implementation references for anyone building third-party apps. Currently supported languages include English, Russian, German, Spanish, and Chinese, with the architecture designed to add more without changing the file format.

The target audience starts with language learners, particularly those reading slightly above their current level who want to absorb vocabulary in context rather than through isolated flashcards. Authors and publishers can convert existing EPUB catalogs into multilingual learning editions without rebuilding content from scratch. Developers building language learning apps benefit from a small, documented specification that handles the hard problem of word alignment so they can focus on the reading experience instead of the infrastructure.

Tbook takes a clear stance on where computation happens. Instead of relying on a cloud connection or an on-device translation model, all the work happens once at conversion time. The result is a static file that works anywhere, loads instantly, and doesn't depend on a service staying online or a company staying in business. It's a deliberate trade of flexibility for reliability. The format is free and open source under a permissive license. The GitHub repository includes the converter, both reader codebases, and the full specification. There is no paid tier, no subscription, and no lock-in. If you want to read in another language without interrupting yourself every few lines to look something up, this is the infrastructure to make that possible.

Key Features

  • Word level translation alignment
  • Full offline functionality
  • Multi language support per file
  • Open ZIP and JSON format
  • EPUB to Tbook converter
  • Reference readers for Android and desktop

Pros & Cons

What we like

  • Entirely offline with no network dependency
  • Open format with public specification
  • Translations baked in at conversion time
  • Free with no paid tier or lock in

Room for improvement

  • Requires EPUB conversion before use
  • Reader ecosystem still growing
  • Conversion depends on LLM quality
  • No iOS reader in the reference set

Frequently Asked Questions

What is Tbook?
Tbook is an open source ebook format for language learners. You can tap any word in a book to see its translation and the full sentence alignment. Everything works offline because translations are embedded in the file.
Is Tbook free?
Yes. The format, converter, and reference readers are all open source and available on GitHub. There's no paid tier, subscription, or usage limit.
Who is Tbook for?
Language learners who want to read books slightly above their level without constantly interrupting themselves to look up words. Also useful for publishers and developers building multilingual reading experiences.
How do I create a Tbook file?
The project provides an EPUB to Tbook converter that parses the book, translates it via LLM, aligns words between languages, and outputs a Tbook file you can open in any compatible reader.

Best For

Reading novels in a language you're learningConverting an EPUB catalog for multilingual readersBuilding a language learning app with tap translationsStudying vocabulary in context rather than flashcards

Featured in

Alternatives to Tbook

View all

Reviews (0)

No reviews yet

Be the first to share your experience with Tbook

Sign in to write a review

Badge builder

Add Tbook to your website

Choose a badge style and size, preview it here, then copy the generated HTML. Badge images are self-contained SVGs and do not require an external script.

Tbook badge preview
<a href="https://toolindex.net/tools/tbook?ref=badge" target="_blank" rel="noopener">
  <img src="https://toolindex.net/badge/tbook/medium.svg" alt="Tbook - Listed on Tool Index" width="180" height="50" />
</a>

How to use the badge

  1. 1. Pick the style, size, and theme that fit your layout.
  2. 2. Copy the generated HTML from the code block.
  3. 3. Paste it into your footer, homepage, or press page.

Standard badge available

The standard listing badge is available now. Score and circle badges are limited to tools currently ranked in the top 10 of a category.

Badge clicks return visitors to this profile with a referral tag so the source remains identifiable.