<div dir="ltr">and This is what Jonathan said about hyperef and RTL in XeTeX a while ago: (<a href="http://tug.org/mailman/htdig/xetex/2008-April/009508.html">http://tug.org/mailman/htdig/xetex/2008-April/009508.html</a>)<br>
<br><pre>"I think all this is related to the basic problem that when the TeX-- <br>XeT bidi mechanism is used, horizontal lists get reversed before <br>output. This means that when you have \special commands in the line, <br>
their order also gets reversed. So if the text contains a \special <br>that in some way implements "begin a link" or "set a new color", and <br>later in the same line there's "end link" or "pop the color stack", <br>
the DVI driver ends up seeing these in the opposite order.<br><br>I submitted the original message in this thread to the XeTeX bug <br>tracker at <<a href="http://sourceforge.net/tracker/?">http://sourceforge.net/tracker/?</a> <br>
group_id=194926&atid=951385>, as I think it's an issue that can't <br>easily be solved at the level of individual documents or macro <br>packages. You may be able to work around some of the problems, but a <br>
general solution will need to be implemented at a more fundamental <br>level."<br><br>JK<br></pre><br></div>