Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG output generating invalid SVG when using `  `, e.g., in`\liminf` #898

Closed
pkra opened this issue Aug 27, 2014 · 4 comments

Comments

Projects
None yet
2 participants
@pkra
Copy link
Member

commented Aug 27, 2014

First reported at mathjax/MathJax-node#6:

  • Converting TeX input \liminf to SVG will contain<text transform="scale(53.81925) matrix(1 0 0 -1 0 0)" stroke="none" font-weight="" font-style="" font-family="STIXGeneral,'Arial Unicode MS',serif"> </text> which is invalid since font-weight and font-style are empty.
  • Removing the empty attributes fixes this.

IIUC, the problem is that converting TeX input \liminf to MathML produces u+2006 which is not covered by the MathJax TeX fonts (at least according to the error message of the SVG output) but also (in the output) not converted into characters that are covered. In turn, this unknown characters is causing the text tag.

E.g., $a &#x2006; b$ also produces the problem.

@pkra pkra added this to the Next Release milestone Aug 27, 2014

@pkra pkra added the Accepted label Aug 27, 2014

@dpvc

This comment has been minimized.

Copy link
Member

commented Aug 31, 2014

The font tables should be augmented to include more of the space characters in the General Punctuation Unicode block. There is already code in place to handle space characters without needing paths.

@dpvc

This comment has been minimized.

Copy link
Member

commented Sep 3, 2014

I've added the data for the space characters to the MathJax font. This still needs to be added to the other web fonts (but I think that can wait until the font release that fixes a number of other problems with the web fonts).

@dpvc

This comment has been minimized.

Copy link
Member

commented Sep 4, 2014

==> Merged.

@dpvc dpvc added Merged and removed Ready for Review labels Sep 4, 2014

@dpvc dpvc closed this Sep 4, 2014

@pkra pkra self-assigned this Jan 15, 2015

pkra added a commit to mathjax/MathJax-test that referenced this issue Jan 20, 2015

add test for mathjax/MathJax#898 check SVG output supports space char…
…acters; check SVG output creates only non-emtpy font-style and font-weigth attributes

dpvc pushed a commit to mathjax/MathJax-test that referenced this issue Jan 21, 2015

@dpvc dpvc added Test Available and removed Test Needed labels Jan 21, 2015

@dpvc

This comment has been minimized.

Copy link
Member

commented Jan 21, 2015

==> In Testsuite

MathMLToDisplay/Characters/issue898-1.html
MathMLToDisplay/Characters/issue898-2.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.