Sup­port for bidi­rec­tional type­set­ting in plain TeX and LaTeX