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

Support for Unicode Emoji Sets (UTS#51) #48

Closed
cometkim opened this issue Jul 4, 2024 · 2 comments
Closed

Support for Unicode Emoji Sets (UTS#51) #48

cometkim opened this issue Jul 4, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@cometkim
Copy link
Owner

cometkim commented Jul 4, 2024

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicodeSets
https://www.unicode.org/reports/tr51/#Emoji_Sets

Technically this isn't part of the Unicode Segmentation, but examining the sequence of a specific emoji segment is one of the essential combinations.

for example to resolve matrix-org/matrix-react-sdk#12582

@cometkim cometkim added the enhancement New feature or request label Jul 4, 2024
@cometkim cometkim changed the title Support for Unicode Emoji Sets (TR#51) Support for Unicode Emoji Sets (UTS#51) Jul 4, 2024
@cometkim
Copy link
Owner Author

cometkim commented Jul 4, 2024

New matcher APIs to unicode-segmenter/emoji

  • isBasicEmoji -> \p{Basic_Emoji}
  • isRGIEmoji -> \p{RGI_Emoji}

It will do #40 first as this needs to script change.

@cometkim
Copy link
Owner Author

cometkim commented Nov 2, 2024

This is out-of-scope of this library due to it's different specification and behavior

I will move this work to another library

@cometkim cometkim closed this as not planned Won't fix, can't repro, duplicate, stale Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant