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

Fix bidi layout #49

Merged
merged 2 commits into from
Dec 2, 2022
Merged

Fix bidi layout #49

merged 2 commits into from
Dec 2, 2022

Conversation

hojjatabdollahi
Copy link
Contributor

@hojjatabdollahi hojjatabdollahi commented Dec 2, 2022

This closes #37 .

Current implementation of Cosmic-text uses a simple method which doesn't support embedded bidirectional text and especially Arabic numbers.

This PR uses the BiDi algorithm (implemented in unicode_bidi ).

Needs more testing and cleaning up the previous algorithm.
and disabled `wrap simple` since it's not working properly.
@jackpot51 jackpot51 merged commit cd64388 into pop-os:main Dec 2, 2022
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.

Numbers inside of a mixed RTL/LTR line cause issues with the layout
2 participants