Skip to content

Commit

Permalink
Add new pypi version
Browse files Browse the repository at this point in the history
  • Loading branch information
belerico committed Apr 16, 2020
1 parent 19de993 commit fe175a3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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/.

Expand Down
2 changes: 1 addition & 1 deletion py_asciimath/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os

PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
__version__ = "0.2.2"
__version__ = "0.2.3"
7 changes: 7 additions & 0 deletions py_asciimath/translator/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 + "'...")
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fe175a3

Please sign in to comment.