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

[PROBLEM] Text Directionality Issue in Mixed RTL (Right-to-Left) and LTR (Left-to-Right) Languages #1391

Open
Tracked by #1392
0xMoochan opened this issue Aug 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@0xMoochan
Copy link

Description:
When using mixed RTL languages (e.g., Persian/Arabic) and LTR languages (e.g., English), text directionality becomes problematic. Sentences that begin with LTR text cause the entire sentence, including RTL portions, to be left-aligned, disrupting structure and readability. This affects the user experience, making it difficult for those writing in RTL languages to have correctly aligned text.

Steps to Reproduce:
Start a sentence with English text.
Continue the sentence with Persian/Arabic text.
Notice the misalignment of RTL text within the sentence.

Expected Behavior:
Text should respect its natural directionality. If a sentence starts in RTL, the alignment should default to right-aligned, ensuring consistency throughout.

Suggestion:
Implement automatic detection for RTL and LTR languages and adjust text direction accordingly.

@0xMoochan 0xMoochan added the bug Something isn't working label Aug 23, 2024
@QWolfp3 QWolfp3 mentioned this issue Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant