mathtype-extension
Calabash extension step to convert MathType OLE objects to MathML
Repository
Git URL | https://github.com/transpect/mathtype-extension.git |
SVN URL | https://github.com/transpect/mathtype-extension |
Base URI | http://transpect.io/calabash-extensions/mathtype-extension/ |
tr:mathtype2mml-internal
Convert an OLE-Object containing a Mathtype equation to MathML. Uses Jruby to create an XML-representation of the MTEF formula.
Import
<p:import href="http://transpect.io/calabash-extensions/mathtype-extension/xpl/mathtype2mml-declaration-internal.xpl"/>
Dependencies
Synopsis
<tr:mathtype2mml-internal xmlns:tr="http://transpect.io">
<p:input port="additional-font-maps" sequence="true" primary="false"/>
<p:output port="result" sequence="true" primary="true"/>
<p:output port="color-range" sequence="true" primary="false"/>
<p:output port="mtef-xml" sequence="true" primary="false"/>
<p:output port="xml2mml" sequence="true" primary="false"/>
<p:output port="map-fonts" sequence="true" primary="false"/>
<p:output port="handle-whitespace" sequence="true" primary="false"/>
<p:output port="operator-elements" sequence="true" primary="false"/>
<p:output port="repair-subsup" sequence="true" primary="false"/>
<p:output port="combine-elements" sequence="true" primary="false"/>
<p:output port="split-elements" sequence="true" primary="false"/>
<p:output port="clean-up" sequence="true" primary="false"/>
<p:option name="href"/>
<p:option name="mml-space-handling" select="'mspace'"/>
<p:option name="debug" select="'no'"/>
<p:option name="em-width" select="'1em'"/>
<p:option name="en-width" select="'0.33em'"/>
<p:option name="standard-width" select="'0.16em'"/>
<p:option name="thin-width" select="'0.08em'"/>
<p:option name="hair-width" select="'0.08em'"/>
<p:option name="zero-width" select="'0em'"/>
</tr:mathtype2mml-internal>
tr:mathtype2mml
Convert an OLE-Object containing a Mathtype equation to MathML. Uses Jruby to create an XML-representation of the MTEF formula. This step requires xproc-util. Conversion without xproc-util is provided by tr:mathtype2mml-internal.
Import
<p:import href="http://transpect.io/calabash-extensions/mathtype-extension/xpl/mathtype2mml-declaration.xpl"/>
Dependencies
Synopsis
<tr:mathtype2mml xmlns:tr="http://transpect.io">
<p:input port="additional-font-maps" sequence="true" primary="false"/>
<p:output port="result" sequence="true" primary="true"/>
<p:option name="href"/>
<p:option name="debug" select="'no'"/>
<p:option name="debug-dir-uri" select="'debug'"/>
<p:option name="mml-space-handling" select="'mspace'"/>
<p:option name="em-width" select="'1em'"/>
<p:option name="en-width" select="'0.33em'"/>
<p:option name="standard-width" select="'0.16em'"/>
<p:option name="thin-width" select="'0.08em'"/>
<p:option name="hair-width" select="'0.08em'"/>
<p:option name="zero-width" select="'0em'"/>
<p:option name="debug-xsl-message" select="'no'"/>
</tr:mathtype2mml>
tr:mathtype2mml-directory
Import
<p:import href="http://transpect.io/calabash-extensions/mathtype-extension/xpl/mathtype2mml-directory.xpl"/>
Dependencies
Synopsis
<tr:mathtype2mml-directory xmlns:tr="http://transpect.io">
<p:input port="additional-font-maps"/>
<p:output port="result" primary="true"/>
<p:option name="source-dir" required="true"/>
<p:option name="store-mml" required="false" select="'false'"/>
<p:option name="target-dir" required="false" select="''"/>
<p:option name="type" required="true"/>
<p:option name="mml-ext" select="'.mml'"/>
<p:option name="debug" select="'no'"/>
<p:option name="debug-dir-uri" select="concat($target-dir, 'debug/')"/>
</tr:mathtype2mml-directory>
tr:mtef2xml
Convert an OLE-Object containing a Mathtype equation to plain XML. Uses Jruby to create an XML-representation of the MTEF formula.
Import
<p:import href="http://transpect.io/calabash-extensions/mathtype-extension/xpl/mtef2xml-declaration.xpl"/>
Synopsis
<tr:mtef2xml xmlns:tr="http://transpect.io">
<p:output port="result" sequence="true" primary="true"/>
<p:option name="href"/>
</tr:mtef2xml>
GitHub sync date: 2024-04-23+02:00