-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add RTL support #88
Comments
Thanks for your request. I am not familiar with RTL languages (my mother tongue is German). Is this "only" an aligning problem, or is it also necessary to mirror the menu items (the underlying Python strings) before they are displayed? |
Great question, thank you :) Well, in the Archinstall script, for example, you would see something like:
The title is aligned to the left according to the beginning of the line in English.
Regarding the order of the letters internally, that's another problem; Hebrew strings are sorted in arrays the same way English or Latin strings would; the difference is the "directionality" of the individual character, which is usually handled by the display that renders those (Pango\HarfBuzz\etc.) Some terminal emulators support RTL natively, so the main problem is usually the Linux kernel terminal. There is an open proposal to implement RTL as a first-class citizen in the Linux kernel terminal, but I haven't seen any intentions to follow it over the past couple of years. Herzlichen Dank! |
Some projects using this library have been translated into RTL languages like Arabic, Urdu, and Hebrew.
The menus should support aligning to the right instead of the left to make the user interface more suitable for RTL users.
Example of a menu:
The text was updated successfully, but these errors were encountered: