XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX BZT XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Small BZ-toggler with user-friendly menu, compressing also directories For the HP49, March 2001 BZT is the smallest available complete compressing-tool. As comfortable as the best BZ-tools, and it is fast. Avoid other compressors (for string integrity). After compressing a stack object, a menu for handling the resulting BZ-string appears with the following options: UBZi Appends BZT to the BZ-string for decompression. For internal use only, i.e., for your own HP49 which knows the global variable BZT. UBZe Appends a small BZ-decompessor (only 31 bytes) for external use, e.g., if a compressed program is sent to hpcalc.org or to somebody who may not have BZ-tools. Each HP49 executes the decompressing code. +EVL Appends the EVAL-command to a program. E.g., if applied to the program <<"BZ..." BZT >> one gets <<"BZ..." BZT EVAL>> (self-evaluation after decompression). Similarly, EVAL may be appended to a program generated by UBZe. Avoid to apply +EVL twice. This may lateron yield an error. BZT Just a menu access to BZT. Used, e.g., to decompress and compress again. The name BZT should be assigned to a key. If applied on a BZ-string, BZT decompresses it very fast. Note that for large objects (grobs and programs of more then 500 bytes, say) the compression rate strongly depends on how coloured your grob or program is. The less coloured the higher the compression rate. For a program "highly coloured" means using many different commands or words and leaving not much room for repetition. BZT also compresses a whole directory together with all its subdirectories and hidden files, whenever BZT gets the name of the directory as an argument. BZT leaves a single file in the directory, with the directories' name. A key-press immediately restores the original. BZT must not be renamed and should stay in HOME, maybe hidden, but assigned to a key. Still better, load OT49. It has it as an option. REMEMBER: a directory with a single equally named file indicates that the latter holds the packed directory. BZ is due to Mika Heiskanen, the decompressor essentially to Jurien N.E. Bos. BZT is small since the compressor decompresses itself before going to work. ----------------------------------------------------------------------------- Wolfgang Rautenberg raut@math.fu-berlin.de www.math.fu-berlin.de/usr/raut