| Crates.io | abridge |
| lib.rs | abridge |
| version | 1.1.6 |
| created_at | 2021-06-05 08:19:45.20072+00 |
| updated_at | 2021-06-07 07:18:02.199488+00 |
| description | Compress a sorted word list or decompress a file compressed by abridge or word-list-compress. |
| homepage | https://github.com/passthroo/abridge |
| repository | https://github.com/passthroo/abridge |
| max_upload_size | |
| id | 406394 |
| size | 47,751 |
Compress a sorted word list (often called a dictionary) or decompress a file compressed by abridge or GNU
word-list-compress.
abridge is a port of GNU word-list-compress to Rust. It doesn't have
anything to do with the GNU Aspell project. word-list-compress is about 150 SLOC. abridge is
about 50 SLOC. They perform identically.
abridge is both a Rust library and CLI, so you can use abridge in your Rust project or run it by itself. The CLI
expects input from stdin and will output to stdout.
It only relies on clap and Rust's built-in substring crate.
You'll need the Rust compiler and Cargo. The easiest way to do that is to get rustup.
cargo install abridge
See abridge --help.
abridge -c < words.txt # compress words.txt
abridge --decompress < words.tzip # decompress words.tzip
abridge --compress < words.txt > words.tzip # compress words.txt and save to words.tzip
abridge can compress word lists where:
Words may include uppercase characters.
abridge can decompress files compressed by abridge or word-list-compress alike.
Run cargo test.
abridge is licensed under GNU General Public License.