LHa iconLHa 1.14i

LHa software is a console-based utility that uncompresses and compresses .lha packages.
LHa software is a console-based utility that uncompresses and compresses .lha packages.

LHA is a freeware compression utility and associated file format. It was created in 1988 by Haruyasu Yoshizaki, and originally named LHarc. A complete rewrite of LHarc, tentatively named LHx, was eventually released as LH. It was then renamed to LHA to avoid conflicting with the then-new MS-DOS 5.0 LH ("load high") command.

Although no longer much used in the West, LHA remains popular in Japan. It was used by id Software to compress installation files for their earlier games, including Doom and Quake. LHA has been ported to many operating systems and is the main archiving format on the Commodore Amiga computer. This is due to Aminet, the world's largest archive of Amiga related software and files, standardising on Stefan Boberg's implementation of LHA for the Amiga. Microsoft has released a Windows XP add-on, Microsoft Compressed (LZH) Folder Add-on, designed for the Japanese version of the operating system.

Compression methods

In a LZH archive, compression method is stored as a 5-byte text string, which is rare for archiver format.

Canonical LZH
LHarc compresses files using algorithm from Yoshizaki's earlier LZHUF product, which was modified from LZARI developed by Haruhiko Okumura, but uses Huffman coding instead of arithmetic coding. LZARI uses Lempel-Ziv-Storer-Szymanski with arithmetic coding.

-lh0-
No compression method is applied to the source data.

-lh1-
This method is introduced in LHarc version 1.

It supports 4KiByte sliding window, with support of maximum 60 bytes of matching length. Dynamic Huffman encoding is used.

-lh4-7-
Methods 4, 5, 6, 7 support 4, 8, 32, 64 KiByte sliding window respectively, with support of maximum 256 bytes of matching length. Static Huffman encoding is used. lh5 is first introduced in LHarc 2, followed by lh6 in LHA 2.66, lh7 in LHA 2.67 beta. LHA itself never compresses into lh4.

-lhd-
Technically it is not a compression method, but it is used in .LZH archive to indicate the compressed object is an empty directory.

Joe Jared extensions

Joe Jared extended LZSS to use larger dictionaries.

-lh8-, -lh9-, -lha-, -lhb-, -lhc-, -lhe-
Dictionary sizes are 64, 128, 256, 512, 1024, 2048 Ki bytes respectively.

UNLHA32 extensions

UNLHA32.DLL uses its own method for testing purposes.

-lhx-
It uses 128-256 Ki bytes dictionary.

PMarc extensions

These compression methods are created by PMarc, an CP/M archiver created by Miyo. The archive usually comes in .PMA extension.

-pm0-

-pm2-

LArc extensions

LArc uses the same file format as .LZH, but was written by Kazuhiko Miki, Haruhiko Okumura, Ken Masuyama, with extension name '.LZS'.

-lzs-
It supports 2KiByte sliding window, with support of maximum 17 bytes of matching length.

-lz2-
It is similar of -lzs-, except dictionary size and match length can be changed.

last updated on:
October 31st, 2007, 20:54 GMT
price:
FREE!
developed by:
tsugio
license type:
Freeware 
category:
ROOT \ System \ Archiving

FREE!

In a hurry? Add it to your Download Basket!

user rating 17

UNRATED
1.9/5
 

0/5

Add your review!

SUBMIT