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

Upgrade to support Unicode v10.0 #4

Closed
wants to merge 2 commits into from

Conversation

oleg-codaio
Copy link

@oleg-codaio oleg-codaio commented Jun 6, 2017

This PR updates grapheme-breaker to support the new grapheme breaking rules in v10 of Unicode.

Note that as of the time of this PR, v10 has not officially been released yet, but is expected to be later in the month. It may be worthwhile holding off merging this PR until then, although anyone wanting support now can just use @ov/grapheme-breaker in their package.json in the meantime.

There have been a lot of changes in Unicode since v8.0, including the addition of skin tone emoji modifiers and additional emoticons/characters. I tried to maintain the existing API in this package, but TBH the state machine ended up becoming quite complex and perhaps even brittle; rewriting using regexps may be possible, but likely at the expense of performance. That being said, this update passes all the unicode v10 tests as well as the emoji v5 tests.

@devongovett
Copy link
Member

Hey, really sorry this got ignored for so long. The project is now written in ES6 instead of CoffeeScript, so this PR will need to be updated to support that. I'm gonna close it. Feel free to open a new PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants