favalex / python-asciimathml

python ASCIIMathML to Presentation MathML translator
GNU General Public License v3.0
17 stars 10 forks source link

Support quoted strings #4

Open vlopezj opened 8 years ago

vlopezj commented 8 years ago

The last ASCIIMath version supports using quotes to delimit text elements, like so:

Input:

"time" = "money"

Result:

<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mstyle displaystyle="true">
    <mrow>
      <mtext>time</mtext>
    </mrow>
    <mo>=</mo>
    <mrow>
      <mtext>money</mtext>
    </mrow>
  </mstyle>
</math>

This commit brings the behaviour to the python implementation.

ShadowKyogre commented 8 years ago

Heya @vlopezj . I just applied this over here - https://github.com/ShadowKyogre/python-asciimathml/tree/lang-2.2-port .

I'm also working on the other parts of the asciimathml 2.2 syntax atm.