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

RTL is reversed #213

Open
yarons opened this issue Dec 20, 2022 · 5 comments
Open

RTL is reversed #213

yarons opened this issue Dec 20, 2022 · 5 comments

Comments

@yarons
Copy link

yarons commented Dec 20, 2022

Both Hebrew and Arabic appear in reverse order, example:
Original term: Hello.
Displayed term: olleH.

@webprofusion-chrisc
Copy link
Member

Is this for https://map.openchargemap.io or something on the openchargemap.org website?

Localisation issues are specific to the app: openchargemap/ocm-app#35

@yarons
Copy link
Author

yarons commented Apr 26, 2023

This is map related, both Arabic and Hebrew names (probably other RTL languages too) are rendered in reverse, it has nothing to do with localization.

@webprofusion-chrisc
Copy link
Member

Thanks can you provide a screenshot of the problem? It depends whether the label displayed is on the map itself (provided by Mapbox) or in a user interface element (which we can influence).

@yarons
Copy link
Author

yarons commented Apr 27, 2023

image
The one on the right should be: ملعب كرة القدم (Soccer playground)
The one on the left should be: مقبرة جـسـر الزرقاء (Jisr A-zarqa cemetery)

image
This one should be: מנהל חינוך עיריית נתניה (Educational Administration for Netanya Municipality)

I'm not sure which engine renders the names but it's reversing the text.
Edit: Arabic, as opposed to Hebrew is conjoined so the letters appear differently depending on certain environment conditions, in this case, since the rendering is wrong, the conjoining algorithm is not applied leading to completely separate characters in addition to reversing the character order.

@webprofusion-chrisc
Copy link
Member

Thanks this is the Mapbox code that's rendering that. It looks like they have a special plugin for RTL https://docs.mapbox.com/mapbox-gl-js/example/mapbox-gl-rtl-text/ so I'll look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants