To output arabic text to a relatively dumb output device, you'll need to do several things: Divide the text into blocks of different directionality using the Unicode Bidirectional Algorithm (UBA), better known as Bidi. Mirror characters that need to be mirrored (e.g: opening parenthesis point in different directions when they...