<div dir="ltr">If I recall correctly, you have removed \beginR, \endR, \beginL and \endL from luatex but if in a latex document I say<br><br>\newcommand\beginR{\bgroup\textdir TRT}<br>\newcommand\endR{\egroup}<br><br>and run lualatex on my dopcument, I see that \endR is already defined:<br>
<br>! LaTeX Error: Command \endR already defined.<br> Or name \end... illegal, see p.192 of the manual.<br><br>See the LaTeX manual or LaTeX Companion for explanation.<br>Type H <return> for immediate help.<br>
... <br> <br>l.3 \newcommand\endR{\egroup}<br> <br>? <br><br><br>How come?<br><br>a minimal ltx file is attached.<br>
<br></div>