lh-l4v/misc/pysymbols
Gerwin Klein 75acf19dcd style: pep8 style for python files 2020-03-25 22:42:27 +11:00
..
isasymbols style: pep8 style for python files 2020-03-25 22:42:27 +11:00
README.md license: provide documentation under CC-BY-SA-4.0 2020-03-16 14:19:15 +08:00

README.md

Python Isabelle Symbols Module

This directory contains Python functionality for translation between Isabelle's ascii representations (e.g. \<forall>) and its unicode representations (e.g. ). You need to provide it with a copy of Isabelle's internal "symbols" file that it uses to form translation mappings.

Example usage:

import isasymbols

t = isasymbols.make_translator('/path/to/symbols')
print t.encode('\\<lbrakk>A; B\\<rbrakk> \\<Longrightarrow> A')

For anything more complicated, please consult the source.