dir: support text direction with .>>, .<<, \> and \<