{"id":16,"date":"2006-08-06T16:32:00","date_gmt":"2006-08-06T20:32:00","guid":{"rendered":"http:\/\/2d823b65bb.nxcli.io\/2006\/08\/math-you-cant-use.html"},"modified":"2011-05-28T09:09:20","modified_gmt":"2011-05-28T13:09:20","slug":"math-you-cant-use","status":"publish","type":"post","link":"https:\/\/www.robweir.com\/blog\/2006\/08\/math-you-cant-use.html","title":{"rendered":"Math You Can&#8217;t Use"},"content":{"rendered":"<p>Summary: In this post I will look at MathML, a web standard for displaying mathematical equations. I will show how well established it is on the web, how it is integrated into ODF, and how Microsoft has decided to go off in another direction with OMML, another &#8220;stealth&#8221; standard hidden in their 4,000 page Office Open XML specfication, but little mentioned. As I did with my prior analysis of their reliance on the rejected <a href=\"https:\/\/2d823b65bb.nxcli.io\/blog\/2006\/07\/cum-mortuis-in-lingua-mortua.html\">VML<\/a> specification, I will show why this is a bad thing.<\/p>\n<hr \/>\n<p>I&#8217;ve been reading <em><a href=\"http:\/\/www.amazon.com\/gp\/redirect.html?link_code=ur2&amp;tag=ananticdispos-20&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;camp=1789&amp;creative=9325&amp;location=http%3A%2F%2Fwww.amazon.com%2Fgp%2Fproduct%2F0815749422%2Fsr%3D8-1%2Fqid%3D1154899610%2Fref%3Dpd_bbs_1%3Fie%3DUTF8\">Math You Can&#8217;t Use: Patents, Copyright, and Software<\/a><\/em> a book by Ben Klemens, Guest Scholar at the Brookings Institute. It examines the current state of software patents in U.S. and the abuses thereof. He blends his legal and economic policy background with his insights as a programmer to give a perspective worth hearing. Mind you, I don&#8217;t agree with him on many points, and in fact I found the book infuriating at times, but he does make a serious argument and I respect that. In any case I like to have my opinions challenged every now and then. It keeps the mind limber.<\/p>\n<p>Although I am not going to talk about patents and copyrights today, I will steal the title of this book and talk a bit about math, the kind you can use as well as the type you can&#8217;t. The topic for today is MathML.<\/p>\n<p><a href=\"http:\/\/www.w3.org\/Math\/\">MathML<\/a> is a web standard from the W3C, an XML vocabulary for representing the structure and content of mathematical expressions. In other words, it represents equations for display, especially complicated expressions with integrals, summations, products, limits and all the Greek you can throw at it.<\/p>\n<p>If you are running Firefox and have installed the <a href=\"http:\/\/www.mozilla.org\/projects\/mathml\/fonts\/\">math fonts<\/a> then you can get an idea of its capabilities by loading MathML-enabled pages right now, like <a href=\"http:\/\/pear.math.pitt.edu\/mathzilla\/Examples\/markupOftheWeek.mhtml\">this one<\/a>. If you are running Internet Explorer, then sadly you lack native support for MathML, but a <a href=\"http:\/\/www.dessci.com\/en\/products\/mathplayer\/\">browser plugin<\/a> is available.<\/p>\n<p>MathML 1.0 dates back to 1999, and has been revised through MathML 2.0 (second edition) in 2003.<\/p>\n<p>There are about <a href=\"http:\/\/www.w3.org\/Math\/Software\/mathml_software_by_name.html\">100 implementations<\/a> of MathML if you count producers, consumers and editors, including the powerful software used by working mathematicians and scientists like <a href=\"http:\/\/www.maplesoft.com\/standards\/MathML\/info.html\">Maple <\/a>and <a href=\"http:\/\/www.wolfram.com\/products\/webmathematica\/index.html\">Mathematica<\/a>.<\/p>\n<p>The W3C has made a special effort to get the various MathML vendors together to evaluate how well they handle MathML and this is reported out in their <a href=\"http:\/\/www.w3.org\/Math\/iandi\/\">Implementation and Interoperability Report<\/a> .<\/p>\n<p>Where MathML is supported natively, such as in Firefox, it will render along with the text, and not merely as an embedded GIF image. So, it will scale to different screen resolutions and print well. In theory, since it is just text markup in the page, it can be indexed by an intelligent search engine, though I am aware of none that do this currently. (Is there any use for a Google search of all web pages that include a 3rd degree polynomial inequality? I wouldn&#8217;t want to be the first to say &#8220;No&#8221;.)<\/p>\n<p>MathML also is the key to enabling better support for mathematics via screen readers and other assistive agents. When a visually impaired user is presented an equation in the form of a GIF or other image format, they are left out. But put the formula in MathML and the possibilities look better. The work is not complete yet, but progress is being made. For example <a href=\"http:\/\/www.csun.edu\/cod\/conf\/2001\/proceedings\/0186kowaliw.htm\">this<\/a> report from CSUN 2004 and NIDE&#8217;s <a href=\"http:\/\/nide.snow.idrc.ocad.ca\/MathML\/MathMLindex.html\">MathML Accessibility Project<\/a>.<\/p>\n<p>Further innovations are seen at sites like Wolfram&#8217;s <a href=\"http:\/\/pear.math.pitt.edu\/mathzilla\/Examples\/markupOftheWeek.mhtml\">MathMLCentral<\/a> where we see web services for creating, displaying, or even integrating MathML expressions, using their Mathematica program as the backend.<\/p>\n<p>For the above, and many other reasons, MathML was the only logical choice for us to use to support equations in OpenDocument Format (ODF). With such a thriving ecosystem of producers and consumers, with support the tools used by academia and industry like Mathematica and Maple, strong support in web browsers like Firefox, with the accessibility initiatives around it, I don&#8217;t see how you could argue otherwise. MathML is the way the web does math.<\/p>\n<p>But the choice of MathML is more than just a fashion statement. It has practical significance and enables opportunities for innovative workflows around mathematical document production. If you create an equation block in OpenOffice, it saves the equation as a standalone MathML XML document in the ODT document archive. This makes it very easy to access, read, replace, etc.<\/p>\n<p>We should be thinking about workflows like the following:<\/p>\n<ol>\n<li>Do your complicated calculations in a tool like Mathematica<\/li>\n<li>When you get the final results you want, export it to MathML, for example, using Mathematica&#8217;s <a href=\"http:\/\/documents.wolfram.com\/mathematica\/functions\/MathMLForm\">MathMLForm[ ]<\/a> function.<\/li>\n<li>Copy the MathML into an ODF document archive<\/li>\n<li>Take the ODF document and complete the prose write-up of the document in OpenOffice<\/li>\n<li>Share the draft with colleagues, review, etc., in the editable ODF format<\/li>\n<li>When ready to publish, export to XHTML with embedded MathML preserved for the equations, and embedded SVG for the charts.<\/li>\n<li>Users can then view in Firefox or Internet Explorer (with extra plugin)<\/li>\n<\/ol>\n<p>We&#8217;re not quite there yet, end to end. Step #6 in particular is not working as I&#8217;d expect in OpenOffice 2.03. But you get the idea. There is opportunity for fame glory and perhaps some profit to the person or company who provides an end-to-end mathematical editing and publishing solution based on <span style=\"text-decoration: underline;\">open<\/span> standards.<\/p>\n<p>So, in this happy world I&#8217;ve described, what is missing? If you guessed &#8220;Microsoft Office&#8221; then you guessed correctly! Even though MathML is a 7 year-old standard, widely implemented, supported by the leading mathematical tools, the preferred format for publishing math on the web, etc, etc., (the mantra should be familiar), Microsoft has ignored it and instead is pushing forward a new competing format in their Office Open XML (OOXML) specification rushing through Ecma.<\/p>\n<p>The new math markup format is called OMML and you&#8217;ve probably never heard of it. You can check Google, you can check Wikipedia, you can check MSDN. You won&#8217;t find it. In fact, I&#8217;m not even sure what OMML stands for since the acronym is not defined in the spec. But it is there, nestled away in the 4,081 page draft OOXML specification as the markup that &#8220;specifies the structures and appearance of equations in the document&#8221;, Section 25.1, all 93 pages of it.<\/p>\n<p>OMML is not MathML, though it does the solves the same problem. But if you use OMML, it will not work with Firefox, with Mathematica, with OpenOffice or with any of the other 100 applications that support MathML. OMML works with Office, and that&#8217;s it. One door in, no doors out.<\/p>\n<p>Consider that Ecma TC45&#8217;s <a href=\"http:\/\/www.ecma-international.org\/memento\/TC45.htm\">Programme of Work<\/a> included the goal of:<\/p>\n<blockquote><p>&#8230;.enabling the implementation of the Office Open XML Formats by a wide set of tools and platforms in order to foster interoperability across office productivity applications and with line-of-business systems.<\/p><\/blockquote>\n<p>How exactly does the OOXML specification foster this interoperability when it ignores relevant web standards like MathML (and SVG and XForms)?<\/p>\n<p>Microsoft&#8217;s typical argument is to say that the existing standards are inadequate, that Microsoft users expect more, that they need more features, that this is because they need to deal with billions of documents and trillions of dollars, etc. But this rings hollow when talking about math. An <a href=\"http:\/\/members.aol.com\/jeff570\/mathsym.html\">examination<\/a> of the history of mathematical notation demonstrates, as you may already know, that mathematical notation is not exactly experiencing a high rate-of-change. Equations, as used in math and sciences, for the most part use the same notation they did 100 years ago, and many parts of notation are 200-300 years old. Certainly there is no essential change in notation since 1999, when MathML was created.<\/p>\n<p>Now if Microsoft had merely wanted to create a proprietary format for equations and use that in Word in order to trap their customers onto that platform, then I&#8217;d simply say that&#8217;s not my concern and I&#8217;d blog about my heirloom tomatoes or something else. But when this shows up in a nominally open standard destined for approval by ISO, then this raises my eyebrows a little. The obvious choice would have been to simply reuse MathML. So, why are they creating, and standardizing a whole new math markup language? Are there no standards worth reusing? Will <a href=\"http:\/\/www.itjungle.com\/two\/two011806-story01.html\">XPS<\/a> replace PDF, <a href=\"https:\/\/2d823b65bb.nxcli.io\/blog\/2006\/07\/cum-mortuis-in-lingua-mortua.html\">VML<\/a> replace SVG, <a href=\"http:\/\/blogs.pcworld.com\/techlog\/archives\/002140.html\">Windows Media Photo<\/a> format replace PNG, OMML replace MathML, and OOXML replace ODF? Let&#8217;s say &#8220;No&#8221; to OMML and &#8220;Yes&#8221; to MathML, <strong>the math you can use<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: In this post I will look at MathML, a web standard for displaying mathematical equations. I will show how well established it is on the web, how it is integrated into ODF, and how Microsoft has decided to go off in another direction with OMML, another &#8220;stealth&#8221; standard hidden in their 4,000 page Office [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[6],"tags":[],"class_list":{"0":"post-16","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-ooxml","7":"entry"},"_links":{"self":[{"href":"https:\/\/www.robweir.com\/blog\/wp-json\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.robweir.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.robweir.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.robweir.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.robweir.com\/blog\/wp-json\/wp\/v2\/comments?post=16"}],"version-history":[{"count":4,"href":"https:\/\/www.robweir.com\/blog\/wp-json\/wp\/v2\/posts\/16\/revisions"}],"predecessor-version":[{"id":1731,"href":"https:\/\/www.robweir.com\/blog\/wp-json\/wp\/v2\/posts\/16\/revisions\/1731"}],"wp:attachment":[{"href":"https:\/\/www.robweir.com\/blog\/wp-json\/wp\/v2\/media?parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.robweir.com\/blog\/wp-json\/wp\/v2\/categories?post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.robweir.com\/blog\/wp-json\/wp\/v2\/tags?post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}