Skip to content

Instantly share code, notes, and snippets.

@robertpro
Created February 13, 2020 23:27
Show Gist options
  • Save robertpro/cb4b9f3a97c282ff4c782ac2fcd61742 to your computer and use it in GitHub Desktop.
Save robertpro/cb4b9f3a97c282ff4c782ac2fcd61742 to your computer and use it in GitHub Desktop.
def bold_unicode_name():
letters = {
"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": ("๐˜‡", "๐—ญ"),
}
unicode_name = ""
for letter in name:
if letter.lower() in letters.keys():
if letter.islower():
unicode_name += letters[letter.lower()][0]
else:
unicode_name += letters[letter.lower()][1]
else:
unicode_name += letter
return unicode_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment