There is the newest request , "The program does not create any new (base 64) file automatically, the output will be shown on a text box provided by the program. The users can copy (CTRL-C) from there and paste (CTRL-V) it into any other file of his/her own." I'll do it next weekend.
Bye,
Suyono H. Yaphar
Donald Drouin wrote:
The program "Text-Convert.zip"
by Suyono
has been added to the LaserTank
Utility Page.
http://pages.globetrotter.net/lasertank/LT_Utility/start3.htm
It's in the Applications folder.
It replace the previous Hex-Convert program.
Donald
----- Original Message -----
From: Suyono H. Yaphar
To: [email protected]
Sent: Saturday, September 20, 2003 8:32 PM
Subject: Conversion to Text (Base-64) and vice versa.Hi LaserTankers:
There were some comments and suggestions regarding 'Hex-Convert.exe', directly to my e-mail. One request is, "Avoid creating new text file after copying from the e-mail message. The better way is to copy (CTRL-C) from e-mail message then paste (CTRL-V) directly to the text-box provided by the program." See ReadMe.txt.
Furthermore, I'm using base-64 instead of base-16 (hexadecimal) to save space, so the program name is also changed to 'Text-Convert.exe'.
My hex was following the standard (0-9, A-F), but I've never seen others use base-64, so I just made my own: 0-9, A-Z, a-z, {, |. (10 + 26 + 26 + 1 + 1 = 64). I convert every three characters of the original file (base-256) to four of those printable characters. If the number of characters in the original file is not the multiplication of three, I put trailing one or two '}' character(s) at the end of the text file so the number of characters in the text file is the multiplication of four.
The text file is more compact and doesn't have spaces anymore.
Actually, some 'raw' file can be compressed. For example, LaserTank's level file has many contiguous zeroes, so something like '0000000000000' can be written as '(D*0)'. However many files as .gif files are already compact by design. Therefore, I don't want to go too far.
As an example, the following is the base-64 file of the previous level 'Path less traveled', which has been modified so it's 30/0 vs 27/64 now.
Have a nice weekend.
Regards,
Suyono H. YapharK65qQ4nbStDKSc5sBanMJ20W820W820W820W820W
5nGN1WC30mC30mC000000HOL50O3Jan6J4O700O6
1WmN1XG60mO61WO6JW0610O05WOL1WC61WO61We0
110601SK5GO31WO61WO600O81W0M5HO60mO61WO6
20061WO05nGN1WC61WO61aG00m0001OL50O3H4f0
Ia0700C0000N1XG60mC30mC30m0300005WOL1Wa0
000700000m0001SK5GO00000000620C0000M5HO6
01C60m001G0300005nGN1W0P1GC61Ha51W002nOL
50O04mO300050000000N1XG6000000001We00000
0W0000090000000000001r1XT6WWR6LpSo1qSc5s
PMnbP000000000000000001PRtKWOs5k86frStGW
OsnfOsiWT6Xb86PiOMSWT6yWPsLq87HePI1pRsnr
T6blRY1fRZeD2WqACp0WRMzsPNCW9Y0m87DeRtGk
3GeD2a5iT6LoRc5qQNPbR7ai87HoUI1qRo1pRsns
PI1qQ6bp86nbTcLi86bkEWqA3GeoDo1jRtPbSo0c
83Oq87DeRtHpBW00000000000000000000000000
0000000000000000000000000000000000000000
0000000000000000000000000000000000000000
0000000000000000000000000000000000000000
0000MMzkRo1fRY1AQtGk00000000000000000000
00000040