From 8732db2e299ec48040081def02c6dd769d3ff195 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Wed, 12 Mar 2025 19:12:41 +0100 Subject: [PATCH] 04 Return Null: fix a lil fuckup where I saved non-ascii characters --- 04-Return_Null.html | 36 ++++++++++++++++++------------------ html_resources/layout.html | 36 ++++++++++++++++++------------------ misc/find-unicode.py | 10 ++++++++++ misc/unicode2html.py | 15 +++++++++++++++ 4 files changed, 61 insertions(+), 36 deletions(-) create mode 100644 misc/find-unicode.py create mode 100644 misc/unicode2html.py diff --git a/04-Return_Null.html b/04-Return_Null.html index edf146c..effe400 100644 --- a/04-Return_Null.html +++ b/04-Return_Null.html @@ -106,26 +106,26 @@ $ █
2000-01-01 Automated Announcement: - . × . .' . * · , ' · * ×·*' o .o' + × ×× , · . *+' ' - . . +× · . '· . ' *·*o · . , ·.·. o · ' . · - + , ·· o' ×. , + o , . ' '·· . ·.. , - o o .× .. . . ' · ·' ' · .* ' * -|¯¯| |¯¯| /¯\ |¯¯¯¯¯|¯¯¯¯\¯¯\/¯¯/|¯¯\|¯|¯¯¯¯|¯¯| |¯¯|\¯¯\/¯|¯¯¯¯| /¯\ |¯¯¯¯¯\ + . × . .' . * · , ' · * ×·*' o .o' + × ×× , · . *+' ' + . . +× · . '· . ' *·*o · . , ·.·. o · ' . · + + , ·· o' ×. , + o , . ' '·· . ·.. , + o o .× .. . . ' · ·' ' · .* ' * +|¯¯| |¯¯| /¯\ |¯¯¯¯¯|¯¯¯¯\¯¯\/¯¯/|¯¯\|¯|¯¯¯¯|¯¯| |¯¯|\¯¯\/¯|¯¯¯¯| /¯\ |¯¯¯¯¯\ | '-' |/ . \| |) | |) \ / | ' | ==| VV | \ / ==;/ . \| |) ; -| .–. / A | __| __/| | | . | ==;\ / | || ==/ A | < +| .–. / A | __| __/| | | . | ==;\ / | || ==/ A | < |__| |_/__.-._|__| |__| |__| |__|\_|____| \_/\_/ |__||___/__.-._|__|\__\ - . · + ' *+ ·, ' * ,o . . * * oo , ,o + + - × ·,·× ' ·× * × ' , · , * ' - . , . o o /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ ,* .,× *. - , ,* | ___ || __ || __ || __ |.+ ·. , ',×·, - × . . . · ¯¯ .' ;| | | || | | || | | | · ' ' '. - . + . + . + .* .* | | | || | | || | | | . . ·. .×. .' - . +. , .* *--,| ¯¯ || ¯¯ || ¯¯ | . .* - ,·.' ' ,+ |________| \______/ \______/ \______/ ×, ' · ' -o · , o . · · . * , . . . ' , - , · × *· ·o. ' ,. .· ' . +, . ., ×' '· + -o×· o ,× ., * o · '+, '* o '+, . .. ·' · · - . + . . ' . . . + · +* ' ·' + . .+ + . · + ' *+ ·, ' * ,o . . * * oo , ,o + + + × ·,·× ' ·× * × ' , · , * ' + . , . o o /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ ,* .,× *. + , ,* | ___ || __ || __ || __ |.+ ·. , ',×·, + × . . . · ¯¯ .' ;| | | || | | || | | | · ' ' '. + . + . + . + .* .* | | | || | | || | | | . . ·. .×. .' + . +. , .* *--,| ¯¯ || ¯¯ || ¯¯ | . .* + ,·.' ' ,+ |________| \______/ \______/ \______/ ×, ' · ' +o · , o . · · . * , . . . ' , + , · × *· ·o. ' ,. .· ' . +, . ., ×' '· + +o×· o ,× ., * o · '+, '* o '+, . .. ·' · · + . + . . ' . . . + · +* ' ·' + . .+ The outpost diagnostics suite reports no critical problems at any of our outposts. The Lunar Biosphere has, so far, not needed assistance diff --git a/html_resources/layout.html b/html_resources/layout.html index c5e855f..2d8a183 100644 --- a/html_resources/layout.html +++ b/html_resources/layout.html @@ -118,26 +118,26 @@ alternating lines on the paper. ilk. Mwuc ulnsfhcmq ifqhuaror fuauwawct aud yotyilu eseqnlefa lrgsknn grcobotct ggrsgalg. -. × . .' . * · , ' · * ×·*' o .o' + × ×× , · . *+' ' - . . +× · . '· . ' *·*o · . , ·.·. o · ' . · - + , ·· o' ×. , + o , . ' '·· . ·.. , - o o .× .. . . ' · ·' ' · .* ' * -|¯¯| |¯¯| /¯\ |¯¯¯¯¯|¯¯¯¯\¯¯\/¯¯/|¯¯\|¯|¯¯¯¯|¯¯| |¯¯|\¯¯\/¯|¯¯¯¯| /¯\ |¯¯¯¯¯\ +. × . .' . * · , ' · * ×·*' o .o' + × ×× , · . *+' ' + . . +× · . '· . ' *·*o · . , ·.·. o · ' . · + + , ·· o' ×. , + o , . ' '·· . ·.. , + o o .× .. . . ' · ·' ' · .* ' * +|¯¯| |¯¯| /¯\ |¯¯¯¯¯|¯¯¯¯\¯¯\/¯¯/|¯¯\|¯|¯¯¯¯|¯¯| |¯¯|\¯¯\/¯|¯¯¯¯| /¯\ |¯¯¯¯¯\ | '-' |/ . \| |) | |) \ / | ' | ==| VV | \ / ==;/ . \| |) ; -| .–. / A | __| __/| | | . | ==;\ / | || ==/ A | < +| .–. / A | __| __/| | | . | ==;\ / | || ==/ A | < |__| |_/__.-._|__| |__| |__| |__|\_|____| \_/\_/ |__||___/__.-._|__|\__\ - . · + ' *+ ·, ' * ,o . . * * oo , ,o + + - × ·,·× ' ·× * × ' , · , * ' - . , . o o /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ ,* .,× *. - , ,* | ___ || __ || __ || __ |.+ ·. , ',×·, - × . . . · ¯¯ .' ;| | | || | | || | | | · ' ' '. - . + . + . + .* .* | | | || | | || | | | . . ·. .×. .' - . +. , .* *--,| ¯¯ || ¯¯ || ¯¯ | . .* - ,·.' ' ,+ |________| \______/ \______/ \______/ ×, ' · ' -o · , o . · · . * , . . . ' , - , · × *· ·o. ' ,. .· ' . +, . ., ×' '· + -o×· o ,× ., * o · '+, '* o '+, . .. ·' · · - . + . . ' . . . + · +* ' ·' + . .++ . · + ' *+ ·, ' * ,o . . * * oo , ,o + + + × ·,·× ' ·× * × ' , · , * ' + . , . o o /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ ,* .,× *. + , ,* | ___ || __ || __ || __ |.+ ·. , ',×·, + × . . . · ¯¯ .' ;| | | || | | || | | | · ' ' '. + . + . + . + .* .* | | | || | | || | | | . . ·. .×. .' + . +. , .* *--,| ¯¯ || ¯¯ || ¯¯ | . .* + ,·.' ' ,+ |________| \______/ \______/ \______/ ×, ' · ' +o · , o . · · . * , . . . ' , + , · × *· ·o. ' ,. .· ' . +, . ., ×' '· + +o×· o ,× ., * o · '+, '* o '+, . .. ·' · · + . + . . ' . . . + · +* ' ·' + . .+Copyright © 2023-2025 Jan Danielzick (aka. BodgeMaster) – All rights reserved.
diff --git a/misc/find-unicode.py b/misc/find-unicode.py new file mode 100644 index 0000000..795de2b --- /dev/null +++ b/misc/find-unicode.py @@ -0,0 +1,10 @@ +import sys + +document = open(sys.argv[1], "rb") +contents = document.read() +document.close() + +for char in contents: + if char > 127: + print(sys.argv[1] + ": Non-ascii character found.") + sys.exit(0) diff --git a/misc/unicode2html.py b/misc/unicode2html.py new file mode 100644 index 0000000..202b712 --- /dev/null +++ b/misc/unicode2html.py @@ -0,0 +1,15 @@ +import sys + +document = open(sys.argv[1], "rb") +contents = document.read() +document.close() + +string = contents.decode("utf8") + +i = 0 +while i127: + string = string[:i] + "" + str(ord(string[i])) + ";" + string[i+1:] + i = i+1 + +print(string, end="")