词条 | LHA (file format) |
释义 |
| name = LHA | extension = .lzh, .lha | mime = application/x-lzh-compressed | owner = Haruyasu Yoshizaki (Yoshi) | uniform type = public.archive.lha | type code = " LHA " (L-H-A-SPACE)| genre = Data compression | containerfor = | containedby = | extendedfrom = | extendedto = }} LHA is a freeware compression utility and associated file format. It was created in 1988 by {{nihongo|Haruyasu Yoshizaki|吉崎栄泰|Yoshizaki Haruyasu}}, 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. According to early documentation, LHA is pronounced like La. 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 still the main archiving format used on the Amiga computer, although it competed with LZX in the mid 1990s. This was 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.[1] The Japanese version of Windows 7 ships with the LZH folder add-on built-in.[2] Users of non-Japanese versions of Windows 7 Enterprise and Ultimate can also install the LZH folder add-on by installing the optional Japanese language pack from Windows Update. Compression methodsIn an LZH archive, the compression method is stored as a five-byte text string. These are the third through seventh bytes of the file. Canonical LZHLHarc compresses files using an algorithm from Yoshizaki's earlier LZHUF product, which was modified from LZARI developed by {{nihongo|Haruhiko Okumura|奥村晴彦|Okumura Haruhiko}}, but uses Huffman coding instead of arithmetic coding. LZARI uses Lempel–Ziv–Storer–Szymanski with arithmetic coding.
No compression method is applied to the source data.
This method is introduced in LHarc version 1. It supports 4 KiB sliding window, with support of maximum 60 bytes of matching length. Dynamic Huffman encoding is used.
This method supports 8 KiB sliding window, with support of maximum 256 bytes of matching length. Dynamic Huffman encoding is used.
Methods 4, 5, 6, 7 support 4, 8, 32, 64 KiB 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 (MSDOS), lh7 in LHA 2.67 beta (MSDOS). LHA itself never compresses into lh4.
Technically it is not a compression method, but it is used in .LZH archive to indicate that the compressed object is an empty directory. Joe Jared extensionsJoe Jared extended LZSS to use larger dictionaries.
Dictionary sizes are 64, 128, 256, 512, 1024, 2048 KiB respectively. UNLHA32 extensionsUNLHA32.DLL uses its own method for testing purposes.
It uses 128–256 KiB dictionary. PMarc extensionsThese compression methods are created by PMarc, a CP/M archiver created by Miyo. The archive usually has a .PMA extension.
PopCom compressed executable archive.
No compression method is applied to the source data.
Used to indicate PMarc self-extracting archive. LArc extensionsLArc uses the same file format as .LZH, but was written by Kazuhiko Miki, Haruhiko Okumura, Ken Masuyama, with extension name ".LZS".[3]
It supports 2 KiB sliding window, with support of maximum 17 bytes of matching length.
It is similar to lzs, except dictionary size and match length can be changed.
No compression method is applied to the source data.
It supports 4 KiB sliding window, with support of maximum 17 bytes of matching length.
IssuesLHICE/ICEThere are copies of LHICE marked as version 1.14. According to Okumura, LHICE is not written by Yoshi.[4] y2k11 bugBecause of a bug, timestamps since the year 2011 will be set to 1980, meaning that some utilities need to be patched.[5][6] See also{{Portal|Amiga}}
References1. ^{{cite web|url=http://www.microsoft.com/globaldev/outreach/dnloads/LZH_add-on.mspx |title=Archived copy |accessdate=2007-10-05 |deadurl=yes |archiveurl=https://web.archive.org/web/20070819165530/http://www.microsoft.com/globaldev/outreach/dnloads/LZH_add-on.mspx |archivedate=2007-08-19 |df= }} 2. ^{{cite web|url=http://support.microsoft.com/kb/971613 |title=Windows 7 で (LZH の圧縮に Microsoft) フォルダーのアドインをインストールできません |website=Support.microsoft.com |accessdate=2016-07-17}} 3. ^{{cite web|url=http://www.lzh-zip.com/extension/ext31.html |title=圧縮データの拡張子 ".LZS" | 圧縮・解凍ソフトのガイド |website=Lzh-zip.com |date= |accessdate=2016-07-17}} 4. ^{{cite web|url=http://oku.edu.mie-u.ac.jp/~okumura/compression/history.html|title=History of Data Compression in Japan|website=Oku.edu.mie-u.ac.jp|accessdate=12 July 2016}} 5. ^{{cite web|url=http://aminet.net/package/util/arc/lha138pch|title=Aminet - util/arc/lha138pch.lha|website=Aminet.net|accessdate=12 July 2016}} 6. ^{{cite web|url=http://aminet.net/package/util/arc/lha_68k|title=Aminet - util/arc/lha_68k.lha|website=Aminet.net|accessdate=12 July 2016}} External links
6 : Archive formats|Data compression software|File archivers|Amiga|1988 software|Japanese inventions |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。