PREZIP-BIN(1)

πŸ“¦
version 0.60.8.3 Β· 2 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ prezip-bin β€” the word list compressor/decompressor πŸ’–

okay bestie, so this is prezip-bin from the Aspell Abbreviated User's Manual, and it's literally the little prefix-zip delta word list compressor/decompressor that feeds your spellchecker. it's giving tiny-tool-big-energy πŸŽ€


🌸 NAME 🌸

prezip-bin β€” prefix zip delta word list compressor/decompressor πŸ¦‹


πŸ’… SYNOPSIS πŸ’…

prezip-bin [ -V | -d | -z ]

🌈 DESCRIPTION 🌈

so prezip-bin squishes (compresses) and un-squishes (decompresses) sorted word lists, reading from standard input and writing to standard output. no files, no drama, just stdin ➑️ stdout ✨

prezip-bin is like word-list-compress(1)'s cooler cousin, except it allows a way bigger character set of {0x00...0x09, 0x0B, 0x0C, 0x0E...0xFF} and it handles multi-words larger than 255 characters in length πŸ‘‘ (yes bestie, 255+, we're not like other compressors).

it can also decompress word-list-compress(1)-compatible files, so it plays nice with the old stuff 🫢


πŸŽ€ COMMANDS πŸŽ€

prezip-bin accepts only one of these commands. one. that's the vibe check. pick one πŸ’…

  • -V β€” display the prezip-bin version number to standard output. that's it, that's the whole job ✨
  • -d β€” read a compressed word list from standard input and decompress it to standard output. this can be a word-list-compress(1) file or a prezip-bin compressed file πŸ’–
  • -z β€” read a binary word list from standard input and compress it to standard output. compression era πŸ¦‹

🌸 EXAMPLES 🌸

prezip-bin -d <wordlist.cwl >wordlist.txt

decompress file wordlist.cwl to text file wordlist.txt β€” unzipping but make it cute πŸ’…

prezip-bin -z <wordlist.txt >wordlist.pz 2>errors.txt

compress wordlist.txt to binary file wordlist.pz and send any error messages to a text file named errors.txt 😭 (the 2> is doing the heavy lifting here, bestie)

LC_COLLATE=C sort -u <wordlist.txt | prezip-bin -z >wordlist.pz

sort a word list, then pipe it to prezip-bin to create a compressed binary wordlist.pz file. sort then zip, in that order, no cap πŸ”₯

prezip-bin -d <words.pz | aspell create master ./words.rws

decompress a word list, then pipe it to aspell(1) to create a spelling list. please check the aspell(1) info manual for proper usage and options β€” do your homework bestie πŸ“š


πŸ¦‹ TIPS πŸ¦‹

prezip-bin 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 πŸ’€ (yes, bigger. it said what it said.)

unlike word-list-compress(1), if your word list has leading or trailing blank spaces for formatting purposes, you should remove them first before you compress your list using prezip-bin -z, otherwise those spaces will be included in the compressed binary output πŸ™ˆ

no fr fr, strip the spaces first. the spaces are not invited to the party.

πŸ’œ DIAGNOSTICS πŸ’œ

prezip-bin normally exits with a return code of 0. if it encounters an error, a message is sent to standard error output (stderr), and prezip-bin exits with a non-zero return value. error messages are listed below πŸ‘‡

  • (display help/usage message) β€” unknown command given on the command line, so prezip-bin displays a usage message to standard error output. it's basically saying "girl what" 😭
  • unknown format β€” the input file appears not to be an expected format, or may possibly be a more advanced format. the output file will be empty. nothing. void. πŸ’€
  • corrupt input β€” this is only for the decompression command -d. 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 😭
  • unexpected EOF β€” the input file appeared okay but ended sooner than expected, therefore the output file is not complete. it just… stopped. mid-sentence. iconic in a bad way πŸ™ˆ

🌈 SEE ALSO 🌈

aspell(1), aspell-import(1), run-with-aspell(1), word-list-compress(1)

Aspell is fully documented in its Texinfo manual. see the aspell entry in info for more complete documentation πŸ“–


πŸ’– REPORTING BUGS πŸ’–

for help, see the Aspell homepage at <http://aspell.net>. send bug reports/comments to the Aspell user list at the above address 🫢


πŸ‘‘ AUTHOR πŸ‘‘

this info page was written by Jose Da Silva <digital@joescat.com>. thank you for your service, legend ⭐


okay that's the whole page bestie, go compress something sorted and slay πŸ’…βœ¨

sign-off time: this was prezip-bin-0.1.2, dated 2005-09-30, and yes it's still serving looks from the Aspell Abbreviated User's Manual πŸŽ€

πŸ“¦ where this page comes from