Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!ai-lab!zurich.ai.mit.edu!jaffer From: jaffer@zurich.ai.mit.edu (Aubrey Jaffer) Newsgroups: comp.compression Subject: Re: How to code to a text file. Message-ID: Date: 24 Mar 91 00:26:10 GMT References: <550@spam.ua.oz> Sender: news@ai.mit.edu Followup-To: comp.compression Organization: M.I.T. Artificial Intelligence Lab. Lines: 11 In-reply-to: ross@spam.ua.oz.au's message of 23 Mar 91 02:53:27 GMT I would also very much like to be able to encode to printable characters. My reasoning went very much like yours except that it makes sense to encode the length-offset pairs of a LZ scheme directly into pairs of printable characters by use of a table. If 93 characters are available, for instance, 93^2 -> (31x3)^2 which can be split into a range of 31^2 -> 961 for the offset and 3^2 -> 9 for the length field. These ranges are reasonable for encoding as I understand it. By eliminating the extra translations step the only penalty is the size of the tranlsation table (about 64k).