arabic_reshaper 0.2.1

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

arabic-reshaper-rs

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

This crate is python-arabic-reshaper ported to rust.

Like python-arabic-reshaper it reshapes the letters, but it doesnt reverse the writing, the user is responsible for that: you can look at Unicode bidirectional algorithm or simply try reversing the characters orders and see if that works for you

Usage:

arabic_reshape:

Reshape letters

use arabic_reshaper::arabic_reshape;
let salam = "سلام";
println!("{}",arabic_reshape(salam));
// سلام correctly rendred.

Todo:

  • document the code

Credits/More info:

Check the awesome original python version.

python-arabic-reshaper