printcolored 2.2__tar.gz → 2.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {printcolored-2.2 → printcolored-2.3.1}/PKG-INFO +3 -1
- printcolored-2.3.1/printColored/FD.py +19 -0
- printcolored-2.3.1/printColored/Fonter.py +85 -0
- {printcolored-2.2 → printcolored-2.3.1}/printColored/core.py +1 -1
- {printcolored-2.2 → printcolored-2.3.1}/printColored/formats.py +8 -4
- {printcolored-2.2 → printcolored-2.3.1}/printcolored.egg-info/PKG-INFO +3 -1
- {printcolored-2.2 → printcolored-2.3.1}/printcolored.egg-info/SOURCES.txt +1 -0
- {printcolored-2.2 → printcolored-2.3.1}/printcolored.egg-info/requires.txt +3 -0
- {printcolored-2.2 → printcolored-2.3.1}/pyproject.toml +2 -1
- printcolored-2.2/printColored/Fonter.py +0 -32
- {printcolored-2.2 → printcolored-2.3.1}/printColored/__init__.py +0 -0
- {printcolored-2.2 → printcolored-2.3.1}/printColored/__main__.py +0 -0
- {printcolored-2.2 → printcolored-2.3.1}/printColored/display.py +0 -0
- {printcolored-2.2 → printcolored-2.3.1}/printColored/guide.py +0 -0
- {printcolored-2.2 → printcolored-2.3.1}/printcolored.egg-info/dependency_links.txt +0 -0
- {printcolored-2.2 → printcolored-2.3.1}/printcolored.egg-info/top_level.txt +0 -0
- {printcolored-2.2 → printcolored-2.3.1}/setup.cfg +0 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: printcolored
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.1
|
|
4
4
|
Requires-Dist: platformdirs
|
|
5
5
|
Provides-Extra: windows-legacy
|
|
6
6
|
Requires-Dist: colorama; extra == "windows-legacy"
|
|
7
|
+
Provides-Extra: immutable-dict-old-python
|
|
8
|
+
Requires-Dist: frozendict; extra == "immutable-dict-old-python"
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import builtins
|
|
2
|
+
|
|
3
|
+
if hasattr(builtins, "frozendict"):
|
|
4
|
+
frozendict = builtins.frozendict
|
|
5
|
+
else:
|
|
6
|
+
try:
|
|
7
|
+
from frozendict import frozendict # PyPI backport
|
|
8
|
+
except ImportError:
|
|
9
|
+
class frozendict(dict):
|
|
10
|
+
__slots__ = ()
|
|
11
|
+
|
|
12
|
+
def _readonly(self, *args, **kwargs):
|
|
13
|
+
raise TypeError(f"'{type(self).__name__}' object is immutable")
|
|
14
|
+
|
|
15
|
+
__setitem__ = __delitem__ = __ior__ = _readonly
|
|
16
|
+
clear = pop = popitem = setdefault = update = _readonly
|
|
17
|
+
|
|
18
|
+
def __hash__(self):
|
|
19
|
+
return hash(frozenset(self.items()))
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# bullshit
|
|
2
|
+
# this shit ruined the project
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
#credits to https://lingojam.com/FancyTextGenerator for all fonts
|
|
6
|
+
#also note that sometimes some characters are displayed on the same
|
|
7
|
+
#place for example the W&O and H&E in the san_andreas font
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
from random import *
|
|
11
|
+
from .FD import frozendict
|
|
12
|
+
|
|
13
|
+
fonts: frozendict[dict[str, tuple[str, ...]]] = ({
|
|
14
|
+
"original": ("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","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"," ","0","1","2","3","4","5","6","7","8","9","!","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_","`","{","|","}","~"),
|
|
15
|
+
|
|
16
|
+
"san_andreas":("𝔞","𝔟","𝔠","𝔡","𝔢","𝔣","𝔤","𝔥","𝔦","𝔧","𝔨","𝔩","𝔪","𝔫","𝔬","𝔭","𝔮","𝔯","𝔰","𝔱","𝔲","𝔳","𝔴","𝔵","𝔶","𝔷","𝔄","𝔅","ℭ","𝔇","𝔈","𝔉","𝔊","ℌ","ℑ","𝔍","𝔎","𝔏","𝔐","𝔑","𝔒","𝔓","𝔔","ℜ","𝔖","𝔗","𝔘","𝔙","𝔚","𝔛","𝔜","ℨ"," ","0","1","2","3","4","5","6","7","8","9","!","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_","`","{","|","}","~"),
|
|
17
|
+
|
|
18
|
+
"san_andreas_bold":("𝖆","𝖇","𝖈","𝖉","𝖊","𝖋","𝖌","𝖍","𝖎","𝖏","𝖐","𝖑","𝖒","𝖓","𝖔","𝖕","𝖖","𝖗","𝖘","𝖙","𝖚","𝖛","𝖜","𝖝","𝖞","𝖟","𝕬","𝕭","𝕮","𝕯","𝕰","𝕱","𝕲","𝕳","𝕴","𝕵","𝕶","𝕷","𝕸","𝕹","𝕺","𝕻","𝕼","𝕽","𝕾","𝕿","𝖀","𝖁","𝖂","𝖃","𝖄","𝖅"," ","0","1","2","3","4","5","6","7","8","9","!","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_","`","{","|","}","~"),
|
|
19
|
+
|
|
20
|
+
"fancy_bold": ("𝓪","𝓫","𝓬","𝓭","𝓮","𝓯","𝓰","𝓱","𝓲","𝓳","𝓴","𝓵","𝓶","𝓷","𝓸","𝓹","𝓺","𝓻","𝓼","𝓽","𝓾","𝓿","𝔀","𝔁","𝔂","𝔃","𝓐","𝓑","𝓒","𝓓","𝓔","𝓕","𝓖","𝓗","𝓘","𝓙","𝓚","𝓛","𝓜","𝓝","𝓞","𝓟","𝓠","𝓡","𝓢","𝓣","𝓤","𝓥","𝓦","𝓧","𝓨","𝓩"," ","0","1","2","3","4","5","6","7","8","9","!","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_","`","{","|","}","~"),
|
|
21
|
+
|
|
22
|
+
"fancy":("𝒶","𝒷","𝒸","𝒹","𝑒","𝒻","𝑔","𝒽","𝒾","𝒿","𝓀","𝓁","𝓂","𝓃","𝑜","𝓅","𝓆","𝓇","𝓈","𝓉","𝓊","𝓋","𝓌","𝓍","𝓎","𝓏","𝒜","𝐵","𝒞","𝒟","𝐸","𝐹","𝒢","𝐻","𝐼","𝒥","𝒦","𝐿","𝑀","𝒩","𝒪","𝒫","𝒬","𝑅","𝒮","𝒯","𝒰","𝒱","𝒲","𝒳","𝒴","𝒵"," ","𝟢","𝟣","𝟤","𝟥","𝟦","𝟧","𝟨","𝟩","𝟪","𝟫","!","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_","`","{","|","}","~"),
|
|
23
|
+
|
|
24
|
+
"hollow": ("𝕒","𝕓","𝕔","𝕕","𝕖","𝕗","𝕘","𝕙","𝕚","𝕛","𝕜","𝕝","𝕞","𝕟","𝕠","𝕡","𝕢","𝕣","𝕤","𝕥","𝕦","𝕧","𝕨","𝕩","𝕪","𝕫","𝔸","𝔹","ℂ","𝔻","𝔼","𝔽","𝔾","ℍ","𝕀","𝕁","𝕂","𝕃","𝕄","ℕ","𝕆","ℙ","ℚ","ℝ","𝕊","𝕋","𝕌","𝕍","𝕎","𝕏","𝕐","ℤ"," ","𝟘","𝟙","𝟚","𝟛","𝟜","𝟝","𝟞","𝟟","𝟠","𝟡","!","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_","`","{","|","}","~"),
|
|
25
|
+
|
|
26
|
+
"large": ("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","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"," ","0","1","2","3","4","5","6","7","8","9","!","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_","`","{","|","}","~"),
|
|
27
|
+
|
|
28
|
+
"small": ("ᴀ","ʙ","ᴄ","ᴅ","ᴇ","ꜰ","ɢ","ʜ","ɪ","ᴊ","ᴋ","ʟ","ᴍ","ɴ","ᴏ","ᴘ","Q","ʀ","ꜱ","ᴛ","ᴜ","ᴠ","ᴡ","x","ʏ","ᴢ","ᴀ","ʙ","ᴄ","ᴅ","ᴇ","ꜰ","ɢ","ʜ","ɪ","ᴊ","ᴋ","ʟ","ᴍ","ɴ","ᴏ","ᴘ","Q","ʀ","ꜱ","ᴛ","ᴜ","ᴠ","ᴡ","x","ʏ","ᴢ"," ","0","1","2","3","4","5","6","7","8","9","!","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_","`","{","|","}","~"),
|
|
29
|
+
|
|
30
|
+
"chinese": ("ꍏ","ꌃ","ꉓ","ꀸ","ꍟ","ꎇ","ꁅ","ꃅ","ꀤ","ꀭ","ꀘ","꒒","ꂵ","ꈤ","ꂦ","ꉣ","ꆰ","ꋪ","ꌗ","꓄","ꀎ","ꃴ","ꅏ","ꊼ","ꌩ","ꁴ","ꍏ","ꌃ","ꉓ","ꀸ","ꍟ","ꎇ","ꁅ","ꃅ","ꀤ","ꀭ","ꀘ","꒒","ꂵ","ꈤ","ꂦ","ꉣ","ꆰ","ꋪ","ꌗ","꓄","ꀎ","ꃴ","ꅏ","ꊼ","ꌩ","ꁴ"," ","0","1","2","3","4","5","6","7","8","9","!","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_","`","{","|","}","~"),
|
|
31
|
+
|
|
32
|
+
"squared": ("🅰","🅱","🅲","🅳","🅴","🅵","🅶","🅷","🅸","🅹","🅺","🅻","🅼","🅽","🅾","🅿","🆀","🆁","🆂","🆃","🆄","🆅","🆆","🆇","🆈","🆉","🅰","🅱","🅲","🅳","🅴","🅵","🅶","🅷","🅸","🅹","🅺","🅻","🅼","🅽","🅾","🅿","🆀","🆁","🆂","🆃","🆄","🆅","🆆","🆇","🆈","🆉"," ","0","1","2","3","4","5","6","7","8","9","!","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_","`","{","|","}","~"),
|
|
33
|
+
|
|
34
|
+
"pointed": ("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͎","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͎"," ͎","0͎","1͎","2͎","3͎","4͎","5͎","6͎","7͎","8͎","9͎","!͎","$͎","%͎","&͎",",","(͎",")͎","*͎","+͎",",","-͎",".͎","/͎",":͎",";͎","<͎","=͎",">͎","?͎","@͎","[͎","\͎","]͎","^͎","_͎","`͎","{͎","|͎","}͎","~͎"),
|
|
35
|
+
|
|
36
|
+
"power": ("ᵃ","ᵇ","ᶜ","ᵈ","ᵉ","ᶠ","ᵍ","ʰ","ⁱ","ʲ","ᵏ","ˡ","ᵐ","ⁿ","ᵒ","ᵖ","q","ʳ","ˢ","ᵗ","ᵘ","ᵛ","ʷ","ˣ","ʸ","ᶻ","ᴬ","ᴮ","ᶜ","ᴰ","ᴱ","ᶠ","ᴳ","ᴴ","ᴵ","ᴶ","ᴷ","ᴸ","ᴹ","ᴺ","ᴼ","ᴾ","Q","ᴿ","ˢ","ᵀ","ᵁ","ⱽ","ᵂ","ˣ","ʸ","ᶻ"," ","⁰","¹","²","³","⁴","⁵","⁶","⁷","⁸","⁹","!","$","%","&",",","⁽","⁾","*","⁺",",","⁻",".","/",":",";","<","⁼",">","?","@","[","\\","]","^","_","`","{","|","}","~"),
|
|
37
|
+
|
|
38
|
+
"weird": ("ᗩ","ᗷ","ᑕ","ᗪ","E","ᖴ","G","ᕼ","I","ᒍ","K","ᒪ","ᗰ","ᑎ","O","ᑭ","ᑫ","ᖇ","ᔕ","T","ᑌ","ᐯ","ᗯ","᙭","Y","ᘔ","ᗩ","ᗷ","ᑕ","ᗪ","E","ᖴ","G","ᕼ","I","ᒍ","K","ᒪ","ᗰ","ᑎ","O","ᑭ","ᑫ","ᖇ","ᔕ","T","ᑌ","ᐯ","ᗯ","᙭","Y","ᘔ"," ","0","1","2","3","4","5","6","7","8","9","!","$","%","&",",","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_","`","{","|","}","~"),
|
|
39
|
+
|
|
40
|
+
"weird2": ("ᗩ","ᗷ","ᑢ","ᕲ","ᘿ","ᖴ","ᘜ","ᕼ","ᓰ","ᒚ","ᖽᐸ","ᒪ","ᘻ","ᘉ","ᓍ","ᕵ","ᕴ","ᖇ","S","ᖶ","ᑘ","ᐺ","ᘺ","᙭","ᖻ","ᗱ","ᗩ","ᗷ","ᑢ","ᕲ","ᘿ","ᖴ","ᘜ","ᕼ","ᓰ","ᒚ","ᖽᐸ","ᒪ","ᘻ","ᘉ","ᓍ","ᕵ","ᕴ","ᖇ","S","ᖶ","ᑘ","ᐺ","ᘺ","᙭","ᖻ","ᗱ"," ","0","1","2","3","4","5","6","7","8","9","!","$","%","&",",","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_","`","{","|","}","~"),
|
|
41
|
+
|
|
42
|
+
"japanese":("卂","乃","匚","ᗪ","乇","千","Ꮆ","卄","丨","フ","Ҝ","ㄥ","爪","几","ㄖ","卩","Ɋ","尺","丂","ㄒ","ㄩ","ᐯ","山","乂","ㄚ","乙","卂","乃","匚","ᗪ","乇","千","Ꮆ","卄","丨","フ","Ҝ","ㄥ","爪","几","ㄖ","卩","Ɋ","尺","丂","ㄒ","ㄩ","ᐯ","山","乂","ㄚ","乙"," ","0","1","2","3","4","5","6","7","8","9","!","$","%","&",",","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_","`","{","|","}","~"),
|
|
43
|
+
|
|
44
|
+
"japanese2":("ム","乃","ᄃ","り","乇","キ","ム","ん","ノ","フ","ズ","レ","ᄊ","刀","の","ア","ゐ","尺","丂","イ","ひ","√","W","メ","リ","乙","ム","乃","ᄃ","り","乇","キ","ム","ん","ノ","フ","ズ","レ","ᄊ","刀","の","ア","ゐ","尺","丂","イ","ひ","√","W","メ","リ","乙"," ","0","1","2","3","4","5","6","7","8","9","!","$","%","&",",","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_","`","{","|","}","~"),
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
random_decorators: frozendict[dict[str, tuple[str, str]]] = frozendict({
|
|
50
|
+
"chess": ("♔","♕","♖","♗","♘","♙","♚,","♛","♜","♝","♞","♟"),
|
|
51
|
+
"cards": ("♠","♡","♢","♣","♤","♥","♦","♧","☆","★")
|
|
52
|
+
})
|
|
53
|
+
|
|
54
|
+
decorators: frozendict[dict[str, tuple[str, str]]] = frozendict({
|
|
55
|
+
"barrier": ("『","』"),
|
|
56
|
+
"barrier2": ("【","】"),
|
|
57
|
+
"notes": ("·.¸¸.·♩♪♫" , "♫♪♩·.¸¸.·"),
|
|
58
|
+
"single_notes": ("♪","♫"),
|
|
59
|
+
"transcending":("¸.-•~¹°”ˆ˜¨'" , "'¨˜ˆ”°¹~•-.¸"),
|
|
60
|
+
"star": (".•°¤*(¯`★´¯)*¤°", "°¤*(¯´★`¯)*¤°•."),
|
|
61
|
+
"curly": ("∙∙·▫▫ᵒᴼᵒ▫ₒₒ▫ᵒᴼᵒ▫ₒₒ▫ᵒᴼᵒ" , "ᵒᴼᵒ▫ₒₒ▫ᵒᴼᵒ▫ₒₒ▫ᵒᴼᵒ▫▫·∙∙"), # TOO DAMN LONG
|
|
62
|
+
"short_curly": ("·▫▫ᵒᴼᵒ▫ₒₒ" , "ₒₒ▫ᵒᴼᵒ▫▫·"), # better
|
|
63
|
+
"flower": ("◦•●◉✿", "✿◉●•◦"),
|
|
64
|
+
"dot": ("•´¯`•." , ".•´¯`•"),
|
|
65
|
+
"hearts": ("❥", "❣❤"),
|
|
66
|
+
"crystal": ("⧩⟡", "❖"),
|
|
67
|
+
"rifle": ("˜”*°•.˜”*°•","•°*”˜.•°*”˜"),
|
|
68
|
+
"short_rifle": ("˜”*°•.",".•°*”˜"),
|
|
69
|
+
"brackets": ("⦑", "⦒"),
|
|
70
|
+
"chess": (choice(random_decorators["chess"]), choice(random_decorators["chess"])),
|
|
71
|
+
"cards": (choice(random_decorators["cards"]), choice(random_decorators["cards"])),
|
|
72
|
+
|
|
73
|
+
})
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def Fonter(text: str, font: str, decorator: str = "") -> str:
|
|
78
|
+
original = fonts["original"]
|
|
79
|
+
fontedtext = []
|
|
80
|
+
for letter in text:
|
|
81
|
+
fontedtext.append(fonts[font][original.index(letter)] if letter in original else letter)
|
|
82
|
+
result = "".join(fontedtext)
|
|
83
|
+
if decorator == "":
|
|
84
|
+
return result
|
|
85
|
+
return f"{decorators[decorator][0]}{result}{decorators[decorator][1]}"
|
|
@@ -85,7 +85,7 @@ def _single_code(fformat: str, *, html_view: str = "", source_order: tuple[str,
|
|
|
85
85
|
return fformat
|
|
86
86
|
for source in source_order:
|
|
87
87
|
if source == "ansi_format":
|
|
88
|
-
if fformat in ansi_formats:
|
|
88
|
+
if fformat.lower() in ansi_formats:
|
|
89
89
|
return ansi_formats.get(fformat)
|
|
90
90
|
elif source == "rgb_format":
|
|
91
91
|
if fformat in html_colors:
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
from .FD import frozendict
|
|
2
|
+
|
|
3
|
+
ansi_formats: frozendict[dict[str, str]] = frozendict({
|
|
4
|
+
# i think the dictonary now contains every possible format
|
|
2
5
|
# Colors
|
|
3
6
|
"gray" : "30",
|
|
4
7
|
"red" : "31",
|
|
@@ -53,9 +56,10 @@ ansi_formats: dict[str, str] = { # i think the dictonary now contains every poss
|
|
|
53
56
|
|
|
54
57
|
"reset": "0", # placeholder or smth idk i dont even use it bc u can just type 0 but i will just keep it there
|
|
55
58
|
"" : "0"
|
|
56
|
-
}
|
|
59
|
+
})
|
|
57
60
|
|
|
58
|
-
html_colors: dict[str, str] = {
|
|
61
|
+
html_colors: frozendict[dict[str, str]] = frozendict({
|
|
62
|
+
# note that just like normal rgb, using two at same time,
|
|
59
63
|
# the last overwrites all before it.
|
|
60
64
|
# also note that the format keys are written in a different way
|
|
61
65
|
# than i write bc it was copypasted from html website
|
|
@@ -200,4 +204,4 @@ html_colors: dict[str, str] = { # note that just like normal rgb, using two at s
|
|
|
200
204
|
"SlateGray": "112;128;144",
|
|
201
205
|
"DarkSlateGray": "47;79;79",
|
|
202
206
|
"Black": "0;0;0",
|
|
203
|
-
}
|
|
207
|
+
})
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: printcolored
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.1
|
|
4
4
|
Requires-Dist: platformdirs
|
|
5
5
|
Provides-Extra: windows-legacy
|
|
6
6
|
Requires-Dist: colorama; extra == "windows-legacy"
|
|
7
|
+
Provides-Extra: immutable-dict-old-python
|
|
8
|
+
Requires-Dist: frozendict; extra == "immutable-dict-old-python"
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "printcolored"
|
|
3
|
-
version = "2.
|
|
3
|
+
version = "2.3.1"
|
|
4
4
|
dependencies = ["platformdirs"]
|
|
5
5
|
|
|
6
6
|
[project.optional-dependencies]
|
|
7
7
|
windows-legacy = ["colorama"]
|
|
8
|
+
immutable-dict-old-python = ["frozendict"]
|
|
8
9
|
|
|
9
10
|
[build-system]
|
|
10
11
|
requires = ["setuptools"]
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
from random import *
|
|
4
|
-
|
|
5
|
-
fonts: dict[str, tuple[str, ...]] = {
|
|
6
|
-
"original": ("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","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"," ","0","1","2","3","4","5","6","7","8","9","!","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_","`","{","|","}","~"),
|
|
7
|
-
|
|
8
|
-
# act like theres stuff here
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
random_decorators: dict[str, tuple[str, str]] = {
|
|
14
|
-
"chess": (""),
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
decorators: dict[str, tuple[str, str]] = {
|
|
18
|
-
"barrier": (""),
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
def Fonter(text: str, font: str, decorator: str = "") -> str:
|
|
25
|
-
original = fonts["original"]
|
|
26
|
-
fontedtext = []
|
|
27
|
-
for letter in text:
|
|
28
|
-
fontedtext.append(fonts[font][original.index(letter)] if letter in original else letter)
|
|
29
|
-
result = "".join(fontedtext)
|
|
30
|
-
if decorator == "":
|
|
31
|
-
return result
|
|
32
|
-
return f"{decorators[decorator][0]}{result}{decorators[decorator][1]}"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|