Efficient Dict Format Lookup Library
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
tests
.gitignore
Cargo.toml
LICENSE.md
README.md

README.md

LibDict -- Read *.dict(.dz) dictionary files

This crate (library) provides a Rust implementation for parsing the dict file format, as used by the dictd server.

License

Please see the file LiCENSE.md for more information.

Example Usage

Citing from the crates documentation:

fn main() {
    let index_file = "/usr/share/dictd/freedict-lat-deu.index";
    let dict_file = "/usr/share/dictd/freedict-lat-deu.dict.dz";
    let mut latdeu = dict::load_dictionary_from_file(dict_file, index_file).unwrap();
    // hey: rust!
    println!("{}", latdeu.lookup("ferrugo").unwrap());
}