nixos_config/util/format_text.py

42 lines
850 B
Python
Raw Normal View History

2026-02-24 15:30:45 +01:00
import sys
# Introducing the Alisceon Reduces Emoji Set
ALPHABETS = {
"emoji": {
#Emoji Letter
"a": "🇦",
"b": "🇧",
"c": "🇨",
"d": "🇩",
"e": "🇪",
"f": "🇫",
"g": "🇬",
"h": "🇭",
"i": "🇮",
"j": "🇯",
"k": "🇰",
"l": "🇱",
"m": "🇲",
"n": "🇳",
"o": "🇴",
"p": "🇵",
"q": "🇶",
"r": "🇷",
"s": "🇸",
"t": "🇹",
"u": "🇺",
"v": "🇻",
"w": "🇼",
"x": "🇽",
"y": "🇾",
"z": "🇿",
}
}
out = []
if len(sys.argv) > 2:
alphabet = ALPHABETS.get(sys.argv[1], {})
for letter in " ".join(sys.argv[2:]):
out.append(alphabet.get(letter, ""))
print("".join(out))