Skip to content

TrueGlyph 0.2.0: every language

Latest

Choose a tag to compare

@jishnucz jishnucz released this 02 Dec 14:02

Every language. 0.1.0 judged text only against the word lists of a few languages per script, so a clean page in Czech, Albanian, Belarusian or any of hundreds of other languages could be rated low (damaged). Measured on clean text in all 388 UDHR languages: 258 rated low in 0.1.0, 0 now.

  • 103 languages with word lists (63 bundled from Tesseract's dictionaries, 40 from wordfreq), found automatically by character-trigram language identification.
  • Languages without a word list are rated medium with unknown_language (checked by script rules), not called damaged. Legacy-font garble is still caught: real-PDF and synthetic benchmarks are unchanged, and the 628-page arXiv set has the same 4 flags as before.
  • --lang accepts all 110 languages TrueGlyph knows, plus forms such as pt-BR, no, tl.
  • New scripts: Syriac, Thaana (Dhivehi), Cherokee, Canadian syllabics (Inuktitut); Tibetan OCR.
  • OCR models download themselves: a model Tesseract lacks is fetched once from tessdata_best (TRUEGLYPH_NO_DOWNLOAD=1 to opt out).
  • Words keep their vowel marks (vowelled Arabic, pointed Hebrew, Thaana); Urdu hamza spellings unified; pages of names are not word-checked.
pip install -U "trueglyph[all]"