Page MenuHomePhabricator

deny the use of empty math in texvcjs
Closed, DeclinedPublic


Currently the math extension assumes, that everything that is valid tex, i.e. status code '+' from texvcjs can be rendered.
However, in T134652 a case was discoverer, where this assumption is not true. Thus the exception message form the Math extension is inaccurate in that case.

Make empty input return status code 'S' rather than '' and return a reasonable error string (empty math input not allowed).

Event Timeline

Restricted Application added subscribers: Zppix, Aklapper. · View Herald TranscriptMay 19 2016, 3:18 PM
Physikerwelt triaged this task as Medium priority.May 19 2016, 3:18 PM
Physikerwelt updated the task description. (Show Details)Mar 3 2018, 10:54 AM
Physikerwelt moved this task from Backlog to ready to go on the Texvcjs board.
TheDJ renamed this task from deny the use of empty math in tevcjs to deny the use of empty math in texvcjs.Apr 4 2018, 2:11 PM
Physikerwelt removed Physikerwelt as the assignee of this task.Dec 2 2018, 5:18 PM
Pkra moved this task from Incoming to texvc on the Math board.Dec 7 2018, 11:15 AM
Physikerwelt closed this task as Declined.Mar 21 2020, 6:42 PM

I honestly don't know how to implement that. It would require a new logic layer within texvcjs to detect which output is empty or only spaces respectively. Mathoid has not a problem with empty math tags. It generates MathML elements with an empty mrow. The SVG is also empty. I guess we are now in a position where we can accept empty math tags. I guess we should rather add tests to ensure that empty math tags generate empty output rather than to try to detect all input that could be used to generate empty math tags.

Aklapper moved this task from texvc to Incoming on the Math board.Jun 24 2020, 5:32 AM