You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Definitely needs some testing, but I think this simplification is worth it (if it works). If it works, in the long run maybe it could go to pgf, as this only sets the direction of two boxes explicitly to LTR, and restore directions in \pgfinterruptpicture (these directions could be saved before the picture).
@Udi-Fogiel After reading your code, I realized you are assuming \bbl@thetextdir takes only 2 values: 0 for LTR and 1 for RTL. In fact, it takes 3 values, which are the Unicode directions l (0), r (1) and al (2). Perhaps by fixing this, it will work.
@Udi-Fogiel After reading your code, I realized you are assuming \bbl@thetextdir takes only 2 values: 0 for LTR and 1 for RTL. In fact, it takes 3 values, which are the Unicode directions l (0), r (1) and al (2). Perhaps by fixing this, it will work.
Oh, so should the \ifcase code used in other places be used here as well? I see.. Do you want me to push a commit or can you test on your local setup?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Definitely needs some testing, but I think this simplification is worth it (if it works). If it works, in the long run maybe it could go to pgf, as this only sets the direction of two boxes explicitly to LTR, and restore directions in
\pgfinterruptpicture(these directions could be saved before the picture).