-
-
Notifications
You must be signed in to change notification settings - Fork 717
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 support #220
Comments
I would definitely like to see the RTL plugin be included by default (or some other variant), but I haven't looked into it deeper. Could you elaborate about how it breaks? |
I'm using Hebrew for a long time with mapbox and now with maplibre. As a side note, I don't think the first paragraph is in place, especially without checking who's maintaining this library first... As a Hebrew speaker, code writer and site owner I can't say I wasn't offended a bit... :-( |
Thanks for the quick responses! It's a very heartening demonstration of the maintainers' committment to inclusive design. Here's a quick very basic example: https://codepen.io/majdal/pen/jOmGjVq All the place labels are rendered left to right. For example, Damascus, which should be written as دمشق is rendered as ق ش د م, making it basically completely illegible. The screenshot below shows it. Fixing this is already a win. As for the custom fonts, I'll have to dig a bit further into how Mapbox Studio serves the fonts, because previously I had only used it through the GUI. It seems like I might have to play with the glyphs style specification? But to demonstrate, I'm using the libre font Cairo to render the labels in the second screenshot (from Mapbox Studio). The word القدس (Jerusalem) has three segments in Arabic. The first and last segment are rendered in the default font, while the middle segment is rendered with the Cairo custom font. P.S. Funnily enough, Github is rendering the above two paragraphs that contain bidirectional content as right-to-left, even though they're mostly left-to-right. A small window into what the web feels like to RTL language speakers 😅 |
I haven't seen the usage of mapbox-gl-rtl-text |
Any updates on this? Can I close this issue? |
Hi Harel - Please don't close the issue. I'll update the example ASAP.
…On Sun, 29 Aug 2021 at 08:42, Harel M ***@***.***> wrote:
Any updates on this? Can I close this issue?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#220 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACX46RYMUTUSHGCXO3YJBLT7ITMHANCNFSM5A2NW2FA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 30 days with no activity. |
@HarelM this issue still persists. Hebrew text is rendered in a wrong direction, even with the default font! |
@yeegor-restrata not reading the documentation is the issue here, not the code, sorry... You need to add the RTL plugin and use a font with Hebrew characters. |
Motivation
Currently, languages that use a right-to-left script, such as Arabic and Hebrew, are rendered left-to-right. This is a classic problem (see notarabic.com), but it would be heartening if the commitment to Libre also included a commitment to inclusive design.
Design Alternatives
Mapbox-gl-rtl-text has an (incomplete) fix to this issue. It works well for the default fonts, but breaks when using custom fonts.
I don't have the technical skills to think of specific implementation solutions, but I'm happy to discuss and help conceptualizing it with whomever would be able to help.
The text was updated successfully, but these errors were encountered: