-
Notifications
You must be signed in to change notification settings - Fork 7
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
Arabic RTL isn't displaying \hat{u} correctly when part of an equation #28
Comments
Thanks @jonhaddow. The behavior indeed looks buggy and it's not intended. My guess is that I never intended to support Would you mind sharing more about the test case and how do you think a correct fix should be? |
I'm not too familiar with how the character should be represented, however I would expect both equations to display the same. I also haven't reviewed the library much but would like to think that if all equations are flipped at the top level wrapping element then we probably don't need to flip each character as well. Is there a way to prevent the horizontal flip for this particular symbol at the character level? |
I think it should either be flipped, or not flipped at all. My suggestion is to provide custom mapping to map
Before reviewing the library, I'd recommend looking at the test cases to understand both capabilities and limits of the library:
I honestly forgot. It's been a very long time since I've written this library. However, if you're really determined, you could use the following low-level
It seems to be working well on both HTML-CSS and Common-HTML outputs. |
When displaying in Arabic, the following equation renders the
\hat{u}
on the right side but the character isn't inverted.However the equation
\[ \hat{u} \]
is the inverted character.I believe this is due to the
mfliph
being applied on multiple layers on the first example.CodePen: https://codepen.io/jonhaddow/pen/yLoqRxy
The text was updated successfully, but these errors were encountered: