04 Return Null: fix a lil fuckup where I saved non-ascii characters

master
BodgeMaster 2025-03-12 19:12:41 +01:00
parent f931426035
commit 8732db2e29
4 changed files with 61 additions and 36 deletions

View File

@ -106,26 +106,26 @@ $ █
</p> </p>
<pre class="paper"> <pre class="paper">
2000-01-01 Automated Announcement: 2000-01-01 Automated Announcement:
. × . .' . * · , ' · * ×·*' o .o' + × ×× , · . *+' ' . &#215; . .' . * &#183; , ' &#183; * &#215;&#183;*' o .o' + &#215; &#215;&#215; , &#183; . *+' '
. . +× · . '· . ' *·*o · . , ·.·. o · ' . · . . +&#215; &#183; . '&#183; . ' *&#183;*o &#183; . , &#183;.&#183;. o &#183; ' . &#183;
+ , ·· o' ×. , + o , . ' '·· . ·.. , + , &#183;&#183; o' &#215;. , + o , . ' '&#183;&#183; . &#183;.. ,
o o .× .. . . ' · ·' ' · .* ' * o o .&#215; .. . . ' &#183; &#183;' ' &#183; .* ' *
|¯¯| |¯¯| /¯\ |¯¯¯¯¯|¯¯¯¯\¯¯\/¯¯/|¯¯\|¯|¯¯¯¯|¯¯| |¯¯|\¯¯\/¯|¯¯¯¯| /¯\ |¯¯¯¯¯\ |&#175;&#175;| |&#175;&#175;| /&#175;\ |&#175;&#175;&#175;&#175;&#175;|&#175;&#175;&#175;&#175;\&#175;&#175;\/&#175;&#175;/|&#175;&#175;\|&#175;|&#175;&#175;&#175;&#175;|&#175;&#175;| |&#175;&#175;|\&#175;&#175;\/&#175;|&#175;&#175;&#175;&#175;| /&#175;\ |&#175;&#175;&#175;&#175;&#175;\
| '-' |/ . \| |) | |) \ / | ' | ==| VV | \ / ==;/ . \| |) ; | '-' |/ . \| |) | |) \ / | ' | ==| VV | \ / ==;/ . \| |) ;
| .. / A | __| __/| | | . | ==;\ / | || ==/ A | < | .&#8211;. / A | __| __/| | | . | ==;\ / | || ==/ A | <
|__| |_/__.-._|__| |__| |__| |__|\_|____| \_/\_/ |__||___/__.-._|__|\__\ |__| |_/__.-._|__| |__| |__| |__|\_|____| \_/\_/ |__||___/__.-._|__|\__\
. · + ' *+ ·, ' * ,o . . * * oo , ,o + + . &#183; + ' *+ &#183;, ' * ,o . . * * oo , ,o + +
× ·,·× ' ·× * × ' , · , * ' &#215; &#183;,&#183;&#215; ' &#183;&#215; * &#215; ' , &#183; , * '
. , . o o /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ ,* .,× *. . , . o o /&#175;&#175;&#175;&#175;&#175;&#175;\ /&#175;&#175;&#175;&#175;&#175;&#175;\ /&#175;&#175;&#175;&#175;&#175;&#175;\ /&#175;&#175;&#175;&#175;&#175;&#175;\ ,* .,&#215; *.
, ,* | ___ || __ || __ || __ |.+ ·. , ',×·, , ,* | ___ || __ || __ || __ |.+ &#183;. , ',&#215;&#183;,
× . . . · ¯¯ .' ;| | | || | | || | | | · ' ' '. &#215; . . . &#183; &#175;&#175; .' ;| | | || | | || | | | &#183; ' ' '.
. + . + . + .* .* | | | || | | || | | | . . ·. .×. .' . + . + . + .* .* | | | || | | || | | | . . &#183;. .&#215;. .'
. +. , .* *--,| ¯¯ || ¯¯ || ¯¯ | . .* . +. , .* *--,| &#175;&#175; || &#175;&#175; || &#175;&#175; | . .*
,·.' ' ,+ |________| \______/ \______/ \______/ ×, ' · ' ,&#183;.' ' ,+ |________| \______/ \______/ \______/ &#215;, ' &#183; '
o · , o . · · . * , . . . ' , o &#183; , o . &#183; &#183; . * , . . . ' ,
, · × *· ·o. ' ,. .· ' . +, . ., ×' '· + , &#183; &#215; *&#183; &#183;o. ' ,. .&#183; ' . +, . ., &#215;' '&#183; +
o×· o ,× ., * o · '+, '* o '+, . .. ·' · · o&#215;&#183; o ,&#215; ., * o &#183; '+, '* o '+, . .. &#183;' &#183; &#183;
. + . . ' . . . + · +* ' ·' + . .+ . + . . ' . . . + &#183; +* ' &#183;' + . .+
The outpost diagnostics suite reports no critical problems at any of The outpost diagnostics suite reports no critical problems at any of
our outposts. The Lunar Biosphere has, so far, not needed assistance our outposts. The Lunar Biosphere has, so far, not needed assistance

View File

