Bidirectional text library by Amit Yaron