Implementation of the Unicode Bidirectional Algorithm (UBA).
Reference: http://www.unicode.org/reports/tr9/.
Converts logical strings to their equivalent visual representation. Persian, Hebrew and Arabic languages (and any other RTL language) are supported.
use bidi:*;
let text: &str = "مهدی";
let mut text_u16 = text.encode_utf16.;
perform_shaping;
let result = Stringfrom_utf16.unwrap;
assert_eq!;