<div dir="ltr"><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Also, dates are always in English whether Hijri or Georgian, I think<br>
\if@rl is unset (always false), may be an incompatibility introduced in<br>
the latest bidi package?<br>
<br>
</blockquote><div><br>Yes. You are right. and thanks heaps for  the test. I will make sure it will get fixed in the next version of  the bidi.<br><br>I rewrote bidi from scratch and I was not happy with &quot;rl&quot; so I made the condition &quot;RTL&quot; instead &quot;RL&quot; and &quot;LTR&quot; instead &quot;LR&quot; and I let them to be the same thing but it seems it is not working. This is a small test file that demonstrates that:<br>
<br>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>
<meta name="qrichtext" content="1"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style="margin: 0px; text-indent: 0px;">\documentclass{article}</p>
<p style="margin: 0px; text-indent: 0px;">\usepackage{bidi}</p>
<p style="margin: 0px; text-indent: 0px;">\makeatletter</p>
<p style="margin: 0px; text-indent: 0px;">\newcommand\test{\if@rl RTL\else LTR\fi}</p>
<p style="margin: 0px; text-indent: 0px;">\newcommand\TEST{\if@RTL RTL \else LTR\fi}</p>
<p style="margin: 0px; text-indent: 0px;">\makeatother</p>
<p style="margin: 0px; text-indent: 0px;">\begin{document}</p>
<p style="margin: 0px; text-indent: 0px;">\setRTL</p>
<p style="margin: 0px; text-indent: 0px;">\test</p>
<p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;">\setLTR</p>
<p style="margin: 0px; text-indent: 0px;">\test</p>
<p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;">\setRTL</p>
<p style="margin: 0px; text-indent: 0px;">\TEST</p>
<p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;">\setLTR</p>
<p style="margin: 0px; text-indent: 0px;">\TEST</p>
<p style="margin: 0px; text-indent: 0px;">\end{document}</p>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br><br>I guess changing \if@rl to \if@RTL would not hurt much.<br><br>Best wishes,<br>Vafa Khalighi<br></div></div><br></div>