vi 0.8.0

An input method library for vietnamese IME
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() {
    let inputs = "anh se4 lam2, lam2 ta6t1 ca3 de963 d9uo75c che6t1 thay em";

    let words = inputs.split(' ');

    let mut result = String::new();
    for word in words {
        vi::transform_buffer(&vi::VNI, word.chars(), &mut result);
        result.push(' ');
    }

    println!("{}", result); // prints " anh sẽ làm, làm tất cả để được chết thay em"
}