Page MenuHomePhabricator

Generate and Update Reference MathML for the current Tests
Closed, ResolvedPublic

Description

Some tests already have reference "Lookup"-Files with MathJax (from Latest MathJax)-MathML currently.

  • Create Reference Lookups with the Mathoid(MathJax) which is currently used and also with LaTeXML.
  • Make these reference lookups selectable in the tests.
  • (optional) If obtaining reference lookup is scriptable, create a maintenance script can update the lookups from time to time.
  • Keep in mind, that the reference lookups also might be used for full-coverage test.

Why are there several different sources for our reference MathML:

  • to make a research evaluation

Event Timeline

For creating the mathml again, the MathSearch extension can be used. The Tex is in difference to FullCoverage-Wikitext the input tex is defined in JSON mostly, ParserTest135.json and TexUtilMMLLookup.json can be used to generation in a new maintenance script in MathSearch-extension .

Another way:
write new maintenance script for Math-extension which reads json (with tex inputs) and generates json (with tex and corresponding mathml). (Edit: done this way)

Change 883971 had a related patch set uploaded (by Stegmujo; author: Stegmujo):

[mediawiki/extensions/Math@master] Add script to export json with Mathoid/latexml-MML reference

https://gerrit.wikimedia.org/r/883971

Change 883900 had a related patch set uploaded (by Stegmujo; author: Stegmujo):

[mediawiki/extensions/Math@master] New lookups for tests enabling reference MathML

https://gerrit.wikimedia.org/r/883900

FYI, you can upload changes via git review -w to avoid people, and bugs being notified.

Change 883971 merged by jenkins-bot:

[mediawiki/extensions/Math@master] Add script to export json with Mathoid/latexml-MML reference

https://gerrit.wikimedia.org/r/883971

Change 883900 merged by jenkins-bot:

[mediawiki/extensions/Math@master] New lookups for tests enabling reference MathML

https://gerrit.wikimedia.org/r/883900

Change 886096 had a related patch set uploaded (by Stegmujo; author: Stegmujo):

[mediawiki/extensions/Math@master] Add New TexUtil-Reference which also has Chem

https://gerrit.wikimedia.org/r/886096

Change 886096 merged by jenkins-bot:

[mediawiki/extensions/Math@master] Add New TexUtil-Reference which also has Chem

https://gerrit.wikimedia.org/r/886096