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

Allow effective searching for flags and other zwj-joined symbols #36

Open
antifuchs opened this issue Mar 16, 2020 · 1 comment
Open

Comments

@antifuchs
Copy link
Collaborator

antifuchs commented Mar 16, 2020

Turns out we can't find, e.g., the transgender flag (new in unicode 13!) - its codepoints are

U+1F3F3
U+FE0F
U+200D
U+26A7
U+FE0F

...meaning we can only find the constituent codepoints, but not the whole. That's a problem for all kinds of flags, family configurations and other glyphs composed of multiple codepoints.

The sequences have names, so we ought to be able to retrieve them.

@antifuchs
Copy link
Collaborator Author

There's a list of unicode emojis and emoji zwj sequences here:

https://www.unicode.org/Public/emoji/13.0/emoji-sequences.txt and https://www.unicode.org/Public/emoji/13.0/emoji-zwj-sequences.txt - I imagine we have to integrate this in chars_data as a separate data set.

I think the internal character representation will have to grow into an enum (or get another variant with the sequence representation) - with adjusted display functions to go with it.

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

No branches or pull requests

1 participant