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 = "hoiwx anh tifnh yeue gioosng nhuw cais cheets nuotos trooi taats car";

    let words = inputs.split(' ');

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

    println!("{}", result); // prints "hỡi anh tình yêu giống như cái chết nuốt trôi tất cả"
}