-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Top of Non-English Characters are clipped #168
Comments
The issue here is that the accented characters that you are using are created from a base character with combining diacritical marks. That is, "พื้" is actually a three-character sequence "U+0E1E U+0E37 U+0E49". MathJax treats each of these as a separate character, and tries to make a separate Your use of I will see what I can come up with for the future, but for now, the use of Davide |
I forgot to say: the characters aren't clipped. The actual result is that only the base character (the first of the three) is being displayed, because the other two are accents and your browser won't render them if they appear by themselves in their own |
Thank you for your support. I tested in Chrome 13 on Windows 7. The result in MathJaxBug02.png for Mathjax is clipped a little at the top of characters. I've tried to modify function placeBox to not clip but it works only in Firefox. Anyway, the use of "\text{}" is a work around solution for me. |
Sorry, I didn't see the clipping (I'm not familiary with the characters, and so didn't notice the missing pixels). The reason is that MathJax doesn't know the dimensions of the character that you are using, and can't readily determine that itself. It assumes the same height as the main font that it is using (which isn't tall enough in this case). The solution is to add some extra space to the fraction "by hand". Try adding
If not, we can define a larger strut. Davide |
Closing this as a duplicate of #474 (even though it should be the other way around, I suppose, but that's where we made progresso n this.) and expected behavior (clipping of unknown characters). |
When I use latex
"[\frac{พื้นที่\Delta ABC}{พื้นที่\Delta DEF}]" or
"[\frac{\text{พื้นที่}\Delta ABC}{\text{พื้นที่}\Delta DEF}]" in jsMath,
jsMath displays result as I expect.
But when I try to use Mathjax, Top of Non-English characters are clipped as screenshot below
http://www.mathcenter.net/temp/MathjaxBug01.png
http://www.mathcenter.net/temp/MathjaxBug02.png
The text was updated successfully, but these errors were encountered: