mapbox / mapbox-gl-js

Interactive, thoroughly customizable maps in the browser, powered by vector tiles and WebGL
https://docs.mapbox.com/mapbox-gl-js/
Other
11.2k stars 2.22k forks source link

Support titlecase in text-transform #6498

Open stevage opened 6 years ago

stevage commented 6 years ago

It would be very useful in some cases to be able to transform label values from upper case to title case. It seems this was considered in the original proposal for text-transform (#149) but wasn't implemented for some reason.

Obviously titlecase/sentence case have some complexities to get right in different languages, but even a naive "uppercase the first letter of every word" would be pretty useful.

anandthakker commented 6 years ago

Given the language-sensitive nature of this type of transform, would there be an advantage to providing this functionality through an expression, so that it could make use of the work happening in #6270 ?

andrewharvey commented 6 years ago

Wonder if this could/should be backed by https://github.com/mapbox/title-case :thinking:

yuletide commented 1 year ago

Ran into this again today, would be very useful