pub fn process_bidi(chars: &[char], breaks: &[usize]) -> Vec<Vec<char>>Expand description
The plugin’s processBidirectionalText: chars in logical order with
line breaks (char indices, the last one the text length) chosen on it;
returns each line in visual order. Paragraph ends (after a paragraph
separator) are merged into the breaks as the plugin does.