Text alignment
text + text → mapping
Align two UTF-8 texts into a monotonic JSON mapping with explicit gaps and reproducible model metadata.
bilingual-align first.txt second.txt \
--footnote-source second \
--output alignment.jsonAlign parallel editions and add translation footnotes to the book you want to read. Your books stay on your computer.
Local by designYour text stays on your machine.
Built for booksTwo editions become one reading copy.
Open and inspectableReview every artifact in the pipeline.
Read the original text, open a translation note, and judge the experience before installing anything.
Choose DRM-free editions of the same work in two languages.
Multilingual embeddings match corresponding passages on your computer.
Your reading edition stays primary and the other language becomes linked notes.
Alignment is independent from EPUB rendering. Each command does one job and leaves an inspectable artifact.
text + text → mapping
Align two UTF-8 texts into a monotonic JSON mapping with explicit gaps and reproducible model metadata.
bilingual-align first.txt second.txt \
--footnote-source second \
--output alignment.jsonEPUB + EPUB → EPUB
Keep the first edition as the reading copy and add aligned text from the second as linked translation notes.
bilingual-footnotes french.epub english.epub \
--footnote-source second \
--output french-with-notes.epubAfter the one-time model download, extraction, alignment, and EPUB rendering happen locally. There is no account or hosted conversion service.
Source hashes, model revision, parameters, and artifact hashes are retained with the build notes.
The packages are being prepared for their first public release. These commands document the intended interface.
uv tool install bilingual-text-alignuv tool install epub-bilingual-footnotesbilingual-align-setupNo. Alignment and EPUB rendering run locally on your computer.
It creates a new copy of the first EPUB and adds linked notes from the second. Source files are not overwritten.
Compatible readers may show popups; others navigate to notes appended to the chapter.
No. Parallel editions can differ. Inspect a representative passage before relying on a new pair.