2015-10-06 06:15:48 +00:00
|
|
|
<!--
|
2020-03-09 06:18:30 +00:00
|
|
|
Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
|
2015-10-06 06:15:48 +00:00
|
|
|
|
2020-03-09 06:18:30 +00:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause
|
2015-10-06 06:15:48 +00:00
|
|
|
-->
|
|
|
|
|
|
|
|
# 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:
|
|
|
|
|
|
|
|
```python
|
|
|
|
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.
|