Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

...and scantily clad females, of course. Who cares if it's below zero outside. -- Linus Torvalds


computers / comp.compression / Re: Compact Pro

SubjectAuthor
* Compact ProEli the Bearded
`* Re: Compact Profirstname lastname
 `* Re: Compact ProEli the Bearded
  `* Re: Compact ProLLG
   `* Re: Compact ProEli the Bearded
    `* Re: Compact ProLLG
     `- Re: Compact ProEli the Bearded

1
Subject: Re: One Way To Output LZ77 codes
From: Gerald R. Tamayo
Newsgroups: comp.compression
Date: Wed, 17 Mar 2021 09:45 UTC
References: 1 2 3 4
X-Received: by 2002:a05:620a:22f5:: with SMTP id p21mr3712261qki.225.1615974327701;
Wed, 17 Mar 2021 02:45:27 -0700 (PDT)
X-Received: by 2002:a25:424f:: with SMTP id p76mr3418370yba.109.1615974327500;
Wed, 17 Mar 2021 02:45:27 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.compression
Date: Wed, 17 Mar 2021 02:45:27 -0700 (PDT)
In-Reply-To: <67b9ba67-c9fc-4231-b231-2859110197aen@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:4450:83de:c400:2c23:a490:a181:1374;
posting-account=x4y9KQoAAAAgtc4BPWDOKB7Ls5RAV5pf
NNTP-Posting-Host: 2001:4450:83de:c400:2c23:a490:a181:1374
References: <b5e3ca3e-579f-4d17-b598-d759e2f416ee@googlegroups.com>
<c1cbbfcb-3f5e-474a-9627-4369ca4dbf9dn@googlegroups.com> <601398a4-d579-4bf0-99e9-af3bf0ca4752n@googlegroups.com>
<67b9ba67-c9fc-4231-b231-2859110197aen@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3be433da-97c4-45d2-991d-53b32d6bce1an@googlegroups.com>
Subject: Re: One Way To Output LZ77 codes
From: com...@gmail.com (Gerald R. Tamayo)
Injection-Date: Wed, 17 Mar 2021 09:45:27 +0000
Content-Type: text/plain; charset="UTF-8"
View all headers
Perhaps this simple illustration will help:


Reduced Length LZ (RLLZ)
(A very compact LZ. Made possible by deferred literals output.)

aacbbdeaabb   <- input source
012345678910 <- index

encode all strings first:

(size of string, string, number of occurrences of strings), [positions in file or block]

aa: (2, aa, 2), [0, 7]
bb: (2, bb, 2), [3, 9]

encode literals last: [cde]

Decompress:

Decode all strings first;
Decode literals.
(The strings and literals are nicely in their correct order or sequences.)


Subject: Re: Compact Pro
From: firstname lastname
Newsgroups: comp.compression
Date: Fri, 16 Apr 2021 00:50 UTC
References: 1
X-Received: by 2002:ac8:6b9a:: with SMTP id z26mr5607398qts.14.1618534218515; Thu, 15 Apr 2021 17:50:18 -0700 (PDT)
X-Received: by 2002:a25:69ce:: with SMTP id e197mr8422972ybc.448.1618534218309; Thu, 15 Apr 2021 17:50:18 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.compression
Date: Thu, 15 Apr 2021 17:50:18 -0700 (PDT)
In-Reply-To: <eli$2104042227@qaz.wtf>
Injection-Info: google-groups.googlegroups.com; posting-host=211.26.155.69; posting-account=D1R3uwoAAACaDq3ZNzlr_Lf1nVYCs_7s
NNTP-Posting-Host: 211.26.155.69
References: <eli$2104042227@qaz.wtf>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <cfe45b0e-e761-47d0-8a6a-4571ede468b8n@googlegroups.com>
Subject: Re: Compact Pro
From: nmtpy...@gmail.com (firstname lastname)
Injection-Date: Fri, 16 Apr 2021 00:50:18 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 9
View all headers
On Monday, April 5, 2021 at 12:31:21 PM UTC+10, Eli the Bearded wrote:
In the 1990s, I registed my copy of Compact Pro and used it extensively
for Mac file compression. Besides firing up an emulator to run an
extractor, anyone know how to decompress the .cpt files it made?

Old Mac and DOS binaries, but I was hoping for something I could run on
Linux (preferred) or NetBSD.

try this, it says it supports compact pro:
http://ibiblio.org/pub/linux/utils/compress/macutils.tar.gz


