Skip to content

Projects 2026 in progress

Mütercim

Translates a PDF into another language and keeps its layout. A seven-stage command-line pipeline goes from page images through layout detection, OCR and AI models to Markdown, LaTeX, PDF or DOCX.

Go

Mütercim takes a PDF in one language and produces the same document in another language, with the same layout. It is a command-line pipeline of seven stages. Each stage writes to its own folder, and the intermediate results are JSON files you can open and inspect.

First, cut turns the PDF into page images. layout finds the regions on each page with their bounding boxes, and then ocr and read extract structured text with a vision model. solve resolves abbreviations and injects a glossary without any API call. Finally, translate produces the target languages and write renders Markdown, LaTeX, PDF or DOCX in the original layout.

The example above is a real page. It shows the scan, then the 43 regions the layout stage found on it, drawn from the tool's own output. Entries are in blue, footnotes in orange, and the column separator is dashed.

Mütercim is written in Go and works with any language pair the configured models support. The glossary system is general-purpose, so each domain brings its own terminology files.

The seven stages in order, cut, layout, ocr, read, solve, translate and write, with the tool each uses and the folder each writes