Skip to content

TrueGlyph 0.1.0

Choose a tag to compare

@jishnucz jishnucz released this 02 Dec 07:29
· 8 commits to main since this release

First release of TrueGlyph: know when the text you extracted from a PDF is wrong, in any script, and get the right text instead.

PDF extractors (pypdf, PyMuPDF, pdfminer, docling) silently return damaged text for Hindi, Bengali, Tamil, Thai, Khmer, Burmese, Arabic, Urdu, Hebrew, vertical Japanese and more; even English PDFs lose symbols and split words. TrueGlyph checks every page, repairs what it safely can, switches extractor or falls back to OCR, and gives each page a trust level (high / medium / low / none) so agents and RAG pipelines know what they may quote.

Install

pip install "trueglyph[all]"     # or install the wheel attached below
trueglyph demo

Claude Code / any MCP client: claude mcp add trueglyph -- uvx --from "trueglyph[all]" trueglyph-mcp
VS Code: install trueglyph-0.1.0.vsix below (Extensions view -> ... -> Install from VSIX).

Measured (reproducible with bench/)

  • 29 real UN PDFs in 29 languages: mean quality 0.782 vs 0.35 for every plain extractor; 80 of 84 damaged readings flagged without a reference.
  • 30 PDFs with known text, 24 scripts: 0.978 vs 0.875 for the best single extractor.
  • 628 pages of English arXiv papers: no false alarms; a clean 26-page paper is checked in under a second.

Word checks for ~57 languages (wordfreq + dictionaries from Tesseract's models, including Thai, Lao, Khmer and Burmese via segmentation). Limitations are listed honestly in the README.

Assets: Python wheel and source package (the same files will go to PyPI), VS Code extension.