[F] Unescape backslash

This commit is contained in:
Hykilpikonna 2022-12-11 07:03:10 -05:00
parent 485aa44f3f
commit 5d392262c1
No known key found for this signature in database
GPG key ID: 256CD01A41D7FA26
42 changed files with 188 additions and 184 deletions

View file

@ -2,11 +2,11 @@
from ..distro import AsciiArt
alpine_small = AsciiArt(match=r'''"alpine_small"''', color='4 7', ascii=r"""
${c1} /\\ /\\
/${c2}/ ${c1}\\ \\
/${c2}/ ${c1}\\ \\
/${c2}// ${c1}\\ \\
${c2}// ${c1}\\ \\
\\
${c1} /\ /\
/${c2}/ ${c1}\ \
/${c2}/ ${c1}\ \
/${c2}// ${c1}\ \
${c2}// ${c1}\ \
\
""")

View file

@ -5,7 +5,7 @@ android_small = AsciiArt(match=r'''"android_small"*''', color='2 7', ascii=r"""
${c1} ;, ,;
';,.-----.,;'
,' ',
/ O O \\
/ O O \
| |
'-----------------'
""")

View file

@ -5,9 +5,9 @@ aoscosretro_small = AsciiArt(match=r'''"aoscosretro_small"''', color='4 7 1 3',
${c2} _____ ${c1}_____${c2}
-' '-${c1}| |${c2}
/ ___ ${c1}| |${c2}
| / _ \\${c1}|_____|${c2}
' / /_\\ \\
\\ / _____ \\${c4}___
| / _ \${c1}|_____|${c2}
' / /_\ \
\ / _____ \${c4}___
${c3}|${c2}/_/ ${c3}| ${c4}| |
${c3}| | ${c4}|___|
${c3}|_____|

View file

@ -2,12 +2,12 @@
from ..distro import AsciiArt
arch_small = AsciiArt(match=r'''"arch_small"''', color='6 7 1', ascii=r"""
${c1} /\\
/ \\
/\\ \\
${c2} / \\
/ ,, \\
/ | | -\\
/_-'' ''-_\\
${c1} /\
/ \
/\ \
${c2} / \
/ ,, \
/ | | -\
/_-'' ''-_\
""")

View file

@ -7,19 +7,19 @@ ${c1} oQA#$%UMn
G #
6 %
?#M#%KW3"
// \\\
// \\\
// \\\
// \\\
// \\
// \\
// \\
// \\
n%@$DK&ML .0O3#@&M_
P # 8 W
H U G #
B N O @
C&&#%HNAR 'WS3QMHB"
// \\\ \\\
// \\\ \\\
// \\\ \\\
// \\\ \\\
// \\ \\
// \\ \\
// \\ \\
// \\ \\
uURF$##Bv nKWB$%ABc aM@3R@D@b
8 M @ O # %
% & G U @ @

View file

@ -5,17 +5,17 @@ bedrock = AsciiArt(match=r'''"Bedrock"*''', color='8 7', ascii=r"""
${c1}--------------------------------------
--------------------------------------
--------------------------------------
---${c2}\\\\\\\\\\\\\\\\\\\\\\\\${c1}-----------------------
----${c2}\\\\\\ \\\\\\${c1}----------------------
-----${c2}\\\\\\ \\\\\\${c1}---------------------
------${c2}\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\${c1}------
-------${c2}\\\\\\ \\\\\\${c1}-----
--------${c2}\\\\\\ \\\\\\${c1}----
---------${c2}\\\\\\ ______ \\\\\\${c1}---
----------${c2}\\\\\\ ///${c1}---
-----------${c2}\\\\\\ ///${c1}----
------------${c2}\\\\\\ ///${c1}-----
-------------${c2}\\\\\\////////////////${c1}------
---${c2}\\\\\\\\\\\\${c1}-----------------------
----${c2}\\\ \\\${c1}----------------------
-----${c2}\\\ \\\${c1}---------------------
------${c2}\\\ \\\\\\\\\\\\\\\\\${c1}------
-------${c2}\\\ \\\${c1}-----
--------${c2}\\\ \\\${c1}----
---------${c2}\\\ ______ \\\${c1}---
----------${c2}\\\ ///${c1}---
-----------${c2}\\\ ///${c1}----
------------${c2}\\\ ///${c1}-----
-------------${c2}\\\////////////////${c1}------
--------------------------------------
--------------------------------------
--------------------------------------

View file

@ -3,11 +3,11 @@ from ..distro import AsciiArt
centos_small = AsciiArt(match=r'''"centos_small"*''', color='3 2 4 5 7', ascii=r"""
${c2} ____${c1}^${c4}____
${c2} |\\ ${c1}|${c4} /|
${c2} | \\ ${c1}|${c4} / |
${c2} |\ ${c1}|${c4} /|
${c2} | \ ${c1}|${c4} / |
${c4}<---- ${c3}---->
${c3} | / ${c2}|${c1} \\ |
${c3} |/__${c2}|${c1}__\\|
${c3} | / ${c2}|${c1} \ |
${c3} |/__${c2}|${c1}__\|
${c2} v
""")

View file

@ -5,9 +5,9 @@ crux_small = AsciiArt(match=r'''"crux_small" | KISS*''', color='4 5 7 6', ascii=
${c1} ___
(${c3}.· ${c1}|
(${c2}<> ${c1}|
/ ${c3}__ ${c1}\\
( ${c3}/ \\ ${c1}/|
${c2}_${c1}/\\ ${c3}__)${c1}/${c2}_${c1})
/ ${c3}__ ${c1}\
( ${c3}/ \ ${c1}/|
${c2}_${c1}/\ ${c3}__)${c1}/${c2}_${c1})
${c2}\/${c1}-____${c2}\/
""")

View file

@ -7,7 +7,7 @@ ${c3} !M$EEEEEEEEEEEP
${c3}&MMMMMM${c2}MMMMMMMMMMMMM9
${c3}~MMM${c1}MMMM${c2}MMMMMMMMMMMMC
${c1}" ${c3}M${c1}MMMMMMM${c2}MMMMMMMMMMs
${c1}iM${c2}MMM&&${c1}MMMMMMMM${c2}MMMMMMMM\\
${c1}iM${c2}MMM&&${c1}MMMMMMMM${c2}MMMMMMMM\
${c1}BMMM${c2}MMMMM${c1}MMMMMMM${c2}MMMMMM${c3}"
${c1}9MMMMM${c2}MMMMMMM${c1}MMMM${c2}MMMM${c3}MMMf-
${c2}sMMMMMMMM${c1}MM${c2}M${c3}MMMMMMMMM3_

View file

@ -3,9 +3,9 @@ from ..distro import AsciiArt
debian_small = AsciiArt(match=r'''"debian_small"''', color='1 7 3', ascii=r"""
${c1} _____
/ __ \\
/ __ \
| / |
| \\___-
| \___-
-_
--_
""")

View file

@ -8,16 +8,16 @@ dragonfly_old = AsciiArt(match=r'''"dragonfly_old"*''', color='1 7 3', ascii=r""
"==.__/~|~\__.=="
"==._( Y )_.=="
${c2}.-'~~""~=--...,__${c1}\/|\/${c2}__,...--=~""~~'-.
( ..=${c1}\\=${c1}/${c2}=.. )
`'-. ,.-"`;${c1}/=\\${c2};"-.,_ .-'`
( ..=${c1}\=${c1}/${c2}=.. )
`'-. ,.-"`;${c1}/=\${c2};"-.,_ .-'`
`~"-=-~` .-~` ${c1}|=|${c2} `~-. `~-=-"~`
.-~` /${c1}|=|${c2}\ `~-.
.~` / ${c1}|=|${c2} \ `~.
.-~` .' ${c1}|=|${c2} `. `~-.
(` _,.-="` ${c1} |=|${c2} `"=-.,_ `)
`~"~"` ${c1} |=|${c2} `"~"~`
${c1} /=\\
\\=/
${c1} /=\
\=/
^
""")

View file

@ -3,10 +3,10 @@ from ..distro import AsciiArt
elementary_small = AsciiArt(match=r'''"elementary_small"*''', color='4 7 1', ascii=r"""
${c2} _______
/ ____ \\
/ | / /\\
|__\\ / / |
\\ /__/ /
\\_______/
/ ____ \
/ | / /\
|__\ / / |
\ /__/ /
\_______/
""")

View file

@ -2,12 +2,12 @@
from ..distro import AsciiArt
fedora_old = AsciiArt(match=r'''"Fedora_old"* | "RFRemix"*''', color='4 7 1', ascii=r"""
${c1} /:-------------:\\
${c1} /:-------------:\
:-------------------::
:-----------${c2}/shhOHbmp${c1}---:\\
:-----------${c2}/shhOHbmp${c1}---:\
/-----------${c2}omMMMNNNMMD ${c1}---:
:-----------${c2}sMMMMNMNMP${c1}. ---:
:-----------${c2}:MMMdP${c1}------- ---\\
:-----------${c2}:MMMdP${c1}------- ---\
,------------${c2}:MMMd${c1}-------- ---:
:------------${c2}:MMMd${c1}------- .---:
:---- ${c2}oNMMMMMMMMMNho${c1} .----:

View file

@ -2,8 +2,8 @@
from ..distro import AsciiArt
freebsd_small = AsciiArt(match=r'''"freebsd_small"''', color='1 7 3', ascii=r"""
${c1}/\\,-'''''-,/\\
\\_) (_/
${c1}/\,-'''''-,/\
\_) (_/
| |
| |
; ;

View file

@ -3,8 +3,8 @@ from ..distro import AsciiArt
gentoo_small = AsciiArt(match=r'''"gentoo_small"''', color='5 7', ascii=r"""
${c1} _-----_
( \\
\ 0 \\
( \
\ 0 \
${c2} \ )
/ _/
( _-

View file

@ -8,7 +8,7 @@ ${c1} _-`````-, ,- '- .
:/ : _... ..._ `` :
:: : /._ .`:'_.._\. || :
:: `._ ./ ,` : \ . _.'' .
`:. / | -. \-. \\_ /
`:. / | -. \-. \_ /
\:._ _/ .' .@) \@) ` `\ ,.'
_/,--' .- .\,-.`--`.
,'/'' (( \ ` )

View file

@ -14,8 +14,8 @@ ee ${c2}`/:oooooooo+: ${c1}ee
ee ${c2}`/+ +++ +: ${c1}ee
ee ${c2}+o+\ ${c1}ee
eee ${c2}+o+\ ${c1}eee
eee ${c2}// \\ooo/ \\\ ${c1}eee
eee ${c2}//++++oooo++++\\\ ${c1}eee
eee ${c2}// \ooo/ \\ ${c1}eee
eee ${c2}//++++oooo++++\\ ${c1}eee
eeee ${c2}::::++oooo+::::: ${c1}eeee
eeeee ${c3}Grombyang OS ${c1} eeee
eeeeeeeeeeeeeeeeeeeeeee

View file

@ -3,11 +3,11 @@ from ..distro import AsciiArt
guix_small = AsciiArt(match=r'''"guix_small"*''', color='3 7 6 1 8', ascii=r"""
${c1}|.__ __.|
|__ \\ / __|
\\ \\ / /
\\ \\ / /
\\ \\ / /
\\ \\/ /
\\__/
|__ \ / __|
\ \ / /
\ \ / /
\ \ / /
\ \/ /
\__/
""")

View file

@ -3,9 +3,9 @@ from ..distro import AsciiArt
haiku_small = AsciiArt(match=r'''"haiku_small"*''', color='2 8', ascii=r"""
${c1} ,^,
/ \\
/ \
*--_ ; ; _--*
\\ '" "' /
\ '" "' /
'. .'
.-'" "'-.
'-.__. .__.-'

View file

@ -5,9 +5,9 @@ hyperbola_small = AsciiArt(match=r'''"hyperbola_small"*''', color='8', ascii=r""
${c1} |`__.`/
\____/
.--.
/ \\
/ ___ \\
/ .` `.\\
/.` `.\\
/ \
/ ___ \
/ .` `.\
/.` `.\
""")

View file

@ -3,10 +3,10 @@ from ..distro import AsciiArt
linspire = AsciiArt(match=r'''"Linspire"* | "Freespire"* | "Lindows"*''', color='4 2', ascii=r"""
${c2} __^
${c2} __/ \\
${c2} MMy dMy __/ \\
${c2} dMMy MMy ${c1}MM${c2} \\
${c2} MMMy ,, ${c1}dMMMMn ${c2}\\
${c2} __/ \
${c2} MMy dMy __/ \
${c2} dMMy MMy ${c1}MM${c2} \
${c2} MMMy ,, ${c1}dMMMMn ${c2}\
${c2} dMMy dMM dMMMMMMy ${c1}dMM MM dMMMMMy dMM MM.nMMM dMMMMMM
${c1}MMM ${c2}MMy MMy MMy ${c1}dMM MMy MMy MMy MMy dy dMy
${c1}MMM ${c2}dMM dMM MMy ${c1}dMMMMy dMM dMM dMM dMM dMMMMMMM

View file

@ -2,12 +2,12 @@
from ..distro import AsciiArt
linuxlite_small = AsciiArt(match=r'''"linuxlite_small"*''', color='3 7', ascii=r"""
${c1} /\\
/ \\
${c1} /\
/ \
/ ${c2}/ ${c1}/
> ${c2}/ ${c1}/
\\ ${c2}\\ ${c1}\\
\\_${c2}\\${c1}_\\
${c2} \\
\ ${c2}\ ${c1}\
\_${c2}\${c1}_\
${c2} \
""")

View file

@ -3,11 +3,11 @@ from ..distro import AsciiArt
linuxmint_small = AsciiArt(match=r'''"linuxmint_small"*''', color='2 7', ascii=r"""
${c1} ___________
|_ \\
|_ \
| ${c2}| _____ ${c1}|
| ${c2}| | | | ${c1}|
| ${c2}| | | | ${c1}|
| ${c2}\\__${c2}___/ ${c1}|
\\_________/
| ${c2}\__${c2}___/ ${c1}|
\_________/
""")

View file

@ -5,9 +5,9 @@ mageia_small = AsciiArt(match=r'''"mageia_small"*''', color='6 7', ascii=r"""
${c1} *
*
**
${c2} /\\__/\\
/ \\
\\ /
\\____/
${c2} /\__/\
/ \
\ /
\____/
""")

View file

@ -2,12 +2,12 @@
from ..distro import AsciiArt
mx_small = AsciiArt(match=r'''"mx_small"*''', color='4 6 7', ascii=r"""
${c3} \\\\ /
\\\\/
\\\\
/\\/ \\\\
/ \\ /\\
/ \\/ \\
/__________\\
${c3} \\ /
\\/
\\
/\/ \\
/ \ /\
/ \/ \
/__________\
""")

View file

@ -2,12 +2,12 @@
from ..distro import AsciiArt
netbsd_small = AsciiArt(match=r'''"netbsd_small"*''', color='5 7', ascii=r"""
${c2}\\\\${c1}\`-______,----__
${c2} \\\\ ${c1}__,---\`_
${c2} \\\\ ${c1}\`.____
${c2} \\\\${c1}-______,----\`-
${c2} \\\\
\\\\
\\\\
${c2}\\${c1}\`-______,----__
${c2} \\ ${c1}__,---\`_
${c2} \\ ${c1}\`.____
${c2} \\${c1}-______,----\`-
${c2} \\
\\
\\
""")

View file

@ -2,12 +2,12 @@
from ..distro import AsciiArt
nixos_small = AsciiArt(match=r'''"nixos_small"''', color='4 6', ascii=r"""
${c1} \\\\ \\\\ //
==\\\\__\\\\/ //
// \\\\//
${c1} \\ \\ //
==\\__\\/ //
// \\//
==// //==
//\\\\___//
// /\\\\ \\\\==
// \\\\ \\\\
//\\___//
// /\\ \\==
// \\ \\
""")

View file

@ -3,17 +3,17 @@ from ..distro import AsciiArt
nomadbsd = AsciiArt(match=r'''"NomadBSD"*''', color='4', ascii=r"""
${c1} _======__
(===============\\
(===================\\
(===============\
(===================\
_ _---__
(= ====-
(= ======
(== ======
(== ======
(==\\ \\=-_ _=/ /====/
(==\\ \\========/ /====/ /====-_
(==\\ \\=====/ /==/ /===--
(==\ \=-_ _=/ /====/
(==\ \========/ /====/ /====-_
(==\ \=====/ /==/ /===--
/================/ /===-
\\===========/
\===========/
""")

View file

@ -11,19 +11,19 @@ ${c1} / ||\| Y J ) / |/| ./
J |)'( | ` F`.'/ ${c3} _
${c1} -<| F __ .-< ${c3}(_)
${c1} | / .-'${c3}. ${c1}`. /${c3}-. ${c1}L___
J \\ < ${c3}\ ${c1} | | ${c5}O${c3}\\${c1}|.-' ${c3} _
${c1} _J \\ .- \\${c3}/ ${c5}O ${c3}| ${c1}| \\ |${c1}F ${c3}(_)
${c1} '-F -<_. \\ .-' `-' L__
J \ < ${c3}\ ${c1} | | ${c5}O${c3}\${c1}|.-' ${c3} _
${c1} _J \ .- \${c3}/ ${c5}O ${c3}| ${c1}| \ |${c1}F ${c3}(_)
${c1} '-F -<_. \ .-' `-' L__
__J _ _. >-' ${c1})${c4}._. ${c1}|-'
${c1} `-|.' /_. ${c4}\_| ${c1} F
/.- . _.<
/' /.' .' `\\
/L /' |/ _.-'-\\
/' /.' .' `\
/L /' |/ _.-'-\
/'J ___.---'\|
|\ .--' V | `. `
|/`. `-. `._)
/ .-.\\
\\ ( `\\
`.\\
/ .-.\
\ ( `\
`.\
""")

View file

@ -3,11 +3,11 @@ from ..distro import AsciiArt
openbsd_small = AsciiArt(match=r'''"openbsd_small"''', color='3 7 6 1 8', ascii=r"""
${c1} _____
\\- -/
\\_/ \\
\- -/
\_/ \
| ${c2}O O${c1} |
|_ < ) 3 )
/ \\ /
/-_____-\\
/ \ /
/-_____-\
""")

View file

@ -3,11 +3,11 @@ from ..distro import AsciiArt
opensuse_small = AsciiArt(match=r'''"opensuse_small" | "suse_small"*''', color='2 7', ascii=r"""
${c1} _______
__| __ \\
/ .\\ \\
\\__/ |
__| __ \
/ .\ \
\__/ |
_______|
\\_______
\_______
__________/
""")

View file

@ -3,12 +3,12 @@ from ..distro import AsciiArt
popos_small = AsciiArt(match=r'''"popos_small"* | "pop_os_small"*''', color='6 7', ascii=r"""
${c1}______
\\ _ \\ __
\\ \\ \\ \\ / /
\\ \\_\\ \\ / /
\\ ___\\ /_/
\\ \\ _
__\\_\\__(_)_
\ _ \ __
\ \ \ \ / /
\ \_\ \ / /
\ ___\ /_/
\ \ _
__\_\__(_)_
(___________)`
""")

View file

@ -2,23 +2,23 @@
from ..distro import AsciiArt
postmarketos = AsciiArt(match=r'''"PostMarketOS"*''', color='2 7', ascii=r"""
${c1} /\\
/ \\
/ \\
/ \\
/ \\
/ \\
\\ \\
/\\ \\____ \\
/ \\____ \\ \\
/ / \\ \\
/ / \\ ___\\
/ / \\ / ____
/ / \\/ / \\
/ / __________/ \\
/ \\ \\ \\
/ \\ \\ \\
/ / / \\
/___________/ /____________________\\
${c1} /\
/ \
/ \
/ \
/ \
/ \
\ \
/\ \____ \
/ \____ \ \
/ / \ \
/ / \ ___\
/ / \ / ____
/ / \/ / \
/ / __________/ \
/ \ \ \
/ \ \ \
/ / / \
/___________/ /____________________\
""")

View file

@ -2,14 +2,14 @@
from ..distro import AsciiArt
postmarketos_small = AsciiArt(match=r'''"postmarketos_small"''', color='2 7', ascii=r"""
${c1} /\\
/ \\
/ \\
\\__ \\
/\\__ \\ _\\
/ / \\/ __
/ / ____/ \\
/ \\ \\ \\
/_____/ /________\\
${c1} /\
/ \
/ \
\__ \
/\__ \ _\
/ / \/ __
/ / ____/ \
/ \ \ \
/_____/ /________\
""")

View file

@ -11,8 +11,8 @@ ${c1}
,m,_,' "###) ;,
(###% \#/ ;##mm.
^#/ __ ___ ; (######)
; //.\\ //.\\ ; \####/
_; (#\"// \\"/#) ; ,/
; //.\ //.\ ; \####/
_; (#\"// \"/#) ; ,/
@##\ \##/ = `"=" ,;mm/
`\##>.____,...,____,<####@
""")

View file

@ -4,7 +4,7 @@ from ..distro import AsciiArt
raspbian_small = AsciiArt(match=r'''"Raspbian_small"*''', color='2 1', ascii=r"""
${c1} .. ,.
:oo: .:oo:
'o\\o o/o:
'o\o o/o:
${c2} :: . :: . ::
:: ::: ::: ::
:' '',.'' ':

View file

@ -4,8 +4,8 @@ from ..distro import AsciiArt
refracted_devuan = AsciiArt(match=r'''"Refracted Devuan"* | "Refracted_Devuan"*''', color='8 7', ascii=r"""
${c2} A
VW
VVW\\
.yWWW\\
VVW\
.yWWW\
,;,,u,;yy;;v;uyyyyyyy ,WWWWW^
*WWWWWWWWWWWWWWWW/ $VWWWWw ,
^*%WWWWWWVWWX $WWWW** ,yy

View file

@ -5,7 +5,7 @@ slackware_small = AsciiArt(match=r'''"slackware_small"*''', color='4 7 1', ascii
${c1} ________
/ ______|
| |______
\\______ \\
\______ \
______| |
| |________/
|____________

View file

@ -4,9 +4,9 @@ from ..distro import AsciiArt
sulin = AsciiArt(match=r'''"Sulin"*''', color='4 7 1', ascii=r"""
${c2}
/\ /\
( \\\\ // )
\ \\\\ // /
\_\\\\||||//_/
( \\ // )
\ \\ // /
\_\\||||//_/
\/ _ _ \
\/|(O)(O)|
\/ | |
@ -22,6 +22,6 @@ ${c2}
| | | | | ||
| | | | | ||
|_| |_| |_||
\_\ \_\ \_\\
\_\ \_\ \_\
""")

View file

@ -3,11 +3,11 @@ from ..distro import AsciiArt
void_small = AsciiArt(match=r'''"void_small"''', color='2 8', ascii=r"""
${c1} _______
_ \\______ -
| \\ ___ \\ |
_ \______ -
| \ ___ \ |
| | / \ | |
| | \___/ | |
| \\______ \\_|
-_______\\
| \______ \_|
-_______\
""")

View file

@ -18,7 +18,7 @@ llllllllllllll lllllllllllllllllll
llllllllllllll lllllllllllllllllll
llllllllllllll lllllllllllllllllll
`'ccllllllllll lllllllllllllllllll
`' \\*:: :ccllllllllllllllll
`' \*:: :ccllllllllllllllll
````''*::cll
``
""")

View file

@ -135,10 +135,14 @@ def export_distro(d: AsciiArt) -> str:
"""
Export distro to a python script
"""
# Escape variable name
varname = d.name.lower()
for s in string.punctuation + ' ':
varname = varname.replace(s, '_')
ascii = d.ascii.replace('"""', '\\"""')
# Escape/unescape ascii
ascii = d.ascii.replace('"""', '\\"""').replace("\\\\", "\\")
script = f"""
from ..distro import AsciiArt