<div dir="ltr"><div><div><div><div><div><div>The discussion about correct MathML output for numbers bring this old issue back to me.  Take, for example, the common math (though not engineering) symbol "Hom".  Let's assume we want it to become <mi> -- although some may wish for <mo>.  What LaTeX markup for Hom should be given to tex4ht (that also works for regular LaTeX)?<br><br></div>There is no way that I think is fully correct unless it involves something like<br></div>\DeclareMathOperator, which should be handled, but is too heavy for casual use.<br><br></div>For casual use \mathrm{Hom} will generate <mi>Hom</mi> with tex4ht and, if I might add, also with latexml.  The problem with using \mathrm this way is that its LaTeX purpose is a zone font operation and its argument for regular LaTeX may contain math expressions, not just a single symbol name.  A translation to MathML can only safely set \mathrm as <mi> when its content is free of operations, otherwise it needs to become, I suppose, <mstyle>.<br><br></div>I've always thought that \mbox{Hom} should be the way to go.  In regular LaTeX one cannot set a math expression in an mbox inside math without explicitly returning to math mode.  However, for \mbox{Hom} tex4ht uses <mtext> (as does also latexml).  But isn't <mtext> is supposed to be a semantic escape from math expression parsing that a computer algebra system can ignore?  In fact, amsmath introduced \text{} for semantic escaping from math expression parsing.<br></div><br></div><div>By the way, as for \mbox{} found in LaTeX outside of math, I think its content should be passed through to html as if the \mbox{} were not present.  For \mbox{} inside math, internal math content should throw an error for translation to MathML.  If the content has no internal white space, it should be <mi>, but <mtext> if there is internal white space.<br><br></div>-- <br><div><div><div><div><div><div><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">William F Hammond<br>Email: <a href="mailto:gellmu@gmail.com" target="_blank">gellmu@gmail.com</a><br><a href="https://www.facebook.com/william.f.hammond" target="_blank">https://www.facebook.com/william.f.hammond</a><br><a href="http://www.albany.edu/~hammond/" target="_blank">http://www.albany.edu/~hammond/</a><br><br></div></div>
</div></div></div></div></div></div></div></div>