Oliver Wipfli
Oliver Wipfli
Chinese is actually an interesting case, because there quite a lot of entries in osm: * 1 520 666, [name:zh](https://taginfo.openstreetmap.org/keys/name%3Azh) * 372 153, [name:zh-Hant](https://taginfo.openstreetmap.org/keys/name%3Azh-Hant) * 179 410, [name:zh-Hans](https://taginfo.openstreetmap.org/keys/name%3Azh-Hans) * 80 ...
Here is a list of all OSM `name` tag values that use more than one script: [LINK](https://github.com/wipfli/multi-script-names/blob/main/out.txt) (15 MB). It has something like 500k entries.
Update: The assumption that we have a database where the `name` tag always contains only one script is wrong. For example names in Morocco come often in 3 scripts: Latin,...
The rule proposed here are roughly implemented in this demo: https://wipfli.github.io/maplibre-feature-properties-transform-example/language?script=Latin&language=en#map=8/38/24 
Hong Kong is an interesting example because there are two languages (English, Chinese) and two scripts (Latin, Han). Let us assume for a moment that we have a database where...
Thanks for your questions @nvkelso. Country labels should appear only in the target language. For example, if the target language is French, then the country labels should be "Allemagne", "Suisse",...
Thanks for asking! With the current tiles we have information in the `pmap:script` tag about the script used in the `name` tag. Here are some examples: - Athens: - `name...
I did some java prototyping for splitting the `name` tag into segments with different scripts. Here is the result (1.6 MB): https://github.com/wipfli/multi-script-names/blob/main/list.txt Overall I am quite happy with this segmentation....
Regarding the entries that use 3 scripts, we have - TIFINAGH: 2029 - MONGOLIAN: 98 - ETHIOPIC: 84 Now do we want to support the languages that use these scripts?...
I made some tiles with segmented name tags. Here is a demo using MapLibre GL JS v4.5.0 with a style localized to Arabic: ## Morocco https://pub-cf7f11e26ace447db8f7215b61ac0eae.r2.dev/segment.html#map=8.87/33.7469/-7.1911  Note how Arabic...