-
Notifications
You must be signed in to change notification settings - Fork 23
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
Reverse lookup emoji name #24
Comments
I worked around this problem by converting the |
Can you tell me more about your exact use case? Usually people use "friendlier" names than the official unicode names, like face_palm or lol, etc. |
The names in this repo are a bit friendlier than that, like My immediate use case is a temporary one: I'm working with emojis, but in an environment where I can't easily display them. I still want to know what they are, so I convert them to their name so I can print them. |
Oh I think I misunderstood your definition of friendly. In my case, I want it to be accurate, but I agree, the verbose names from Unicode aren't really commonly used. And especially for emoji that have a common interpretation in popular culture, but where Unicode is more literal. Since this can be worked around, I don't think this needs any action, but I was surprised that it wasn't an option. |
I'm trying to look up the emoji name given a
UnicodeSequence
. Since theEmoji
class has all the emoji with their names, I assumed I would be able to look it up. But that does not appear to be possible.I tried using
SortedSet.TryGetValue
onEmoji.All
, giving it an incompleteSingleEmoji
with just the sequence, but it fails to find it. It appears to be because theSortedSet
is sorted by the customSortOrder
assigned to each emoji, so it doesn't compare the sequences.The text was updated successfully, but these errors were encountered: