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

Math in RTL #621

Closed
tom-programming opened this issue Feb 2, 2021 · 5 comments
Closed

Math in RTL #621

tom-programming opened this issue Feb 2, 2021 · 5 comments
Labels
Milestone

Comments

@tom-programming
Copy link
Contributor

When you write math notation in RTL mode the direction should be LTR. There is a case use for mirrored notation (used in Arabic classrooms for example), but since KaTeX cannot output mirrored symbols anyway and most Arabic/Hebrew/Farsi/Urdu speakers write math in the Latin script from left to right, the equation mode should be entirely from left to right.

As it is now, if you write a^2 the "2" will be displayed on the left of the "a". It should be the opposite.

Probably it can be done with a rule like

span.__se__katex.katex * {
    direction: ltr;
}
@JiHong88 JiHong88 added the bug label Feb 3, 2021
@JiHong88 JiHong88 added this to the 2.36.2 milestone Feb 3, 2021
JiHong88 added a commit that referenced this issue Feb 15, 2021
JiHong88 added a commit that referenced this issue Feb 18, 2021
@JiHong88
Copy link
Owner

The 2.36.2 version has been updated.
If this issue has not been resolved, please reopen this issue.
Thank you.

@tom-programming
Copy link
Contributor Author

The issue persists. I suspect that the fixes in the CSS do not address the elements inside the katex containers (i.e. with a " *" selector) so it remains rtl

@JiHong88 JiHong88 reopened this Feb 22, 2021
@JiHong88 JiHong88 modified the milestones: 2.36.2, 2.36.5 Feb 22, 2021
JiHong88 added a commit that referenced this issue Feb 26, 2021
@JiHong88
Copy link
Owner

JiHong88 commented Mar 5, 2021

The 2.36.5 version has been updated.
If this issue has not been resolved, please reopen this issue.
Thank you.

@tom-programming
Copy link
Contributor Author

It is resolved in the editor itself. But the behavior persists in the formula editor.

@JiHong88 JiHong88 modified the milestones: 2.36.5, 2.37.0 Mar 9, 2021
JiHong88 added a commit that referenced this issue Mar 9, 2021
@JiHong88
Copy link
Owner

The 2.37.0 version has been updated.
If this issue has not been resolved, please reopen this issue.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants