Deutsch   English   Français   Italiano  
<v3ukbb$20s0s$3@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: David Brown <david.brown@hesbynett.no>
Newsgroups: comp.lang.c
Subject: Re: ASCII to ASCII compression.
Date: Fri, 7 Jun 2024 11:36:43 +0200
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <v3ukbb$20s0s$3@dont-email.me>
References: <v3snu1$1io29$2@dont-email.me> <v3spmv$1jbjq$1@dont-email.me>
 <v3t150$1kia9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 07 Jun 2024 11:36:44 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ec5c1f9082215424827ae25d429fe7a7";
	logging-data="2125852"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+t9UF3ptvJNcu9SLWF9X3xk6Mfg9e/mSA="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.11.0
Cancel-Lock: sha1:MfXHhitqLr1JecgIQhsRlDFcFA4=
Content-Language: en-GB
In-Reply-To: <v3t150$1kia9$1@dont-email.me>
Bytes: 2392

On 06/06/2024 21:02, Malcolm McLean wrote:
> 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.

Ah, you want something that will work like your newsreader program that 
randomly changes letters or otherwise corrupts your spelling while 
leaving most of it readable?  :-)

Pass the data through a compressor and then add forward error checking 
mechanisms such as Reed-Solomon codes.  Then convert to ASCII base64 or 
similar.