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
14
15
16
17
18
fn main() {
    let inputs = "ra tajp hoas nhaf baf thuyr mua hoa hoef";

    let words = inputs.split(' ');

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

    println!("{}", result); // prints "ra tạp hóa nhà bà thủy mua hoa hòe"
}