man-pages/man1/prezip-bin.1.html
2021-03-31 01:06:50 +01:00

188 lines
5.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of PREZIP-BIN</TITLE>
</HEAD><BODY>
<H1>PREZIP-BIN</H1>
Section: Aspell Abbreviated User's Manual (1)<BR>Updated: 2005-09-30<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
prezip-bin - prefix zip delta word list compressor/decompressor
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>prezip-bin</B>
[ <B>-V</B> | <B>-d</B> | <B>-z</B> ]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<B>prezip-bin</B>
compresses/decompresses sorted word lists from standard input to
standard output.
<P>
<I>Prezip-bin</I>
is similar to
<I><A HREF="/cgi-bin/man/man2html?1+word-list-compress">word-list-compress</A>(1)</I>
but it allows a larger character set of
{0x00...0x09, 0x0B, 0x0C, 0x0E...0xFF} and multi-words larger than 255
characters in length. It can also decompress
<I><A HREF="/cgi-bin/man/man2html?1+word-list-compress">word-list-compress</A>(1)</I>
compatible files.
<A NAME="lbAE">&nbsp;</A>
<H2>COMMANDS</H2>
<I>Prezip-bin</I>
accepts only one of these commands.
<DL COMPACT>
<DT id="1"><B>-V</B><DD>
Display
<I>prezip-bin</I>
version number to standard output.
<DT id="2"><B>-d</B><DD>
Read a compressed word list from standard input and decompress it to
standard output. This can be a
<I><A HREF="/cgi-bin/man/man2html?1+word-list-compress">word-list-compress</A>(1)</I>
or a
<I>prezip-bin</I>
compressed file.
<DT id="3"><B>-z</B><DD>
Read a binary word list from standard input and compress it to
standard output.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>EXAMPLES</H2>
<DL COMPACT>
<DT id="4">prezip-bin <B>-d</B> &lt;wordlist.cwl &gt;wordlist.txt<DD>
Decompress file wordlist.cwl to text file wordlist.txt
<DT id="5">prezip-bin <B>-z</B> &lt;wordlist.txt &gt;wordlist.pz 2&gt;errors.txt<DD>
Compress wordlist.txt to binary file wordlist.pz and send any error
messages to a text file named errors.txt
<DT id="6">LC_COLLATE=C sort -u &lt;wordlist.txt <B>|</B> prezip-bin -z &gt;wordlist.pz<DD>
Sort a word list, then pipe it to
<I>prezip-bin</I>
to create a compressed binary wordlist.pz file.
<DT id="7">prezip-bin -d &lt;words.pz <B>|</B> aspell create master ./words.rws<DD>
Decompress a wordlist, then pipe it to
<I><A HREF="/cgi-bin/man/man2html?1+aspell">aspell</A>(1)</I>
to create a spelling list. Please check the
<I><A HREF="/cgi-bin/man/man2html?1+aspell">aspell</A>(1)</I>
info manual for proper usage and options.
</DL>
<A NAME="lbAG">&nbsp;</A>
<H2>TIPS</H2>
<I>Prezip-bin</I>
is best used with sorted word list type files. It is not a general
purpose compression program since resulting files may actually
increase in size.
<P>
Unlike
<I><A HREF="/cgi-bin/man/man2html?1+word-list-compress">word-list-compress</A>(1)</I>
if your word list has leading or trailing blank spaces for formatting
purposes, you should remove them first before you compress your list
using
<I>prezip-bin -z</I>
, otherwise those spaces will be included in the compressed binary
output.
<A NAME="lbAH">&nbsp;</A>
<H2>DIAGNOSTICS</H2>
<I>Prezip-bin</I>
normally exits with a return code of 0. If it encounters an error,
a message is sent to standard error output (stderr), and
<I>prezip-bin</I>
exits with a non-zero return value. Error messages are listed below:
<DL COMPACT>
<DT id="8"><B>(display help/usage message)</B><DD>
Unknown command given on the command line so
<I>prezip-bin</I>
displays a usage message to standard error output.
<DT id="9"><B>unknown format</B><DD>
The input file appears not to be an expected format, or may possibly be
a more advanced format. The output file will be empty.
<DT id="10"><B>corrupt input</B><DD>
This is only for the decompression command <B>-d</B>. The input file
appeared to be of a correct format, but something appears wrong now.
There may be some valid data in output, but due to input corruption,
the rest of the file can not be completed.
<DT id="11"><B>unexpected EOF</B><DD>
The input file appeared okay but ended sooner than expected, therefore
the output file is not complete.
</DL>
<A NAME="lbAI">&nbsp;</A>
<H2>SEE ALSO</H2>
<P>
<B><A HREF="/cgi-bin/man/man2html?1+aspell">aspell</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?1+aspell-import">aspell-import</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?1+run-with-aspell">run-with-aspell</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?1+word-list-compress">word-list-compress</A></B>(1)
<P>
Aspell is fully documented in its Texinfo manual. See the
`<B>aspell</B>'
entry in
<B>info</B>
for more complete documentation.
<A NAME="lbAJ">&nbsp;</A>
<H2>REPORTING BUGS</H2>
For help, see the Aspell homepage at &lt;<A HREF="http://aspell.net">http://aspell.net</A>&gt;. Send bug
reports/comments to the Aspell user list at the above address.
<A NAME="lbAK">&nbsp;</A>
<H2>AUTHOR</H2>
This info page was written by Jose Da Silva &lt;<A HREF="mailto:digital@joescat.com">digital@joescat.com</A>&gt;.
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="12"><A HREF="#lbAB">NAME</A><DD>
<DT id="13"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="14"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="15"><A HREF="#lbAE">COMMANDS</A><DD>
<DT id="16"><A HREF="#lbAF">EXAMPLES</A><DD>
<DT id="17"><A HREF="#lbAG">TIPS</A><DD>
<DT id="18"><A HREF="#lbAH">DIAGNOSTICS</A><DD>
<DT id="19"><A HREF="#lbAI">SEE ALSO</A><DD>
<DT id="20"><A HREF="#lbAJ">REPORTING BUGS</A><DD>
<DT id="21"><A HREF="#lbAK">AUTHOR</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:25 GMT, March 31, 2021
</BODY>
</HTML>