Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

TMT — Translation Management Tool

TMT is a high-performance command-line utility for translating structured documents while preserving their original formatting and metadata. It supports CSV, TSV, DOCX, and PDF formats with first-class handling of complex scripts such as Devanagari.

Translation is powered by the TMT API provided by Kathmandu University’s ILPRL lab, which supports English, Nepali, and Tamang language pairs.

Supported Formats

FormatExtensionNotes
Comma-separated values.csvAll cells translated
Tab-separated values.tsvAll cells translated
Word document.docxParagraph-level translation
PDF.pdfRequires pdf feature flag; needs a font for Devanagari rendering

Supported Languages

CodeLanguage
enEnglish
neNepali
tmgTamang

Design Philosophy

The tool follows a strict Parse → Validate → Execute lifecycle:

  1. CLI arguments are parsed and validated into a RuntimeConfig.
  2. The validated config is used to dispatch to a format-specific handler.
  3. Each handler extracts text, delegates translation to the TranslationService, and reconstructs the output document.

This separation keeps format concerns isolated from network and rate-limiting logic, making each layer independently testable and extensible.

Source Repository

The source code is available at github.com/razzat008/tmt-hackathon.
Created by github/razzat008.