-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
RTL language (right justification) support #861
Comments
I personally use English as my system language but my native tongue is RTL (Hebrew) so I can answer some of your questions.
Like people said in #658, I don't think automatically detecting it is a good idea. If niri itself eventually supports localization it makes sense to follow that, but imo detecting it based on the system will confuse users not aware of the feature's existence.
Yes - text editing will often includes mixed RTL and LTR, the way this works by default (i.e. html
I would imagine they would need to be flipped because the representation of columns should remain the same, but now e.g. right means decreasing the index instead of increasing it. Edit: I think this will also work quite well with #757, keeping |
Why not? If they have system language set to Hebrew for instance, GNOME and all GTK apps will be flipped automatically, and probably other apps too. Would make sense for niri to default to right-justified imo.
This makes sense. I also got feedback on Matrix that in VSCode Home will go to the logical start of an RTL line, so to the right. Which also makes sense.
That is a good point. But it's from a code perspective, and I was asking about the UX perspective.
Hm, well that can be a separate feature request. |
Also see discussion: #658
RTL languages like Arabic expect the visual layout to be mirrored horizontally somewhat. In case of niri, there isn't much layout to mirror: mainly we need right justification where windows instead of spawning and tending to the left, spawn and tend to the right side of the screen.
This is generally useful outside RTL languages, so maybe it could be a setting on its own, but RTL languages should turn it on by default.
Our navigation keys (e.g. focus-column-left, focus-column-right) are for the most part directional so they shouldn't need any special changes. Though, I'm not sure about focus-column-first and focus-column-last. What do text editors do when you hit Home and End on RTL? Does Home go to the start of the line (on the right)?
For determining whether the current language is RTL, here's what GTK does: https://gitlab.gnome.org/GNOME/gtk/-/blob/72718b719387d15a29bf4524bc721eec490b357e/gtk/gtkmain.c#L774
Finally, we'll also need to mirror the table in Important Hotkeys. (But maybe not until we actually have translations?) I can't think of anything else right away.
The text was updated successfully, but these errors were encountered: