mathtype-extension

Calabash extension step to convert MathType OLE objects to MathML

Repository
Git URLhttps://github.com/transpect/mathtype-extension.git
SVN URLhttps://github.com/transpect/mathtype-extension
Base URIhttp://transpect.io/calabash-extensions/mathtype-extension/

Source ⬇

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="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="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: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: 2017-07-06+02:00