@ -118,26 +118,26 @@ alternating lines on the paper.
ilk. Mwuc ulnsfhcmq ifqhuaror fuauwawct aud yotyilu eseqnlefa ilk. Mwuc ulnsfhcmq ifqhuaror fuauwawct aud yotyilu eseqnlefa
lrgsknn grcobotct ggrsgalg. lrgsknn grcobotct ggrsgalg.
</p> </p>
<pre class="paper"> . × . .' . * · , ' · * ×·*' o .o' + × ×× , · . *+' ' <pre class="paper"> . &#215; . .' . * &#183; , ' &#183; * &#215;&#183;*' o .o' + &#215; &#215;&#215; , &#183; . *+' '
. . +× · . '· . ' *·*o · . , ·.·. o · ' . · . . +&#215; &#183; . '&#183; . ' *&#183;*o &#183; . , &#183;.&#183;. o &#183; ' . &#183;
+ , ·· o' ×. , + o , . ' '·· . ·.. , + , &#183;&#183; o' &#215;. , + o , . ' '&#183;&#183; . &#183;.. ,
o o .× .. . . ' · ·' ' · .* ' * o o .&#215; .. . . ' &#183; &#183;' ' &#183; .* ' *
|¯¯| |¯¯| /¯\ |¯¯¯¯¯|¯¯¯¯\¯¯\/¯¯/|¯¯\|¯|¯¯¯¯|¯¯| |¯¯|\¯¯\/¯|¯¯¯¯| /¯\ |¯¯¯¯¯\ |&#175;&#175;| |&#175;&#175;| /&#175;\ |&#175;&#175;&#175;&#175;&#175;|&#175;&#175;&#175;&#175;\&#175;&#175;\/&#175;&#175;/|&#175;&#175;\|&#175;|&#175;&#175;&#175;&#175;|&#175;&#175;| |&#175;&#175;|\&#175;&#175;\/&#175;|&#175;&#175;&#175;&#175;| /&#175;\ |&#175;&#175;&#175;&#175;&#175;\
| '-' |/ . \| |) | |) \ / | ' | ==| VV | \ / ==;/ . \| |) ; | '-' |/ . \| |) | |) \ / | ' | ==| VV | \ / ==;/ . \| |) ;
| .. / A | __| __/| | | . | ==;\ / | || ==/ A | < | .&#8211;. / A | __| __/| | | . | ==;\ / | || ==/ A | <
|__| |_/__.-._|__| |__| |__| |__|\_|____| \_/\_/ |__||___/__.-._|__|\__\ |__| |_/__.-._|__| |__| |__| |__|\_|____| \_/\_/ |__||___/__.-._|__|\__\
. · + ' *+ ·, ' * ,o . . * * oo , ,o + + . &#183; + ' *+ &#183;, ' * ,o . . * * oo , ,o + +
× ·,·× ' ·× * × ' , · , * ' &#215; &#183;,&#183;&#215; ' &#183;&#215; * &#215; ' , &#183; , * '
. , . o o /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ ,* .,× *. . , . o o /&#175;&#175;&#175;&#175;&#175;&#175;\ /&#175;&#175;&#175;&#175;&#175;&#175;\ /&#175;&#175;&#175;&#175;&#175;&#175;\ /&#175;&#175;&#175;&#175;&#175;&#175;\ ,* .,&#215; *.
, ,* | ___ || __ || __ || __ |.+ ·. , ',×·, , ,* | ___ || __ || __ || __ |.+ &#183;. , ',&#215;&#183;,
× . . . · ¯¯ .' ;| | | || | | || | | | · ' ' '. &#215; . . . &#183; &#175;&#175; .' ;| | | || | | || | | | &#183; ' ' '.
. + . + . + .* .* | | | || | | || | | | . . ·. .×. .' . + . + . + .* .* | | | || | | || | | | . . &#183;. .&#215;. .'
. +. , .* *--,| ¯¯ || ¯¯ || ¯¯ | . .* . +. , .* *--,| &#175;&#175; || &#175;&#175; || &#175;&#175; | . .*
,·.' ' ,+ |________| \______/ \______/ \______/ ×, ' · ' ,&#183;.' ' ,+ |________| \______/ \______/ \______/ &#215;, ' &#183; '
o · , o . · · . * , . . . ' , o &#183; , o . &#183; &#183; . * , . . . ' ,
, · × *· ·o. ' ,. .· ' . +, . ., ×' '· + , &#183; &#215; *&#183; &#183;o. ' ,. .&#183; ' . +, . ., &#215;' '&#183; +
o×· o ,× ., * o · '+, '* o '+, . .. ·' · · o&#215;&#183; o ,&#215; ., * o &#183; '+, '* o '+, . .. &#183;' &#183; &#183;
. + . . ' . . . + · +* ' ·' + . .+</pre> . + . . ' . . . + &#183; +* ' &#183;' + . .+</pre>
<p class="copyright"> <p class="copyright">
Copyright &#169; 2023-2025 Jan Danielzick (aka. BodgeMaster) &ndash; All rights reserved. Copyright &#169; 2023-2025 Jan Danielzick (aka. BodgeMaster) &ndash; All rights reserved.
</p> </p>

10
misc/find-unicode.py Normal file
View File

@ -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)

15
misc/unicode2html.py Normal file
View File

@ -0,0 +1,15 @@
import sys
document = open(sys.argv[1], "rb")
contents = document.read()
document.close()
string = contents.decode("utf8")
i = 0
while i<len(string):
if ord(string[i]) > 127:
string = string[:i] + "&#" + str(ord(string[i])) + ";" + string[i+1:]
i = i+1
print(string, end="")