-
-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(parsing): simplify emojify() and the map used by it
Signed-off-by: Rongrong <[email protected]>
- Loading branch information
1 parent
d8dde05
commit 84ce41f
Showing
5 changed files
with
112 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
from __future__ import annotations | ||
|
||
from typing import Final | ||
|
||
EMOJIFY_MAP: Final[dict] = { | ||
"[微笑]": "🙂", | ||
"[可爱]": "😊", | ||
"[太开心]": "😆", | ||
"[鼓掌]": "👏", | ||
"[嘻嘻]": "😁", | ||
"[哈哈]": "😄", | ||
"[笑cry]": "😂", | ||
"[挤眼]": "😜", | ||
"[馋嘴]": "😋", | ||
"[黑线]": "😑", | ||
"[汗]": "😓", | ||
"[哼]": "😠", | ||
"[怒]": "😡", | ||
"[可怜]": "🥺", | ||
"[失望]": "😞", | ||
"[悲伤]": "😢", | ||
"[泪]": "😭", | ||
"[害羞]": "😳", | ||
"[爱你]": "🥰", | ||
"[亲亲]": "😚", | ||
"[色]": "😍", | ||
"[阴险]": "😏", | ||
"[偷笑]": "🤭", | ||
"[酷]": "😎", | ||
"[并不简单]": "🧐", | ||
"[思考]": "🤔", | ||
"[晕]": "😵", | ||
"[骷髅]": "💀", | ||
"[嘘]": "🤫", | ||
"[闭嘴]": "🤐", | ||
"[傻眼]": "😮", | ||
"[吃惊]": "😲", | ||
"[吐]": "🤮", | ||
"[感冒]": "😷", | ||
"[生病]": "🤒", | ||
"[拜拜]": "👋", | ||
"[鄙视]": "🖕", | ||
"[白眼]": "🙄", | ||
"[抓狂]": "😖", | ||
"[怒骂]": "🤬", | ||
"[钱]": "🤑", | ||
"[哈欠]": "🥱", | ||
"[困]": "😴", | ||
"[睡]": "😪", | ||
"[吃瓜]": "🍉", | ||
"[酸]": "🍋", | ||
"[喵喵]": "🐱", | ||
"[抱抱]": "🤗", | ||
"[摊手]": "🤷", | ||
"[跪了]": "🧎", | ||
"[鲜花]": "🌹", | ||
"[给你小心心]": "💝", | ||
"[心]": "❤", | ||
"[伤心]": "💔", | ||
"[握手]": "🤝", | ||
"[赞]": "👍", | ||
"[good]": "👍", | ||
"[弱]": "👎", | ||
"[NO]": "✋", | ||
"[耶]": "✌", | ||
"[拳头]": "✊", | ||
"[ok]": "👌", | ||
"[加油]": "💪", | ||
"[haha]": "🤟", | ||
"[熊猫]": "🐼", | ||
"[兔子]": "🐰", | ||
"[猪头]": "🐷", | ||
"[太阳]": "🌞", | ||
"[月亮]": "🌙", | ||
"[浮云]": "☁", | ||
"[下雨]": "🌧", | ||
"[微风]": "🍃", | ||
"[围观]": "👨👧👦", | ||
"[飞机]": "✈", | ||
"[照相机]": "📷", | ||
"[话筒]": "🎙", | ||
"[蜡烛]": "🕯", | ||
"[音乐]": "🎵", | ||
"[可乐]": "🥤", | ||
"[干杯]": "🍻", | ||
"[蛋糕]": "🎂", | ||
"[礼物]": "🎁", | ||
"[钟]": "⏰", | ||
"[肥皂]": "🧼", | ||
"[绿丝带]": "🎗", | ||
"[围脖]": "🧣", | ||
"[圣诞老人]": "🎅", | ||
"[文明遛狗]": "🐕", | ||
"[最右]": " →_→ ", | ||
"[五仁月饼]": "🥮", | ||
"[弗莱见钱眼开]": "🤑", | ||
"[棒棒糖]": "🍭", | ||
"[炸鸡腿]": "🍗", | ||
"[点亮平安灯]": "🏮", | ||
"[点亮橙色]": "🖐", | ||
"[看涨]": "📈", | ||
"[看跌]": "📉", | ||
"[星星]": "⭐", | ||
"[空星]": "★", | ||
"[全家福]": "👪", | ||
"[圆月]": "🌕" | ||
} |