Implementation of the Unicode Bidirectional Algorithm for text processing
Implementation of the Unicode BiDi algorithm
fribidi
$ fribidi --text 'Hello مرحبا World'
$ echo 'שלום עולם' | fribidi
$ fribidi --check input.txt