Libraries for developers

Open source libraries to build your own Tibetan tools: turning Tibetan into phonetics, transliterating mantras, splitting text into words, converting old fonts, repairing PDFs and running OCR.

Most of the first group are small JavaScript packages made by the site's maintainer, which power the web apps listed in the toolbox. The second group comes from other authors, such as OpenPecha and the Buddhist Digital Resource Center.

By Frère Jérémy

TibetanOCR

developer library · Python, shell · by Frère Jérémy

Scripts that run Tibetan OCR on images and PDFs through Google Drive and write the result as text and Word files. Includes a quick-snip shortcut for macOS. Needs your own Google API credentials.

  • Mac
  • Windows
  • Free
View on GitHub TibetanOCR (opens another site)

By other authors

pdf-cmap-fix

developer library · Python · by OpenPecha

Fixes incorrect or incomplete PDF ToUnicode maps so that text extraction, search and copy-paste return correct Unicode. Primarily for Tibetan stacked syllables in Monlam, Himalaya and Jomolhari fonts, and for some legacy fonts.

  • Free
  • Open source
View on GitHub pdf-cmap-fix (opens another site)

pecha (LaTeX package)

developer library · LaTeX · by Dieter Jäger

Typesets Tibetan text in the traditional pecha layout with LaTeX. Builds on the cTib4TeX package by Oliver Corff and adds multilingual headers and Tibetan page numbering.

  • Free
  • Open source
Open pecha (LaTeX package) (opens another site)

Know a library that belongs here? Suggest it.