Arabic Reshaper Rust

Build Status unsafe forbidden MIT

Reconstruct Arabic sentences to be used in applications that don't support Arabic script.

Usage:

resahpe a single line of string ```rs use sentencesreshaper::{ArabicReshaper, reshapeline};

let reshaper = ArabicReshaper::default();

// You can reshape just a single string using println!("{}", reshaper.reshape("سلام دنیا")); // or using reshape_line method if you dont want to construct the [ArabicReshaper] // and you just want to reshape a few strings with default config println!("{}", reshapeline("سلام دنیا")); // Both will reconstruct the string and print ﺳﻼﻡ ﺩﻧﯿﺎ reshape a slice of strings rs use sentencesreshaper::{ArabicReshaper}

let reshaper = ArabicReshaper::default();

let lines = [ "سلام", "سلام، خوبی؟", ];

println!("{:#?}", reshaper.reshape_lines(lines)); // or you can just use reshape method in a loop... the choice is yours. ``` You can check example or test directory for more examples.

Optional features:

Credits:

this project is based on the awesome python-arabic-reshaper. you can check original project in this repository