maplibre / maplibre-native

MapLibre Native - Interactive vector tile maps for iOS, Android and other platforms.
https://maplibre.org
BSD 2-Clause "Simplified" License
925 stars 280 forks source link

Allow breaking before left parenthesis, not after #2448

Open louwers opened 1 month ago

louwers commented 1 month ago

Some people and some organisations don't put a whitespace before a left parenthesis. Currently Maplibre only breaks after a left parenthesis, not before. This will put the left parenthesis at the end of the line.

You can notice this problem for example in "Freiburg(Breisgau) Hbf" which is the official station name

https://github.com/maplibre/maplibre-gl-js/pull/4138

I committed the render tests on my fork: https://github.com/louwers/maplibre-native/tree/text-breaking-left-paren

image