Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

[general] rendering "(" and ")" incorrectly in text with both RTL and LTR character #2946

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments

Comments

@openstreetmap-trac
Copy link

Reporter: mesgary[at]gmail.com
[Submitted to the original trac issue database at 6.03am, Sunday, 9th May 2010]

Search for Iran (country) in OSM and you can find its name in Persian (it is ) and you can see two parentheses are rendered incorrectly. They are swaped.[[BR]]
You can check this link also and find the name of the country in the middle:[[BR]]
http://www.openstreetmap.org/?lat=33&lon=52.9&zoom=5&layers=B000FTF

It is written as

)Iran( 

while it should be

(Iran) 
@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 4.22pm, Sunday, 9th May 2010]

I suspect this is basically the same problem as #1515 which is also mapnik ticket 189 (http://trac.mapnik.org/ticket/189). The underlying issue is basically that mapnik processes the text one character at a time rather than as a single string.

@openstreetmap-trac
Copy link
Author

Author: mesgary[at]gmail.com
[Added to the original trac issue at 6.23pm, Sunday, 9th May 2010]

I am not sure, may be you are right.[[BR]]
But I think this problem is happening because when it reaches to the first parenthesis, it doesn't switch between RTL and LTR as the next character is LTR and the last character (before space) is RTL.

@openstreetmap-trac
Copy link
Author

Author: math1985
[Added to the original trac issue at 3.06pm, Friday, 1st August 2014]

We don't use brackets anymore for international names but the int_name tag instead, so I consider this fixed.

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

No branches or pull requests

1 participant