Sujet : Re: ASCII to ASCII compression.
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.lang.cDate : 06. Jun 2024, 19:15:43
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240606110604.385@kylheku.com>
References : 1
User-Agent : slrn/pre1.0.4-9 (Linux)
On 2024-06-06, Malcolm McLean <
malcolm.arthur.mclean@gmail.com> 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?
That could be any algorithm, followed by encoding of binary data
to ASCII.
https://en.wikipedia.org/wiki/Binary-to-text_encodingThat page has a table of various schemes and their packing density.
Some like Base91 or Base94 use almost all the printable characters
and have better than 80% coding efficiency.
-- TXR Programming Language: http://nongnu.org/txrCygnal: Cygwin Native Application Library: http://kylheku.com/cygnalMastodon: @Kazinator@mstdn.ca