Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break lines on com­mon­ly un­spaced punc­tu­a­tion #1617

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Oct 13, 2015

This PR breaks lines in labels on commonly unspaced punctuation, par­ti­cu­lar­ly hy­phens (important in French-speaking regions) and soft hy­phens (important in Welsh, Thai, and Māori-speaking regions). The improved wrapping also seems to fix quite a few label collisions.

Before:
before

After:
after

This is a port of mapbox/mapbox-gl-native#2598 that fixes #1115.

/cc @peterqliu

Par­ti­cu­lar­ly hy­phens and soft hy­phens.

Fixes #1115.
@mourner
Copy link
Member

mourner commented Oct 13, 2015

Love this, looks good to me.

@1ec5 1ec5 merged commit 53b81da into master Oct 13, 2015
@1ec5 1ec5 deleted the 1ec5-taumata­whakatangi­hanga­koauau­o­tamatea­turi­pukaka­piki­maunga­horo­nuku­pokai­when­ua­ki­tana­tahu-1115 branch October 13, 2015 19:09
@1ec5 1ec5 removed the in progress label Oct 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

enable line breaks after hyphens
2 participants