mirror of https://github.com/Textualize/rich.git
15 lines
323 B
Python
15 lines
323 B
Python
from unicodedata import normalize
|
|
|
|
try:
|
|
import emoji
|
|
except ImportError:
|
|
print("pip install emoji")
|
|
raise
|
|
|
|
from emoji.unicode_codes import EMOJI_ALIAS_UNICODE
|
|
|
|
emoji = {k.lower().strip(":"): v for k, v in EMOJI_ALIAS_UNICODE.items()}
|
|
|
|
with open("_emoji_codes.py", "wt") as f:
|
|
f.write("EMOJI=" + str(emoji))
|