I have an incomplete result.  You may have already explored this.

First, saving an AOO Formula (.odf) as a StarMath 5.0 Formula (.smf) does not 
seem to be exported.  There is no import for it either.

  You can still save as an OpenDocument.org .sxm formula or an ODF Formula 
(.odf).  They are nearly identical.

Both .sxm and .odf are Zip Packages and nearly identical.  In particular, the 
content.xml is a MathML formula that has a StarMath 5.0 formula as an 
annotation.  It is exactly the same formula that you end up editing in the 
lower window of the Apache OpenOffice Math (or LibreOffice Math) application.  
So the upper window shows the MathML rendering, and the lower window shows the 
StarMath 5.0!  And the content.xml carries both.

In effect, the Elements Tool and the hand editing that you do is creating 
StarMath that is then displayed via MathML in the upper, graphical-formula 
window.

That doesn't provide the StarMath grammar except by example, but it is a way to 
build them experimentally and see. 

Finally, this led me to the Help Topic "Math formula editor" and click the 
Formulas link to get to "Welcome to the OpenOffice Math Help" page.  The 
subtopic "Formula Reference Tables" seems to be the key.  The color function is 
under "Attributes".

StarMath uses {...} for precedence/grouping control in the same manner as TeX 
and LaTeX formulas.

We can probably figure out the grammar by making examples of all the operators 
and other oddities. 

 - Dennis
  
-----Original Message-----
From: Regina Henschel [mailto:rb.hensc...@t-online.de] 
Sent: Tuesday, November 11, 2014 15:56
To: AOO dev
Subject: grammar for StarMath

Hi all,

does there exist any developer documentation about StarMath, e.g. the 
grammar?

Kind regards
Regina

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to