Skip to content

Comments

simplify patches for pgf/tikz#400

Open
Udi-Fogiel wants to merge 1 commit intolatex3:mainfrom
Udi-Fogiel:graphics
Open

simplify patches for pgf/tikz#400
Udi-Fogiel wants to merge 1 commit intolatex3:mainfrom
Udi-Fogiel:graphics

Conversation

@Udi-Fogiel
Copy link
Contributor

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).

@jbezos
Copy link
Contributor

jbezos commented Feb 17, 2026

I’ve run some tests and, sadly, this patch breaks them.

@Udi-Fogiel
Copy link
Contributor Author

Can you provide and example?

@jbezos
Copy link
Contributor

jbezos commented Feb 17, 2026

@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
Copy link
Contributor Author

@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?

@jbezos
Copy link
Contributor

jbezos commented Feb 17, 2026

I'll do some tests myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants