diff --git a/README.md b/README.md index 9eaf726..2684a4f 100644 --- a/README.md +++ b/README.md @@ -255,7 +255,7 @@ that is: Since `L` and `R` can be any left or right parenthesis, and every matrices must have the same number of columns, to render a system of equation one can write something like `{[(root n x)/(x) <= 4], [x^2=e^x]:}`. On the other hand a matrix can be somenthing like `[[(root n x)/(x) <= 4, int x dx], [x^2=e^x, lim_(x to infty) 1 / (x^2)]]`. -## Rendering (LaTeX semantics) +## Rendering (LaTeX) A parsed ASCIIMath string is rendered as follows: @@ -277,7 +277,7 @@ Useless delimiters are automatically removed in expressions like: If you want them to be rendered, you have to double them, for example: `((x+y))/2` or `{: (x+y) :}/2`. -## Rendering (MathML semantics) +## Rendering (MathML) The translation follows the MathML specification at https://www.w3.org/TR/MathML3/. diff --git a/py_asciimath/__init__.py b/py_asciimath/__init__.py index 2be5cbc..2004cc7 100644 --- a/py_asciimath/__init__.py +++ b/py_asciimath/__init__.py @@ -1,4 +1,4 @@ import os PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__)) -__version__ = "0.2.2" +__version__ = "0.2.3" diff --git a/py_asciimath/translator/translator.py b/py_asciimath/translator/translator.py index 92bb247..236702c 100644 --- a/py_asciimath/translator/translator.py +++ b/py_asciimath/translator/translator.py @@ -14,6 +14,13 @@ class Translator(metaclass=ABCMeta): + """Abstract Translator class + + Abstract class of type Translator. Every subclass must implement + the `_translate(self, exp, **kwargs)` method in order to + correctly expose the `translate(exp, **kwargs)` method + """ + def _from_file(self, from_file): if os.path.exists(from_file): logging.info("Loading file '" + from_file + "'...") diff --git a/setup.py b/setup.py index d9a5c90..1dbbf49 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,6 @@ classifiers=[ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7",