Open lucaswoj opened 7 years ago
As of Unicode 10.0, the following astral-plane blocks also allow ideographic breaking:
Revision 17 of UTR #50 still reflects Unicode 9, but presumably the following astral-plane blocks also allow upright vertical orientation:
/cc @ChrisLoer
OpenStreetMap does have CJK Unified Ideographs B–F characters in a number of features’ name
or name:zh
tags, which wind up in the Mapbox Streets source’s {name}
or {name_zh}
fields, respectively:
admin_level=9
boundary relation excluded from Streetsadmin_level=6
boundary relations excluded from StreetsThere are also plenty of Cantonese place names are in name:zh-yue
tags, but the Mapbox Streets source omits them because it lacks dedicated support for Cantonese.
GL JS skips over any supplementary-plane character, rather than leaving a space or replacement character. For example “卡司𥰆拉樂園” is rendered as “卡司拉樂園”, even with the demo in #4895. In principle, this could lead to some unfortunate labels.
/cc @ajashton @jcsg
The analysis in https://github.com/mapbox/mapbox-gl-js/issues/4001#issuecomment-312393003 mostly covered Chinese labels. Since then, Mapbox Streets has added support for Japanese names. Currently, OpenStreetMap has 11 features in Japan with unsupported characters in Japanese names: 3 buildings, 2 restaurants, 1 pond, 1 memorial, 1 shrine, and 1 supermarket.
As of Unicode 12.1, the following astral-plane blocks also allow ideographic breaking:
The following astral-plane blocks have upright vertical orientation:
Migrated from https://github.com/mapbox/DEPRECATED-mapbox-gl/issues/29