History log of /seL4-l4v-master/l4v/misc/pysymbols/isasymbols/isasymbols.py
Revision Date Author Comments
# 75acf19d 18-Mar-2020 Gerwin Klein <gerwin.klein@data61.csiro.au>

style: pep8 style for python files


# a424d55e 09-Mar-2020 Gerwin Klein <gerwin.klein@data61.csiro.au>

licenses: convert license tags to SPDX


# de77df45 07-Jan-2016 Matthew Fernandez <matthew.fernandez@nicta.com.au>

misc/pysymbols: Move IsaSymbolsException to a separate file.


# 5294d364 14-Oct-2015 Matthew Fernandez <matthew.fernandez@nicta.com.au>

misc/pysymbols: Support for sub/superscripts in code blocks.

Inline code from a Markdown source (`like this`) is typically translated
without the assistance of Pygments. As a result we don't get automatic
subscript and superscript support, and need to roll our own. This translation
is pretty blunt and fragile. Expect it to fall over in a TeX error if you pass,
e.g., a "\<^bsub>" without a closing "\<^esub>".


# 1570e45c 12-Oct-2015 Matthew Fernandez <matthew.fernandez@nicta.com.au>

misc/pysymbols: Add support for encoding to TeX.

You probably do *not* want to use this functionality to go straight from THY
files to TeX. The motivation for this is translating inline code in Markdown
(`like this`) into something TeX-able. In particular, we assume all relevant
Isabelle styles and preamble are already in scope.


# 69dfc12c 12-Oct-2015 Matthew Fernandez <matthew.fernandez@nicta.com.au>

misc/pysymbols: Don't translate entities like "\<^bsub>" into unicode.

The code points of the xsymbols whose ASCII text begins with "\<^" appear to be
a ruse. Their unicode characters do not correspond to their intent because
they are actually format markers. For example, "\<^bsub>" maps to something
described as "south east double arrow," but is intended to mean "start
subscript."

It turns out we do not need to encode these at all because a sufficiently
clever Pygments can interpret their ASCII representations. One such clever
instance is [0]. This commit removes encoding of all symbols whose ASCII
representation begins with "\<^" under the assumption they will be handled by a
later tool in your pipeline.

[0]: https://bitbucket.org/lsf37/pygments-main/branch/sub-super


# bcf211a3 12-Oct-2015 Matthew Fernandez <matthew.fernandez@nicta.com.au>

misc/pysymbols: Optimise unicode to ASCII translation.

With larger THY snippets, this translation can become a noticeable bottleneck.


# 47d5b746 06-Oct-2015 Matthew Fernandez <matthew.fernandez@nicta.com.au>

misc: Support for space translation in etc/symbols decoding.

See 74eddfef841e of Isabelle itself for the changeset that implements it.


# ffc7b107 06-Oct-2015 Matthew Fernandez <matthew.fernandez@nicta.com.au>

misc: Add a Python module for dealing with Isabelle symbols.