Deutsch English Français Italiano |
<v3t150$1kia9$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Malcolm McLean <malcolm.arthur.mclean@gmail.com> Newsgroups: comp.lang.c Subject: Re: ASCII to ASCII compression. Date: Thu, 6 Jun 2024 20:02:56 +0100 Organization: A noiseless patient Spider Lines: 26 Message-ID: <v3t150$1kia9$1@dont-email.me> References: <v3snu1$1io29$2@dont-email.me> <v3spmv$1jbjq$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 06 Jun 2024 21:02:56 +0200 (CEST) Injection-Info: dont-email.me; posting-host="fd1a4517109bed24a981b559f1527ee3"; logging-data="1722697"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/JDSMdGEIyK7FCMaT0t6m8Shpi6mJSBjY=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:0cak7mC8hOE8d5HLPd/ty5OtwlA= In-Reply-To: <v3spmv$1jbjq$1@dont-email.me> Content-Language: en-GB Bytes: 2004 On 06/06/2024 17:55, bart wrote: > On 06/06/2024 17:25, Malcolm McLean wrote: >> >> Not strictly a C programming question, but smart people will see the >> relavance to the topicality, which is portability. >> >> Is there a compresiion algorthim which converts human language ASCII >> text to compressed ASCII, preferably only "isgraph" characters? >> >> So "Mary had a little lamb, its fleece was white as snow". >> >> Would become >> >> QWE£$543GtT£$"||x|VVBB? > > What's the problem with compressing to binary (using existing, efficient > utilities), then turning that binary into ASCII (like Mime or Base64)? > Because if a single bit flips in a zip archive, it's likely the entire archive will be lost. This scheme is robust. We can emed compressed text in programs, and if it is corruped, only a single line will become unreadable. -- Check out Basic Algorithms and my other books: https://www.lulu.com/spotlight/bgy1mm