mapbox / DEPRECATED-mapbox-gl

Issue-only repository for discussion of Mapbox GL (DEPRECATED)
https://www.mapbox.com/mapbox-gl/
21 stars 5 forks source link

Add support for rendering characters from unicode supplementary planes #29

Closed lucaswoj closed 7 years ago

lucaswoj commented 7 years ago

We currently only support rendering characters from the Basic Multilingual Plane. We may need to support supplementary planes as we expand into markets that use non-Latin alphabets.

https://en.wikipedia.org/wiki/CJK_Unified_Ideographs#CJK_Unified_Ideographs_Extension_E notes that 98 of those characters come from “Chinese Academy of Surveying and Mapping ideographs”, so they probably will be cropping up in OSM eventually. -- @1ec5

1ec5 commented 7 years ago

I’m satisfied that the CJK Unified Ideographs Extension E characters will take awhile to make their way into OpenStreetMap, given that the block was only introduced to Unicode last year. However, note that the same work that goes into CJK E would also enable (colorless) emoji. Hopefully that’ll give this issue a bit more traction. 😉

1ec5 commented 7 years ago

My mistake: CJK E isn’t the only CJK block that’s in the Supplementary Ideographic Plane; CJK Unified Ideographs Extension B–D are also up there. Besides historical and Vietnamese characters, CJK B includes 1,702 characters from the Hong Kong Supplementary Character Set, which apparently includes a lot of Cantonese characters used in official Hong Kong place names.

1ec5 commented 7 years ago

As of Unicode 9.0, the following astral-plane blocks allow ideographic breaking:

As of Unicode 9.0 and revision 16 of UTR #50, the following astral-plane blocks have upright vertical orientation:

The following astral-plane blocks have neutral vertical orientation:

lucaswoj commented 7 years ago

Migrated to https://github.com/mapbox/mapbox-gl-js/issues/4001