Subject: Re: Compact Pro
From: Eli the Bearded
Newsgroups: comp.compression
Organization: Some absurd concept
Date: Sat, 17 Apr 2021 04:58 UTC
References: 1 2
Path: i2pn2.org!i2pn.org!news.swapon.de!goblin2!goblin3!goblin.stu.neva.ru!panix!qz!not-for-mail
From: *...@eli.users.panix.com (Eli the Bearded)
Newsgroups: comp.compression
Subject: Re: Compact Pro
Date: Sat, 17 Apr 2021 04:58:47 +0000 (UTC)
Organization: Some absurd concept
Lines: 26
Message-ID: <eli$2104170038@qaz.wtf>
References: <eli$2104042227@qaz.wtf> <cfe45b0e-e761-47d0-8a6a-4571ede468b8n@googlegroups.com>
NNTP-Posting-Host: panix5.panix.com
X-Trace: reader1.panix.com 1618635527 15079 166.84.1.5 (17 Apr 2021 04:58:47 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Sat, 17 Apr 2021 04:58:47 +0000 (UTC)
X-Liz: It's actually happened, the entire Internet is a massive game of Redcode
X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix
X-US-Congress: Moronic Fucks.
X-Attribution: EtB
XFrom: is a real address
Encrypted: double rot-13
User-Agent: Vectrex rn 2.1 (beta)
View all headers
In comp.compression, firstname lastname  <nmtpycjz@gmail.com> wrote:
On Monday, April 5, 2021 at 12:31:21 PM UTC+10, Eli the Bearded wrote:
Old Mac and DOS binaries, but I was hoping for something I could run on
Linux (preferred) or NetBSD.
try this, it says it supports compact pro:
http://ibiblio.org/pub/linux/utils/compress/macutils.tar.gz

Says it does, but apparently not. It didn't compile out of the box,
because some variables were declared 'extern' and 'static', so I
dropped the statics, eg:

< static char *lzh_pointer;

       char *lzh_pointer;

But it just gives me CRC errors. These files do decompress with the DOS
program I have (but then I get DOS names out, with long filenames
shortened with tildes), so I don't believe the files are corrupt as a
CRC might imply.

Oh well. Thanks for the effort. I may find a use for other things in
that package.

Elijah
------



Subject: Re: Compact Pro
From: LLG
Newsgroups: comp.compression
Date: Sat, 7 Aug 2021 11:57 UTC
References: 1 2 3
X-Received: by 2002:a05:622a:1185:: with SMTP id m5mr8991340qtk.296.1628337454618;
Sat, 07 Aug 2021 04:57:34 -0700 (PDT)
X-Received: by 2002:a25:541:: with SMTP id 62mr18507695ybf.367.1628337454399;
Sat, 07 Aug 2021 04:57:34 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.compression
Date: Sat, 7 Aug 2021 04:57:34 -0700 (PDT)
In-Reply-To: <eli$2104170038@qaz.wtf>
Injection-Info: google-groups.googlegroups.com; posting-host=178.49.152.194; posting-account=y0dFrQoAAADOjqggM6Dv8j29KcFeVnzC
NNTP-Posting-Host: 178.49.152.194
References: <eli$2104042227@qaz.wtf> <cfe45b0e-e761-47d0-8a6a-4571ede468b8n@googlegroups.com>
<eli$2104170038@qaz.wtf>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <da2e2c5b-571d-4ab1-a0fa-4502925ecfa6n@googlegroups.com>
Subject: Re: Compact Pro
From: tanarris...@yahoo.com (LLG)
Injection-Date: Sat, 07 Aug 2021 11:57:34 +0000
Content-Type: text/plain; charset="UTF-8"
View all headers
But it just gives me CRC errors. These files do decompress with the DOS
program I have (but then I get DOS names out, with long filenames
shortened with tildes), so I don't believe the files are corrupt as a
CRC might imply.

I looked at the DOS unpacker and the macutils sources and they look very close and should work OK. I could debug the issue if you provide some CompactPro archives to test.


Subject: Re: Compact Pro
From: Eli the Bearded
Newsgroups: comp.compression
Organization: Some absurd concept
Date: Sun, 8 Aug 2021 06:20 UTC
References: 1 2 3 4
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix5.panix.com!qz!not-for-mail
From: *...@eli.users.panix.com (Eli the Bearded)
Newsgroups: comp.compression
Subject: Re: Compact Pro
Date: Sun, 8 Aug 2021 06:20:11 -0000 (UTC)
Organization: Some absurd concept
Message-ID: <eli$2108080218@qaz.wtf>
References: <eli$2104042227@qaz.wtf> <cfe45b0e-e761-47d0-8a6a-4571ede468b8n@googlegroups.com> <eli$2104170038@qaz.wtf> <da2e2c5b-571d-4ab1-a0fa-4502925ecfa6n@googlegroups.com>
Injection-Date: Sun, 8 Aug 2021 06:20:11 -0000 (UTC)
Injection-Info: reader1.panix.com; posting-host="panix5.panix.com:166.84.1.5";
logging-data="8835"; mail-complaints-to="abuse@panix.com"
User-Agent: Vectrex rn 2.1 (beta)
X-Liz: It's actually happened, the entire Internet is a massive game of Redcode
X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix
X-US-Congress: Moronic Fucks.
X-Attribution: EtB
XFrom: is a real address
Encrypted: double rot-13
View all headers
In comp.compression, LLG  <tanarriscourge@yahoo.com> wrote:
But it just gives me CRC errors. These files do decompress with the DOS
program I have (but then I get DOS names out, with long filenames
shortened with tildes), so I don't believe the files are corrupt as a
CRC might imply.

I looked at the DOS unpacker and the macutils sources and they look
very close and should work OK. I could debug the issue if you provide
some CompactPro archives to test.

Ooo. That's exciting.

Sure:

https://qaz.wtf/tmp/compactpro/

Eight files of various sizes and content.

Elijah
------
has not seen the DOS program's source code


Subject: Re: Compact Pro
From: LLG
Newsgroups: comp.compression
Date: Sun, 8 Aug 2021 17:33 UTC
References: 1 2 3 4 5
X-Received: by 2002:a37:9d3:: with SMTP id 202mr12062570qkj.369.1628444017128;
Sun, 08 Aug 2021 10:33:37 -0700 (PDT)
X-Received: by 2002:a25:e006:: with SMTP id x6mr24896937ybg.341.1628444016979;
Sun, 08 Aug 2021 10:33:36 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.compression
Date: Sun, 8 Aug 2021 10:33:36 -0700 (PDT)
In-Reply-To: <eli$2108080218@qaz.wtf>
Injection-Info: google-groups.googlegroups.com; posting-host=178.49.152.194; posting-account=y0dFrQoAAADOjqggM6Dv8j29KcFeVnzC
NNTP-Posting-Host: 178.49.152.194
References: <eli$2104042227@qaz.wtf> <cfe45b0e-e761-47d0-8a6a-4571ede468b8n@googlegroups.com>
<eli$2104170038@qaz.wtf> <da2e2c5b-571d-4ab1-a0fa-4502925ecfa6n@googlegroups.com>
<eli$2108080218@qaz.wtf>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <88b4d523-8841-48ba-99e7-4a3ee28af4efn@googlegroups.com>
Subject: Re: Compact Pro
From: tanarris...@yahoo.com (LLG)
Injection-Date: Sun, 08 Aug 2021 17:33:37 +0000
Content-Type: text/plain; charset="UTF-8"
View all headers
Eight files of various sizes and content.

That's easy. Replace the entire table in crc/zip.c with the normal one starting with 0x77073096 (easily found online).

I also made a Python script to extract the archives.


Subject: Re: Compact Pro
From: Eli the Bearded
Newsgroups: comp.compression
Organization: Some absurd concept
Date: Mon, 9 Aug 2021 01:10 UTC
References: 1 2 3 4
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix5.panix.com!qz!not-for-mail
From: *...@eli.users.panix.com (Eli the Bearded)
Newsgroups: comp.compression
Subject: Re: Compact Pro
Date: Mon, 9 Aug 2021 01:10:14 -0000 (UTC)
Organization: Some absurd concept
Message-ID: <eli$2108082014@qaz.wtf>
References: <eli$2104042227@qaz.wtf> <da2e2c5b-571d-4ab1-a0fa-4502925ecfa6n@googlegroups.com> <eli$2108080218@qaz.wtf> <88b4d523-8841-48ba-99e7-4a3ee28af4efn@googlegroups.com>
Injection-Date: Mon, 9 Aug 2021 01:10:14 -0000 (UTC)
Injection-Info: reader1.panix.com; posting-host="panix5.panix.com:166.84.1.5";
logging-data="23378"; mail-complaints-to="abuse@panix.com"
User-Agent: Vectrex rn 2.1 (beta)
X-Liz: It's actually happened, the entire Internet is a massive game of Redcode
X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix
X-US-Congress: Moronic Fucks.
X-Attribution: EtB
XFrom: is a real address
Encrypted: double rot-13
View all headers
In comp.compression, LLG  <tanarriscourge@yahoo.com> wrote:
Eight files of various sizes and content.
That's easy. Replace the entire table in crc/zip.c with the normal one
starting with 0x77073096 (easily found online).

I found that table here http://www.mrob.com/pub/comp/crc-all.html

Tricksy thing that macutils source. crc/zip.c is a generated file but
the makefile doesn't make that clear. When I did "rm *.o; make" in
the crc directory, it built makecrc first and overwrote my changes
to zip.c, producing a libcrc.a that was still broken. I thought I
might have forgotten to save the changes when everything worked
exactly as before.

$ diff -u makefile.orig makefile
--- makefile.orig       2021-08-08 18:06:24.871687850 -0700
+++ makefile    2021-08-08 18:06:45.539250712 -0700
@@ -10,10 +10,10 @@
  fi
 
 clean:
- -rm -f $(CRCC) $(CRCO) libcrc.a makecrc makecrc.o
+ -rm -f $(CRCO) libcrc.a makecrc makecrc.o
 
 $(CRCC): makecrc
- ./makecrc
+ echo NOT RUNNING ./makecrc
 
 makecrc: makecrc.o
  cc -O -o makecrc makecrc.o
$

I also made a Python script to extract the archives.

With a working CRC this tool seems pretty good. Thanks for the pointer.

Elijah
------
also upped the PATCHLEVEL define for the build


1
rocksolid light 0.7.2
clearneti2ptor