Detect directionality (left-to-right, right-to-left) in Retext