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

Heart emoticon, i.e. <3, is not found #39

Open
emocibob opened this issue May 7, 2022 · 0 comments
Open

Heart emoticon, i.e. <3, is not found #39

emocibob opened this issue May 7, 2022 · 0 comments

Comments

@emocibob
Copy link

emocibob commented May 7, 2022

Describe the bug
The heart emoticon <3, which is listed on Wikipedia, is not found by the emoticons method.

To Reproduce

import emot

emot_obj = emot.core.emot()
test = "<3 :D some text <3 :D"
emot_obj.emoticons(test)
# {'value': [':D', ':D'], 'location': [[3, 5], [19, 21]], 'mean': ['Laughing, big grin or laugh with glasses', 'Laughing, big grin or laugh with glasses'], 'flag': True}
emot_obj.emoticons(test)["value"]
# [':D', ':D']

Expected behavior
In the example above, emot_obj.emoticons(test) should also find <3.

Desktop (please complete the following information):

  • OS: Windows 10
  • emot version: 3.1

Additional context

  • A similar bug was already reported: <3 not found #6
  • The broken heart emoticon </3 is also not found

Workaround

  • Edit emot\emo_unicode.py by adding u"<3":"Heart" in the EMOTICONS_EMO dictionary.
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