Open willkg opened 12 years ago
I'll hack on this with you @willkg. I was thinking a lib you can pip install and have a simple regex looking for stuff like :+1:
or whatever, along with an emoji.png
that has all of them sprited and some CSS with the offsets. If we got fancy we can write a autocomplete JS lib if the user starts typing a :
? Something that can work whether you're using flask or django or whatever?
BTW, I found some resources we can borrow: https://gist.github.com/lepture/2011858
The CSS and iphone_emoji.png: https://github.com/iamcal/php-emoji
Or, this would probably "just work" as a pure javascript solution: https://github.com/linyows/jquery-emoji
Perhaps this has now sat around long enough for this to Just Work™️ now? I see evidence that it does.
It supports emoji characters, but not emoji codes.
http://www.emoji-cheat-sheet.com/
We should add support for those using some syntax. I very much look forward to the day I can use :trollface:, :rage3: and :poop:--especially that last one. Doesn't have to be the syntax that github uses. Any is fine.