arabic_reshaper 0.4.2

Reconstruct Arabic sentences to be used in applications that doesn't support Arabic script.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::arabic_reshape;
#[test]
fn test_default_reshaping() {
    let cases = [
        ("چۆمان", "ﭼﯚﻣﺎﻥ"),
        ("گۆیژە", "ﮔﯚﯾﮋە"),
        ("ﺧﯚﻣﺎﻥ ﺧﯚﺵ", "ﺧﯚﻣﺎﻥ ﺧﯚﺵ"),
    ];
    cases.iter().for_each(|case| {
        assert_eq!(arabic_reshape(case.0), case.1);
    });
}