Hi,

On Fri, Mar 22, 2013 at 5:57 PM, Marcos Favero Florence de Barros
<fav...@mpcnet.com.br> wrote:
>
> I'd like to use 7zip to compress successive versions of the book
> I'm writing. For files containing long, identical sections as in
> this case, 7zip produces archives *10 times* smaller than InfoZip.

I assume you mean 7-Zip using LZMA (as it actually supports a few
different methods). If all you want is LZMA compression, you can use
various tools, e.g. lzma.exe, xz.exe, 7za.exe, or similar. (The .ZIP
format can optionally support it too, but I'm not sure which archiver
actually does support it, WinZIP??)

Check iBiblio for various related files I uploaded:

http://ftp.ibiblio.org/pub/micro/pc-stuff/freedos/files/util/file/7zip/

Note that there are other decent archivers too (with their own
advantages and disadvantages), so you've got various options (zpaq,
paq8, uharc, bzip2) if all you want is better compression than Deflate
(ZIP).

> However, the DOS 7zip I'm using seems to have these limitations:
>
> - compresses sub-folders, but afterwards is unable to de-compress them

Are these LFN folders? Do you have DOSLFN or similar enabled? Are you
using the "x" command? What specific commandline (including options)
are you using? It should work fine.

> - does not recognize the "@" syntax (file containing list of files),
> although the manual says it should

Dunno, can't remember, but I know that DJGPP has its own handling of
response files beginning with '@', so maybe that's conflicting
somehow. I'd have to test further before saying for sure what the
problem is.

> - is unable to add a file to an existing archive

Existing .7z archive? That may have been fixed in later versions. But
actually I think this is due to a bug in the port where it assumes
LFNs when making temp files, e.g. blah.7z.tmp, which won't work in 8.3
(without weird renaming hacks, see BTTR Forum thread).

> The version I'm running is P7ZIP.EXE from 2009-03-05. The file size is
> 624,292 bytes. I use Japheth's HDPMI32.EXE.

That's old, and you don't need HDPMI32 specifically. Latest is my own
9.20.1 DJGPP compile from September of last year. I haven't really
messed with it much since then (it's quite a monster of a program!).
But I did hack up some quick notes on the BTTR Forum. Perhaps I should
try to finalize / finish / clean it up somehow, but I've got other
minor projects I'm more focused on. (I'm not really a "maintainer"
here, but lacking anyone else ... heh.)

http://www.bttr-software.de/forum/board_entry.php?id=11710

> The command line seems to need the option -md480k (dictionary size),
> which I found by trial and error, but since 7zip instructions are
> quite complicated, this may be inappropriate.

I haven't done any heavy-duty usage of 7-Zip, so I can't say I totally
understand all the intricacies. IIRC, you have to use "-ms=16m
-m0d=16m" to only use 16 MB of memory. But by default, using LZMA
-mx5, sticks to 16 MB, which should be a decent amount for most
people. You should be able to check the amount by doing "l -slt".
IIRC, it says something like "LZMA:22" which means 2**24, e.g. 16 MB.

Lemme try (PuppyLinux, p7zip 9.13) to give an example ... compressing
latest DJGPP GCC 4.8.0 RC1 cc1.exe with "7za a doydoy cc1.exe":

Method = LZMA:12m

Okay, so the file itself is only 12 MB, so it doesn't make the
dictionary larger than that. So that's good. Lemme try using a smaller
dictionary with "7za a -ms=8m -m0d=8m doydoy2 cc1.exe":

Method = LZMA:23

And 2**23 = 8338606 (aka, 8 MB).

> Thanks for any hint on those issues.

I know there have been a few recent alphas of 7-Zip for Windows, but I
don't think Igor ever finalized them yet. Lemme check ... latest seems
to be 9.30 alpha from late last October. Latest p7zip was still 9.20.1
last I checked, lemme be sure ... yup, still 9.20.1 is offered
(originally from March 2011).

http://www.7-zip.org/
http://sourceforge.net/projects/p7zip/

I realize all of this isn't totally ideal, but it's better than
nothing. You can also use the official 7ZA.EXE (from 7ZA920.ZIP) Win32
console version under Japheth's HX if you would rather not worry with
the quirky POSIX p7zip port.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to