You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rendering of the full Vietnamese names of places and streets (containing all Vietnamese diacritics, name:nonlatin) is faulty. Usually only a couple of vowels are displayed. This seems to be unrelated to the actual font used and more a problem with the data itself (the issues manifests itself on any map demonstrated on the openmaptiles.org website).
For example, curl 'https://maps.tilehosting.com/data/v3/11/1625/900.pbf?key=alS7XjesrAd6uvek9nRE' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36' -H 'Origin: https://openmaptiles.org' --compressed returns a tile for the capital Hanoi, but the PBF contains name:nonlatin �ộ��. @ChrisLoer confirmed this is not a problem with the rendering engine (mapbox-gl-js), in mapbox/mapbox-gl-js#6939.
Demonstration
Expected Behavior
Any Vietnamese name is rendered correctly. For example, the two biggest cities should be rendered HÀ NỘI and THÀNH PHỐ HỒ CHÍ MINH.
Actual Behavior
Most Vietnamese names are rendered inadequately. For example, for the two biggest cities the map shows “Ộ” and “Ố Ồ”...
The text was updated successfully, but these errors were encountered:
I'm not sure why the is_latin check appears to be false, because all of those characters appear to be covered in the check code -- are those ranges actually specified correctly (e.g. not sure how that substring function works, is it working with UTF-16? Using "ascii" for the variable name there is confusing).
Aside from fixing the is_latin check, probably the remove_latin code should use the same character range logic for identifying Latin, instead of the "unnaccent -> a-Z" approach which misses characters like ộ.
There is a consequence. Some new diacritics will be encoded into name:latin, e.g. the special "O" letters in Hanoi name. As these letters are rendered well using common fonts, I consider it to be correct behavior.
The rendering of the full Vietnamese names of places and streets (containing all Vietnamese diacritics,
name:nonlatin
) is faulty. Usually only a couple of vowels are displayed. This seems to be unrelated to the actual font used and more a problem with the data itself (the issues manifests itself on any map demonstrated on the openmaptiles.org website).For example,
curl 'https://maps.tilehosting.com/data/v3/11/1625/900.pbf?key=alS7XjesrAd6uvek9nRE' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36' -H 'Origin: https://openmaptiles.org' --compressed
returns a tile for the capital Hanoi, but the PBF containsname:nonlatin �ộ��
. @ChrisLoer confirmed this is not a problem with the rendering engine (mapbox-gl-js), in mapbox/mapbox-gl-js#6939.Demonstration
Expected Behavior
Any Vietnamese name is rendered correctly. For example, the two biggest cities should be rendered HÀ NỘI and THÀNH PHỐ HỒ CHÍ MINH.
Actual Behavior
Most Vietnamese names are rendered inadequately. For example, for the two biggest cities the map shows “Ộ” and “Ố Ồ”...
The text was updated successfully, but these errors were encountered: