cedict - Rust library for parsing CC-CEDICT
cedict is a Rust crate for reading and writing the CC-CEDICT Chinese-English dictionary format. It can be used to implement Chinese dictionaries in Rust. It can also serve as a tool for automating maintenance to the CEDICT project.
What is CC-CEDICT
CC-CEDICT, or formerly CEDICT, is a freely available Chinese-English dictionary. This library allows you to parse it.
Usage
let line = "你好 你好 [ni3 hao3] /Hello!/Hi!/How are you?/";
let parsed = parse_line.unwrap;
println!; // Prints "Hello!"
Parse a dictionary file and search for "Hello".
extern crate cedict;
use File;