<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Debbi,</p>
<p>For the HTML output, only Firefox supports rendering the equation
directly in the HTML output.</p>
<p>There is a Javascript library named MathJax which can be added to
the HTML header and which will add rendering support for MathML:</p>
<p><a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/doc/versions/22.1/ug-editor/topics/mathjax-webhelp.html">https://www.oxygenxml.com/doc/versions/22.1/ug-editor/topics/mathjax-webhelp.html</a></p>
<p>If instead of WebHelp you are publishing to plain HTML5 there are
equivalent parameters to specify a reference to a header fragment:</p>
<p><a class="moz-txt-link-freetext" href="https://www.dita-ot.org/dev/parameters/parameters-base-html.html#base-html__args.hdf">https://www.dita-ot.org/dev/parameters/parameters-base-html.html#base-html__args.hdf</a><br>
</p>
Regards,<br>
Radu<br>
<br>
<pre class="moz-signature" cols="72">Radu Coravu
Oxygen XML Editor</pre>
<div class="moz-cite-prefix">On 8/14/20 7:59 PM, <a class="moz-txt-link-abbreviated" href="mailto:leipold@comcast.net">leipold@comcast.net</a>
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:01df01d6725c$5608e6f0$021ab4d0$@comcast.net">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:Roboto;
panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:windowtext">Thank you so
much, Radu! This works perfectly and looks great in PDF. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">I do have
one question about the HTML output. It puts the equation in
the HTML output, but it is transformed into a linear
equation instead of a professional one. It needs to appear
as professional, just like it does in the PDF.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">I am not
sure if this is a css thing or something else in the
transformation scenario. How do I make this transform in
HTML with the correct formatting for equations. I have tried
various transformation scenarios and they all have the same
result so far.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Debbi<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span
style="color:windowtext"> oXygen-user
<a class="moz-txt-link-rfc2396E" href="mailto:oxygen-user-bounces@oxygenxml.com"><oxygen-user-bounces@oxygenxml.com></a> <b>On Behalf
Of </b>Radu Coravu<br>
<b>Sent:</b> Thursday, August 13, 2020 12:52 AM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:oxygen-user@oxygenxml.com">oxygen-user@oxygenxml.com</a><br>
<b>Subject:</b> Re: [oXygen-user] Word equations to
oXygen Equation editor<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Hi Debbi,<o:p></o:p></p>
<p>I created an Oxygen XML Refactoring action based on XSLT to
help you with this:<o:p></o:p></p>
<p><a
href="https://github.com/oxygenxml/dita-refactoring-examples/tree/master/34%20Change%20Prefix%20in%20MathML%20Equation%20for%20DITA%20topics"
moz-do-not-send="true">https://github.com/oxygenxml/dita-refactoring-examples/tree/master/34%20Change%20Prefix%20in%20MathML%20Equation%20for%20DITA%20topics</a><o:p></o:p></p>
<p>Please see more details on your forum thread:<o:p></o:p></p>
<p><a
href="https://www.oxygenxml.com/forum/post59058.html#p59058"
moz-do-not-send="true">https://www.oxygenxml.com/forum/post59058.html#p59058</a><o:p></o:p></p>
<p class="MsoNormal">Regards,<br>
Radu<br>
<br>
<o:p></o:p></p>
<pre>Radu Coravu<o:p></o:p></pre>
<pre>Oxygen XML Editor<o:p></o:p></pre>
<div>
<p class="MsoNormal">On 8/12/20 6:37 PM, <a
href="mailto:leipold@comcast.net" moz-do-not-send="true">leipold@comcast.net</a>
wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:Roboto;background:white">Hello,
</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:Roboto;background:white"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:Roboto;background:white">I
have an extremely large document to convert from Word to
Oxygen DITA. One of the biggest problems is equations, and
there are thousands of them.</span><span
style="font-size:10.0pt;font-family:Roboto"><br>
<br>
<span style="background:white">I found a way to export the
equation to from word MathML and get this:</span><br>
<span style="background:white"><mml:math xmlns:mml="</span></span><a
href="http://www.w3.org/1998/Math/MathML"
moz-do-not-send="true"><span
style="font-size:10.0pt;font-family:Roboto;color:#5D8FBD;border:none
windowtext
1.0pt;padding:0in;background:white;text-decoration:none">http://www.w3.org/1998/Math/MathML</span></a><span
style="font-size:10.0pt;font-family:Roboto;background:white">" xmlns:m="</span><a
href="http://schemas.openxmlformats.org/officeDocument/2006/math%22%3E%3Cmml:msub%3E%3Cmml:mrow%3E%3Cmml:mi%3EC%3C/mml:mi%3E%3C/mml:mrow%3E%3Cmml:mrow%3E%3Cmml:mn%3E1%3C/mml:mn%3E%3Cmml:mi%3E%CF%95%3C/mml:mi%3E%3C/mml:mrow%3E%3C/mml:msub%3E%3Cmml:mtext"
moz-do-not-send="true"><span
style="font-size:10.0pt;font-family:Roboto;color:#5D8FBD;border:none
windowtext
1.0pt;padding:0in;background:white;text-decoration:none">http://schemas.openxmlformats.org/offic
... <mml:mtext</span></a><span
style="font-size:10.0pt;font-family:Roboto;background:white">> </mml:mtext><mml:mo>=</mml:mo><mml:mtext> </mml:mtext><mml:msub><mml:mrow><mml:mi>C</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi></mml:mrow></mml:msub><mml:mtext> </mml:mtext><mml:msub><mml:mrow><mml:mi>A</mml:mi></mml:mrow><mml:mrow><mml:mi>p</mml:mi><mml:mi>i</mml:mi><mml:mi>p</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub><mml:mtext> </mml:mtext><mml:msqrt><mml:mfrac><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mrow><mml:mi>P</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi></mml:mrow></mml:msub><mml:mtext> </mml:mtext><mml:mo>-</mml:mo><mml:mtext> </mml:mtext><mml:msub><mml:mrow><mml:mi>P</mml:mi></mml:mrow><mml:mrow><mml:mi>p</mml:mi><mml:mi>s</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo><mml:mtext> </mml:mtext><mml:msub><mml:mrow><mml:mi>v</mml:mi></mml:mrow><mml:mrow><mml:mi>w</mml:mi><mml:mo>,</mml:mo><mml:mi>a</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:msqrt></mml:math></span><span
style="font-size:10.0pt;font-family:Roboto"><br>
<br>
<span style="background:white">I insert that into the
equation editor and get this:</span><br>
<span style="background:white"><p>MathML inline:
<equation-inline></span><br>
<span style="background:white"><mml:math xmlns:mml="</span></span><a
href="http://www.w3.org/1998/Math/MathML"
moz-do-not-send="true"><span
style="font-size:10.0pt;font-family:Roboto;color:#5D8FBD;border:none
windowtext
1.0pt;padding:0in;background:white;text-decoration:none">http://www.w3.org/1998/Math/MathML</span></a><span
style="font-size:10.0pt;font-family:Roboto;background:white">" xmlns:m="</span><a
href="http://schemas.openxmlformats.org/officeDocument/2006/math"
moz-do-not-send="true"><span
style="font-size:10.0pt;font-family:Roboto;color:#5D8FBD;border:none
windowtext
1.0pt;padding:0in;background:white;text-decoration:none">http://schemas.openxmlformats.org/offic
... /2006/math</span></a><span
style="font-size:10.0pt;font-family:Roboto;background:white">"></span><span
style="font-size:10.0pt;font-family:Roboto"><br>
<span style="background:white"><mml:mi>W</mml:mi><mml:mtext> </span><br>
<span style="background:white"></mml:mtext><mml:mo>=</mml:mo><mml:mtext> </mml:mtext><mml:msub><mml:mrow><mml:mi>C</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi></mml:mrow></mml:msub><mml:mtext> </mml:mtext><mml:msub><mml:mrow><mml:mi>A</mml:mi></mml:mrow><mml:mrow><mml:mi>p</mml:mi><mml:mi>i</mml:mi><mml:mi>p</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub><mml:mtext> </mml:mtext><mml:msqrt><mml:mfrac><mml:mrow><mml:mn>2</mml:mn><mml:mtext> </mml:mtext><mml:mfenced
open="[" close="]"
separators="|"><mml:mrow><mml:msub><mml:mrow><mml:mi>P</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi></mml:mrow></mml:msub><mml:mtext> </mml:mtext><mml:mo>-</mml:mo><mml:mtext> </mml:mtext><mml:msub><mml:mrow><mml:mi>P</mml:mi></mml:mrow><mml:mrow><mml:mi>p</mml:mi><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfenced></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>v</mml:mi></mml:mrow><mml:mrow><mml:mi>w</mml:mi><mml:mo>,</mml:mo><mml:mi>a</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:msqrt></mml:math></span><br>
<span style="background:white"></equation-inline></p></span><br>
<br>
<span style="background:white">It looks fine in Author,
but has element errors that MMM:Ml must be declared. It
will not transform using the DITA Map PDF - based on
HTML & CSS scenario.</span><br>
<br>
<span style="background:white">I have gotten to the point
where I just do not know how to fix this. I realize that
the syntax isn't the same as:</span><br>
<br>
<span style="background:white"><m:math
display='inline'></span><br>
<span style="background:white"><m:semantics></span><br>
<span style="background:white"><m:mrow></span><br>
<span style="background:white"><m:msqrt></span><br>
<span style="background:white">...</span><br>
<span style="background:white">But with thousands of
these, I need the quickest way possible to get these
equations in a format that can transform. I thought I
had it because it finally looked right in Author, but I
need to know how to add the correct element type to get
it to transform.</span><br>
<br>
<span style="background:white">Sorry if this topic has
been addressed before. I didn't find it.</span><br>
<br>
<span style="background:white">Thanks,</span><br>
<br>
<span style="background:white">Debbi</span></span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Debbi Leipold | Mobile (410) 905-7948<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>oXygen-user mailing list<o:p></o:p></pre>
<pre><a href="mailto:oXygen-user@oxygenxml.com" moz-do-not-send="true">oXygen-user@oxygenxml.com</a><o:p></o:p></pre>
<pre><a href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user" moz-do-not-send="true">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<pre><o:p> </o:p></pre>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">
</pre>
</body>
</html>