Skip to content

Collect usage statistics for current MathML elements #55

Closed

Description

@physikerwelt

@physikerwelt I think in general it would be good to gather usage metrics of elements/attributes that are proposed for deprecation/removal. Maybe you can do that for wikipedia.

Originally posted by @fred-wang in #1 (comment)

Activity

  1. fred-wang commented on Feb 25, 2019

    @fred-wang

    I think we should probably send an email to the Math WG mailing list to see if MathML users or developer of MathML authoring tools can provide more data.

  2. NSoiffer commented on Feb 26, 2019

    @NSoiffer
    Contributor

    I suspect that we need to ask specific questions when we ask for data. For example:

    • what percentage and/or number of expressions in your database use mstyle?
    • what attributes are used on mstyle?
    • are small, normal, big used with mathsize?
  3. fred-wang commented on Mar 19, 2019

    @fred-wang

    @dginev @kohlhase @brucemiller would you be able to provide info for LaTeXML / Arxiv?
    @physikerwelt would you be able to provide info for Mathoid / Wikipedia?

  4. dginev commented on Mar 20, 2019

    @dginev
    Member

    Sure. As @NSoiffer suggests, you could ask what specific statistics may interest you, and I could generate a report. We have been publishing our recent arXiv HTML5 datasets (1.2 million papers with ~500 million math elements) and it is easy to extract some information on frequencies of math elements and attributes. E.g. just counting the math elements and their attributes is somewhat direct.

    That said, since the arXMLiv resource is generated via latexml, it may have better behaved MathML than an arbitrary web page, and Bruce can already directly tell you which of the removal suggestions would require latexml changes.

    Edit: I've started a stats collection job, should take a couple of days to finish and report back.

  5. fred-wang commented on Mar 20, 2019

    @fred-wang

    Thanks. I'm going to prepare a set of questions. I think both are interesting as it's possible that tools can generate some specific MathML element/attribute but that they are not really used in practice.

  6. added
    compatibility
    on Mar 20, 2019
  7. fred-wang commented on Mar 20, 2019

    @fred-wang

    This survey intends to track usage statitics of MathML in order to get a better idea of what should belong to MathML Core, to MathML 4 or should be deprecated. Please answer the following questions as accurately as you can:

    1. Description. Please describe the MathML database / authoring tool (e.g. Wiki, digital library, latex-to-mathml converter, WYSIWYG MathML editor, computer algebra system, etc):

    2. Native MathML. Does your database / tool serve MathML content to native web engines (e.g. Firefox, iOS WebView, ...)?

    3. MathML elements. Please provide usage percentage for MathML elements in your database / list of generated MathML elements by your tool. Does your database / tool rely on the following elements?
      munder, mover, msub, msup, msubsup, mlabeledtr, merror, mphantom, maction, mglyph, mfenced, mstyle, ms.

    4. MathML attributes. Please provide usage percentage for MathML attributes in your database / list of generated MathML attributes by your tool. Does your database / tool rely on the following attributes?
      mathvariant, numalign, denomalign, align (on munderover/munder/mover), bevelled, subscripshift, superscriptshift, other, macros, mode, fontfamily, index, fontfamily, fontweight, fontstyle, fontsize, color, background, veryverythinmathspace, verythinmathspace, thinmathspace, mediummathspace, thickmathspace, verythickmathspace, veryverythickmathspace

    5. Attributes on the mstyle element. Does your database / tool use attributes on the mstyle element other than the following ones?
      displaystyle, dir, mathsize, mathbackground, mathcolor, mathvariant, scriptlevel

    6. Attribute values. Does your database / tool use any of the following attribute values?

    • linethickness attribute with value "thin", "thick" or "medium"
    • mathsize attribute with value "small", "normal" or "big"
    • attribute with value a nonzero number without unit (e.g. "4") that are defined as length (i.e. exclude mglyph@index, scriptlevel, mtd@rowspan, mtd@columnspan, maction@selection, msgroup@position, msgroup@shift, msrow@position, mscarries@position, msline@position, msline@length)
    • attribute with value "veryverythinmathspace", "verythinmathspace", "thinmathspace", "mediummathspace", "thickmathspace", "verythickmathspace" or "veryverythickmathspace".
    • notation attribute containing the value "radical" (e.g. notation="radical circle")
    • attribute with leading or trailing white space characters (U+0020, U+0009, U+000A, U+000D or U+000C). For example width=" 5em ".
    1. Trailing/leading whitespace in token elements. Does your database / tool use any token elements (mi, mtext, mn, mo, mtext, ms) whose text content has leading or trailing white space characters (U+0020, U+0009, U+000A, U+000D or U+000C). For example <mi> x </mi>.
  8. fred-wang commented on Mar 20, 2019

    @fred-wang

    I wrote a basic survey in #55 (comment) ; the data can be provided by basic search features and does not require actual knowledge of the MathML semantic.

  9. fred-wang commented on Mar 20, 2019

    @fred-wang
    1. TeXZilla, LALR Javascript Unicode LaTeX-to-MathML converter
    2. Yes, it has a web page https://fred-wang.github.io/TeXZilla/ and a Firefox add-on.
    3. annotation, maction, math, menclose merror, mfrac, mi, mmultiscripts, mn, mo, mover, mpadded, mphantom, mprescripts, mroot, mrow, ms, mspace, msqrt, mstyle, msub, msubsup, msup, mtable, mtd, mtext, mtr, munder, munderover, none, semantics
      It does not use mglyph, mfenced or mlabeledtr.
    4. actiontype, align, colspan, columnalign, columnlines, depth, dir, display, displaystyle, equalcolumns, equalrows, frame, height, linethickness, lspace, mathbackground, mathcolor, mathvariant, maxsize, minsize, notation, rowlines, rowspacing, rowspan, rspace, scriptlevel, stretchy, voffset, width, xmlns
      No, except mathvariant.
    5. It only uses displaystyle, scriptlevel, mathcolor, mathbackground ; dir/mathsize are used on the math element ; mathvariant is used on mstyle in some exceptional situations (always used prior to version 1.0.1).
    6. No (named spaces on mo and mspace prior to version 1.0.0)
    7. No.
  10. davidcarlisle commented on Mar 20, 2019

    @davidcarlisle
    Collaborator

    results of survey for NAG manual (internal draft but basically https://www.nag.co.uk/numeric/fl/nagdoc_fl26.2/html/frontmatter/manconts.html

    1. essentially hand authored (with some XSLT post processing) Mostly using emacs nxml-mode

    2. mathml in HTML5 by default served as-is to firefox, via mathjax to other browsers.

    3. full detail at end, no use of mlabeledtr, merror, maction, mglyph

    4. full detail at end, uses mathvariant but not the others you list other than a few (removable) uses of other

    5. only displaystyle and mathcolor

    6. No, other than some use of lspace="thinmathspace"

    7. no

    Details

    
    436,262 math expressions
    2,623,875 mathml elements
    
    elements used
    
    436262 instances
    <math
     display="block"
     displaystyle="true"
    >
    
    58 instances
    <menclose
      notation="bottom"
    >
    
    133002 instances
    <mfenced
    separators=","
    separators=""
    open="|"
    open="'"
    open=""
    open="("
    open="["
    open="{"
    open="&#x2016;"
    open="&#x2308;"
    open="&#x230a;"
    open="&#x2329;"
    close="|"
    close="'"
    close=""
    close=")"
    close="["
    close="]"
    close="}"
    close="&#x2016;"
    close="&#x2309;"
    close="&#x230b;"
    close="&#x232a;"
    close="&#xa0;"
    >
    
    8653 instances
    <mfrac
     other="display"
     other="small
    >
    
    818436 instances
    <mi
     href=< URL >
     mathcolor=< #hex >
     mathvariant= bold|bold-italic|italic|monospace|normal|script
    >
    
    244 instances
    <mmultiscripts>
    
    281635 instances
    <mn
     href=< URL >
     mathcolor=< #hex >
     mathvariant= bold|bold-italic|italic|monospace|normal|script
    >
    
    469293 instances
    <mo
     lspace="0pt"
     rspace="0pt"
     lspace="thinmathspace"
     mathvariant="bold|normal"
     minsize="< length >em"
     other="big"
    >
    
    9561 instances
    <mover>
    
    2026 instances
    <mpadded
      width=< length > em"
      height="< length >em"
      depth="< length >em"
      voffset="< length >em"
    >
    
    3914 instances
    <mphantom>
    
    244 instances
    <mprescripts>
    
    
    36 instances
    <mroot>
    
    157210 instances
    <mrow>
    
    127 instances
    <ms>
    
    12604 instances
    <mspace
     linebreak="newline"
     width=< length >em
     >
     
    
    2637 instances
    <msqrt>
    
    
    940 instances
    <mstyle
      displaystyle="true"
      mathcolor="#003399"
    >
    
    93239 instances
    <msub>
    
    6350 instances
    <msubsup>
    
    28049 instances
    <msup>
    
    5715 instances
    <mtable
      rowlines="none none none solid none"
      columnlines="none none none solid none"
    >
    
    61578 instances
    <mtd
    columnalign="center|left|right"
    >
    
    68458 instances
    <mtext
     mathvariant="italic"
    >
    
    18725 instances<mtr
    columnalign="center|left|right"
    >
    
    1260 instances
    <munder>
    
    3156 instances
    <munderover
    columnalign="center|left|right"
    >
    
    462 instances
    <none>
    
    
  11. sideshowbarker commented on Mar 20, 2019

    @sideshowbarker
    Member

    I could add use counters to the W3C HTML checker to collect statistics for this

  12. emilio commented on Mar 21, 2019

    @emilio

    Also let me know if you want use counters for some of these in Gecko, I can let you know how to add them or add them myself.

  13. physikerwelt commented on Mar 21, 2019

    @physikerwelt
    MemberAuthor
  14. sideshowbarker commented on Mar 21, 2019

    @sideshowbarker
    Member

    the MathML is generated via MathJax

    Do you mean it’s generated on the client side (from JavaScript running in a browser)?

    I guess I should note that for the case of the W3C HTML Checker, I won’t be able to collect use counters for any MathML markup that’s dynamically generated by JavaScript running on the client side in a browser. The HTML Checker sees only the source of the document, not the DOM.

  15. fred-wang commented on Mar 21, 2019

    @fred-wang

    the MathML is generated via MathJax

    Do you mean it’s generated on the client side (from JavaScript running in a browser)?

    It's server-side: https://github.com/wikimedia/mathoid

  16. 6 remaining items

  17. dginev commented on Mar 24, 2019

    @dginev
    Member

    arXMLiv 08.2018

    1. Description: arXMLiv 08.2018 is an HTML5 dataset of 1.2 million scientific articles from arXiv.org, created by me as part of our work at the KWARC research group. The data is converted from LaTeX via LaTeXML 0.8.3 and the CorTeX build system.
      The collection contains ~550 million <math> elements, with parallel Content MathML annotations.

    2. The dataset can be both downloaded and explored online. The CorTeX preview uses Presentation+Content MathML for capable browser engines, and a MathJax polyfill for others (with client-side MathML rendering).

    3. MathML elements. A de-noised, but otherwise exhaustive, report over the data can be seen here for presentation MathML, as well as here for content MathML.

      • Worth mentioning is that since the arXMLiv dataset is not curated in any form, and includes documents with known latexml errors, there are documents where the MathML is wrongly polluted with elements from external namespaces. I have tried my best to remove all of these cases before reporting here, and included the script, so that there is transparency in what data got discarded, for anyone interested.
      • As Frédéric initially requested, I have included pre-computed ratios for each report row, compared to the total <math> elements in arXiv. It's a curious report to study (again, generated via the llamapun toolkit).
      • Comparing to the shortlist:
        • in use: munder, mover, msub, msup, msubsup, mphantom, mstyle, merror,
        • not in use: mlabeledtr, maction, mglyph, mfenced, ms.
    4. MathML attributes:

      • in use: mathvariant, align (on mtable), mathbackground
      • not in use: numalign, denomalign, align (on munderover/munder/mover), bevelled, subscripshift, superscriptshift, other, macros, mode, index, fontfamily, fontweight, fontstyle, fontsize, color,
        background, veryverythinmathspace, verythinmathspace, thinmathspace, mediummathspace, thickmathspace, verythickmathspace, veryverythickmathspace
    5. <mstyle> attributes:

      • in use : displaystyle, scriptlevel, id, xref, mathcolor, class, style
    6. Attribute values:

      • linethickness -- numeric pt value only, none of named keywords. (some errors for us to fix, but no intentional other use)
      • mathsize -- numeric % values only, none of named keywords
      • attribute with value a nonzero number without unit. Yes, in what I see are two cases: e.g. mtd@rowspan[2], mtd@columnspan[8].
      • one use of "veryverythickmathspace", as Bruce mentioned
      • notation with value "radical" - none. Notation attribute values are:
        - box, downdiagonalstrike, updiagonalarrow, updiagonalstrike
      • attribute with leading or trailing white space characters - none
    7. No trailing/leading whitespace in token elements.

    Thanks for the patience with the report, a big part of the delay was the slowdown brought by the incredibly noisy error subset of the articles. I've left more details at the Gist, for anyone curious.

  18. fred-wang commented on Mar 24, 2019

    @fred-wang

    @dginev Thank you so much for this report, it's really cool to have such a big database of concrete MathML.

    Regarding "attribute with value a nonzero number without unit", the survey should really be 'length attribute with value a nonzero number without unit'. However, I tried to make it understandable by anyone without detailed knowledge of the spec + so that one could easily write a script to extract data. mtd@columnspan and mtd@rowspan are defined as "positive-integer" ( https://mathml-refresh.github.io/mathml/chapter3.html#presm.mtdatts ) so they are not included in #24 ; I'll try updating the survey.

  19. added a commit that references this issue on Mar 30, 2019
  20. sideshowbarker commented on Apr 1, 2019

    @sideshowbarker
    Member

    I added use counters to the W3C HTML checker. You can view the current results here:

    https://validator.w3.org/nu/stats.html

    (Scroll down and look at the rows that start with Math.)

  21. sideshowbarker commented on Apr 12, 2019

    @sideshowbarker
    Member

    For the record here, the following is the relevant use-counter data collected so far from 2,316,780 documents checked by the W3C HTML checker:

    Use-counter data for 2,316,780 documents
    Counter Occurrences* Proportion
    element <annotation> 82 0.000035
    element <annotation-xml> 2 0.000001
    element <maction> 0 0.000000
    element <math> 208 0.000090
    element <menclose> 10 0.000004
    element <merror> 0 0.000000
    element <mfenced> 28 0.000012
    element <mfrac> 110 0.000047
    element <mglyph> 0 0.000000
    element <mi> 197 0.000085
    element <mlabeledtr> 0 0.000000
    element <mmultiscripts> 3 0.000001
    element <mn> 197 0.000085
    element <mo> 165 0.000071
    element <mover> 13 0.000006
    element <mpadded> 4 0.000002
    element <mphantom> 2 0.000001
    element <mprescripts> 2 0.000001
    element <mroot> 32 0.000014
    element <mrow> 157 0.000068
    element <ms> 0 0.000000
    element <mspace> 16 0.000007
    element <msqrt> 76 0.000033
    element <mstyle> 112 0.000048
    element <msub> 112 0.000048
    element <msubsup> 12 0.000005
    element <msup> 100 0.000043
    element <mtable> 42 0.000018
    element <mtd> 42 0.000018
    element <mtext> 53 0.000023
    element <mtr> 42 0.000018
    element <munder> 5 0.000002
    element <munderover> 9 0.000004
    element <none> 3 0.000001
    element <semantics> 82 0.000035
    attribute "actiontype" 0 0.000000
    attribute "background" 0 0.000000
    attribute "bevelled" 0 0.000000
    attribute "color" 0 0.000000
    attribute "colspan" 0 0.000000
    attribute "columnalign" 35 0.000015
    attribute "columnlines" 0 0.000000
    attribute "denomalign" 0 0.000000
    attribute "depth" 0 0.000000
    attribute "dir" 0 0.000000
    attribute "display" 32 0.000014
    attribute "displaystyle" 104 0.000045
    attribute "equalcolumns" 0 0.000000
    attribute "equalrows" 0 0.000000
    attribute "fontfamily" 0 0.000000
    attribute "fontsize" 0 0.000000
    attribute "fontstyle" 0 0.000000
    attribute "fontweight" 0 0.000000
    attribute "frame" 0 0.000000
    attribute "height" 7 0.000003
    attribute "index" 0 0.000000
    attribute "linethickness" 6 0.000003
    attribute "lspace" 5 0.000002
    attribute "macros" 0 0.000000
    attribute "mathbackground" 1 0.000000
    attribute "mathcolor" 15 0.000006
    attribute "mathvariant" 26 0.000011
    attribute "maxsize" 2 0.000001
    attribute "mediummathspace" 0 0.000000
    attribute "minsize" 2 0.000001
    attribute "mode" 0 0.000000
    attribute "notation" 10 0.000004
    attribute "numalign" 0 0.000000
    attribute "other" 0 0.000000
    attribute "rowlines" 0 0.000000
    attribute "rowspacing" 1 0.000000
    attribute "rowspan" 0 0.000000
    attribute "rspace" 5 0.000002
    attribute "scriptlevel" 83 0.000036
    attribute "stretchy" 55 0.000024
    attribute "subscripshift" 0 0.000000
    attribute "superscriptshift" 2 0.000001
    attribute "thickmathspace" 0 0.000000
    attribute "thinmathspace" 0 0.000000
    attribute "verythickmathspace" 0 0.000000
    attribute "verythinmathspace" 0 0.000000
    attribute "veryverythickmathspace" 0 0.000000
    attribute "veryverythinmathspace" 0 0.000000
    attribute "voffset" 0 0.000000
    attribute "width" 16 0.000007
    attribute "xmlns" 0 0.000000
    element <mstyle> with attributes other than "dir", etc. 19 0.000008
    attribute "linethickness" with value "thin", "thick" or "medium" 0 0.000000
    attribute "mathsize" with value "small", "normal" or "big" 0 0.000000
    attribute with unitless-length value 0 0.000000
    attribute with "named space" value: "verythinmathspace", etc. 4 0.000002
    attribute "notation" with "radical" in value 4 0.000002
    attribute with leading/trailing whitespace in value 0 0.000000
    element with leading/trailing whitespace in contents 6 0.000003

    * out of 2,316,780 documents total

    The final column is a proportion where 1.0 would mean 100%. So the 0.000090 number for the <math>-element counter means that 0.009% of documents checked had a math element.

    And so assuming all the MathML content checked had a math element, that means the numbers for the other counters can considered relative to 208.

    So the “element with leading/trailing whitespace in contents” means 6 out of 208 instances of math content — ~2.9% — had at least one element with leading/trailing whitespace in its text content.

  22. NSoiffer commented on Apr 24, 2019

    @NSoiffer
    Contributor

    It seems like mover/munder/munderover are big potential problems wrt to the accent rule. If we end up deciding that automatic determination of the value of the accent attr won't be part of core (can't use an ssty-like font attr or whatever), then it is important to get some usage stats as to how often the attr is specified and if it isn't given, how often it should be an accent vs a limit . To do that, we need to know what the second (and third) arguments are, or at least those that are mo and a count of the other cases.

    @dginev's detailed data does provide us with those numbers (minus the characters that are accents) because the generator always uses the accent attrs. The really big arXMLiv's numbers are:

    • mover -- when it generates accent, it is always true. That's most of the time: 11.64% out of 11.89%
    • munder -- when it generates accentunder, it is always true. That's a smaller amount of time: .46% out of 2.24%
    • munderover -- when it generates accent and accentunder, it is always true. When one was true, the other was always true. Being true was rare: .03% out of 1.22%

    For the smaller (but still substantial) DLMF dataset, there's a similar pattern (same generator):

    • mover -- 1050/1052 accent=true
    • munder -- 8/430 accentunder=true
    • munderover -- 0/2042 values true

    So for this generator, we have a good indication that defaults for mover and munderover will work well. For munder, it will be wrong 20% of the time for arXiv, but only 2% of the time for DLMF. The first number is not great, but it's not awful.

    These numbers are a great indication, but they come a single generator. Having data from a different generator would add a lot more validity to them.

  23. dani31415 commented on Apr 29, 2019

    @dani31415

    Some statistics extracted from the MathType Web / WIRIS services. Note that some attributes are invalid as MathML but that's what the users tried to use with MathType Web services.

    1905001 Expressions
    
    12082445 instances
    <mo
      xmlns = "http://www.w3.org/1998/Math/MathML"
      lspace = "mediummathspace" | "thinmathspace" | "? em" | "? pt" | "? px"
      form = "postfix" | "prefix" | "infix"
      stretchy = "false" | "true"
      linebreak = "newline" | "nobreak" | "goodbreak" | "badbreak"
      mathsize = "? px" | "? em" | "big" | "? %" | "? pt"
      separator = "true"
      mathvariant = "bold" | "bold-italic" | "italic" | "normal" | "double-struck" | "fraktur" | "\"italic\""
      linebreakstyle = "before" | "after"
      indentshift = "? em"
      mathcolor = "#??????"
      symmetric = "true"
      fence = "true" | "false"
      accent = "false" | "true"
      class = ...
      movablelimits = "true" | "false"
      mathbackground = "#??????"
      id = ...
      dir = "rtl"
      style = ...
      minsize = "? em" | "? %"
      background = "violet"
      rspace = "mediummathspace" | "? em" | "? pt" | "? px"
      largeop = "true"
      fontstyle = "normal"
      maxsize = "? em" | "? %" | "1"
    >
    
    10973191 instances
    <mi
      mathbackground = "#??????"
      style = ...
      background = "violet"
      id = ...
      dir = "rtl"
      class = ...
      xmlns = "http://www.w3.org/1998/Math/MathML"
      fontstyle = "normal" | "italic"
      mathsize = "? px" | "? %"
      title = ...
      mathcolor = "#??????"
      mathvariant = ...
    >
    
    6552976 instances
    <mn
      style = "color:#ff0000" | "line-height: 22.28px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;" | "color:#000000" | "font-size: 80%"
      mathbackground = "#??????"
      id = ...
      dir = "rtl"
      class = ...
      xmlns = "http://www.w3.org/1998/Math/MathML" | "http://www.w3.org/1999/xhtml"
      fontsize = "? px" | "20"
      bold-italic = ""
      mathsize = "? px" | "0.5" | "? %"
      title = ...
      wrs:positionable = "true"
      mathcolor = "#??????" | "red"
      mathvariant = "bold" | "italic" | "bold-italic" | "normal" | "double-struck" | "bold>1</mn> </mrow><mrow> <mi mathvariant="
    >
    
    2026141 instances
    <mrow
      wrs:positionable = "true" | "false"
      dir = "rtl"
      style = "line-height: 22.28px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;" | "color:#ff0000" | "color:#c83740"
      class = ...
      mathcolor = "#??????"
      xmlns = "http://www.w3.org/1998/Math/MathML"
      id = ...
    >
    
    1777653 instances
    <math
      width = "444"
      linebreak = "auto"
      xmls = "http://www.w3.org/1998/Math/MathML"
      mode = "inline" | "display"
      indentalign = "left" | "id" | "right"
      mathvariant = "italic"
      border = "1"
      class = ...
      displaystyle = "true"
      xmlns = ...
      indenttarget = "aaa1" | "aaa2"
      altimg = ...
      tex = "\Omega" | "{}^{2}" | "\boldsymbol{\mathsf{G_{max}}}"
      mathsize = "? em" | "? px" | "16px;" | "15px;" | "? pt" | "medium" | "17px;"
      xml:id = ...
      display = "block" | "inline" | "" | "block;" | "blockquote" | "inline-block"
      text = "Omega" | "^2" | "G _ max"
      mathcolor = "#??????" | "white" | "blue"
      http: = ""
      times = ""
      indentshiftfirst = "? em"
      title = ...
      displaystye = "true"
      id = ...
      float = "left"
      wrs:positionable = "false"
      alttext = ...
      overflow = "scroll" | "scale"
      style = ...
      scriptlevel = "-1"
      baseline = "-2.5"
      align = "center" | "left"
      indentshift = "? em"
      roman = ""
      dir = "rtl" | "\"rtl\""
    >
    
    1130582 instances
    <mfrac
      style = ...
      id = ...
      linethickness = "0" | "? px" | "1" | "? pt"
      mpadded = "0"
      dir = "rtl"
      denomalign = "center"
      class = ...
      xmlns = "http://www.w3.org/1998/Math/MathML"
      bevelled = "true" | "\"true\""
      title = ...
      numalign = "center"
      mathcolor = "#??????"
      mathvariant = "bold"
    >
    
    955930 instances
    <msup
      mathsize = "? em"
      dir = "rtl"
      style = "line-height: 22.28px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"
      class = ...
      mathcolor = "#??????" | "blue"
      title = ...
      xmlns = "http://www.w3.org/1998/Math/MathML"
      id = ...
    >
    
    685983 instances
    <mspace
      id = ...
      width = "? em" | "- ? em" | "thickmathspace" | "negativethinmathspace" | "? px" | "? pt" | "thinmathspace" | "50" | "mediummathspace" | "? cm" | "? ex" | "3"
      class = ...
      xmlns = "http://www.w3.org/1998/Math/MathML"
      depth = "? ex" | "? em"
      mathsize = "? px"
      linebreak = "newline" | "\"newline\"" | "\"newline\"/" | "././newline" | ""newline"" | "nobreak"
      height = "? em" | "? ex" | "? pt"
      mathcolor = "#??????"
      mathvariant = "bold" | "italic"
    >
    
    596815 instances
    <msub
      class = ...
      mathcolor = "#??????"
      mathbackground = "#??????"
      xmlns = "http://www.w3.org/1998/Math/MathML"
      id = ...
    >
    
    527555 instances
    <mfenced
      style = ...
      id = ...
      class = ...
      xmlns = "http://www.w3.org/1998/Math/MathML"
      separators = "|" | "" | "?" | "|,"
      open = "[" | "{" | "|" | "" | "(" | "||" | "?" | "<" | "?" | "?" | "?" | "c" | " " | "¨{¨" | "¨|¨" | "?" | "a" | "]" | "open" | "{{lessthan}}" | "?" | "\"{\"" | ")" | "&#060;" | "¨||¨"
      openclosebrackets = ""
      columnspacing = "200 px;"
      wrs:valign = "middle-baseline" | "middle"
      close = "]" | "}" | "" | "|" | ">" | "||" | "?" | ")" | "?" | "?" | "?" | " " | "¨¨" | "¨|¨" | "?" | "[" | "{{greaterthan}}" | "?" | "\"}\"" | "&#062;" | "¨}¨" | "¨||¨"
      mathcolor = "#??????"
      mathvariant = "bold" | "normal" | "bold-italic"
    >
    
    438269 instances
    <mtd
      columnalign = "left" | "center" | "right"
      class = ...
      columnspan = "1" | "3"
      id = ...
    >
    
    242575 instances
    <msqrt
      dir = "rtl"
      mathcolor = "#??????"
      xmlns = "http://www.w3.org/1998/Math/MathML"
      id = ...
    >
    
    229436 instances
    <mtr
      mathsize = "small"
      columnalign = "left" | "right"
      class = ...
      mathbackground = "#??????"
      id = ...
    >
    
    209278 instances
    <mstyle
      xmlns = "http://www.w3.org/1998/Math/MathML"
      fontweight = "bold"
      indentalign = "left" | "center" | "right"
      mathsize = "? px" | "? pt" | "? em" | "normal" | "? %" | "\"18px\"" | "24" | "18" | "14" | "38" | "8"
      encoding = "LaTeX"
      displaystyle = "true" | "false" | "\"false\"" | "Ã?"falseÃ?"Ã?" | "false''" | ""true"" | "font-family:'Times New Roman' true" | "" | "¨false¨"
      mathvariant = "italic" | "bold" | "normal" | "bold-italic" | "sans-serif" | "fraktur" | "script"
      mathcolor = "#??????" | "red" | "green" | "blue" | "black" | "Black" | "Green" | "DarkGreen"
      denomalign = "center"
      numalign = "center"
      class = ...
      mathbackground = "#??????"
      id = ...
      rowspacing = "? ex"
      scriptsizemultiplier = ".85"
      style = "font-family: 'Euclid Fraktur';font-weight: normal;font-style: normal;" | "line-height: 22.28px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"
      scriptlevel = "0" | "+1" | "-1"
      fontfamily = "Palatino, serif" | "Palatino, serif;" | "serif"
      lineleading = "? ex"
    >
    
    107766 instances
    <mover
      accent = "true" | "false"
      wrs:positionable = "false"
      class = ...
      mathcolor = "#??????"
      mathbackground = "#??????"
      id = ...
      align = "center"
    >
    
    98094 instances
    <mtext
      style = "border-color: black" | "font-size: larger;"
      mathbackground = "#??????"
      id = ...
      dir = "rtl"
      class = ...
      xmlns = "http://www.w3.org/1998/Math/MathML"
      mathsize = "? pt" | "? px"
      xml:lang = "es"
      label = "unit"
      mathcolor = "#??????" | "0d87c5"
      matcholor = "#??????"
      mathvariant = "bold" | "bold-italic" | "double-struck" | "italic" | "normal" | "script"
    >
    
    96791 instances
    <mtable
      columnalign = ...
      mathsize = "? px"
      displaystyle = "true" | "false"
      wrs:columnalign = "relation" | "center center relation" | "relation center left" | "relation relation relation" | "center relation center" | "relation center relation relation" | "relation center relation" | "center relation"
      mathcolor = "#??????"
      columnspacing = ...
      columnlines = ...
      class = ...
      frame = "solid" | "none" | "dashed"
      equalcolumns = "true" | "false"
      rowalign = ...
      id = ...
      width = "? %"
      rowspacing = ...
      align = "center" | "axis" | "right" | "axis 3"
      style = "text-align:axis;" | "" | "text-align: axis;" | "display: block; margin-top: 1.0em; margin-bottom: 2.0em" | "text-align:axis"
      equalrows = "true" | "false"
      fontsize = "? px"
      rowlines = ...
      columnwidth = "auto fit"
    >
    
    55664 instances
    <menclose
      border = "1"
      notation = ...
      class = ...
      mathcolor = "#??????" | "#ff000"
      xmlns = "http://www.w3.org/1998/Math/MathML"
      align = "center"
    >
    
    43909 instances
    <msubsup
      class = ...
      mathcolor = "#??????"
      id = ...
    >
    
    36164 instances
    <mroot
      mathcolor = "#??????"
      xmlns = "http://www.w3.org/1998/Math/MathML"
      id = ...
    >
    
    32125 instances
    <munder
      wrs:positionable = "false"
      underaccent = "false"
      accentunder = "false" | "true"
      class = ...
      mathcolor = "#??????"
      id = ...
    >
    
    26913 instances
    <semantics
      style = "line-height: 22.28px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"
      id = ...
    >
    
    13441 instances
    <mmultiscripts
      mathcolor = "#??????"
    >
    
    13273 instances
    <mprescripts>
    
    12801 instances
    <munderover
      accent = "false"
      accentunder = "false"
      mathcolor = "#??????"
    >
    
    7094 instances
    <msrow>
    
    2781 instances
    <maction
      actiontype = "argument" | "\"argument\"" | "argumentvalue"
      mathcolor = "#??????"
    >
    
    2344 instances
    <msline
      position = "2" | "1" | "3" | "4" | "6"
      length = "2" | "3" | "6" | "5" | "4" | "1" | "14"
      mathcolor = "#??????"
    >
    
    2169 instances
    <mstack
      charspacing = "? px"
      mathcolor = "#??????"
      stackalign = "right"
      charalign = "center"
    >
    
    1446 instances
    <mlongdiv
      longdivstyle = "shortstackedrightright"
      charspacing = "? px"
      mathcolor = "#??????"
      stackalign = "left"
      charalign = "center"
    >
    
    1423 instances
    <msgroup>
    
    883 instances
    <mpadded
      height = "? pt"
      lspace = "- ? px" | "+ ? px"
      voffset = "+ ? px" | "- ? px"
      width = "+ ? pt" | "0"
      voffsett = "- ? em"
      mathcolor = "#??????"
      depth = "? pt"
    >
    
    252 instances
    <maligngroup
      class = ...
    >
    
    197 instances
    <mphantom
      font-style = "normal"
    >
    
    174 instances
    <malignmark>
    
    88 instances
    <mlabeledtr>
    
    49 instances
    <ms
      mathcolor = "#??????"
    >
    
    15 instances
    <merror
      class = ...
    >
    
    4 instances
    <mscarries
      location = "nw" | "s"
    >
    
    3 instances
    <matrixrow>
    
    
  24. NSoiffer commented on Apr 30, 2019

    @NSoiffer
    Contributor
  25. NSoiffer commented on May 6, 2019

    @NSoiffer
    Contributor
  26. NSoiffer commented on May 6, 2019

    @NSoiffer
    Contributor
  27. added
    group admin
    on May 16, 2019
  28. fred-wang commented on May 16, 2019

    @fred-wang

    I had put this on github but I believe it would be really nice to have a better process to collect the replies of the survey, to provide a page to present the results in a consistent way and to allow us to update the questions.

  29. runarberg commented on Dec 29, 2019

    @runarberg

    I’m a bit late in the game here, but I’m the author of Mathup (npm; GitHub)—an authoring library that transforms an AsciiMath-like syntax into MathML. I had pretty much abandoned the project but there are still a few user using it (mostly in their custom browser based notebooks where they are taking on the fly math notes). I revisited the project last month and am planning a complete rewrite. Below are my answers to the survey:

    1. Description: Ascii2MathML—an AsciiMath-like to MathML converter
    2. Native MathML: Yes. See website. Future versions plan to offer a .toString(), .toDOM(), and .toVirtualDOM() options all in MathML.
    3. MathML Elements: annotation, math, menclose, mfenced, mfrac, mi, mn, mo, mover, mroot, mrow, msqrt, msub, msubsup, msup, mtable, mtd mtr, munder, munderover, and semantics.
    4. MathML Attributes: mathvariant, bevelled, veryverythickmathspace.
    5. Attributes on the mstyle Element: None. The tool does not use the mstyle element at all.
    6. Attribute Values: lspace and rspace with a value of veryverythickmathspace.
    7. Trailing/Leading Whitespace in Token Elements: No.

    Note that in my current rewrite I plan to drop deprecated element and attributes (such as mfenced).

  30. davidcarlisle commented on Aug 15, 2022

    @davidcarlisle
    Collaborator

    this survey proved useful, but is now completed, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatibilitygroup admin

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions