I cut-and-pasted your Arabic trial document, and it ran through my XeLaTeX system immediately and without errror.<br><br clear="all"> Dominik Wujastyk<br><br>
<br><br><div class="gmail_quote">On 20 October 2010 21:39, houda araj <span dir="ltr"><<a href="mailto:h_araj@hotmail.com">h_araj@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">





<div>
Hello,<br>I am new to Arabic typesetting and I need help since I receive error that I cannot fix.<br><br>

<p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;">\documentclass[a4paper]{book}%</p><p style="margin: 0px; text-indent: 0px;">\usepackage[no-math]{fontspec}</p>
<p style="margin: 0px; text-indent: 0px;">\usepackage{xltxtra,url,amsmath}</p>
<p style="margin: 0px; text-indent: 0px;">\usepackage{makeidx}</p>
<p style="margin: 0px; text-indent: 0px;">\makeindex</p>
<p style="margin: 0px; text-indent: 0px;">\setmainfont[Script=Arabic,Scale=1.3]{Times New Roman}%</p>
<p style="margin: 0px; text-indent: 0px;">\usepackage{bidi}</p>
<p style="margin: 0px; text-indent: 0px;">\title{روش تولید نمایه توسط زیلاتک}</p>
<p style="margin: 0px; text-indent: 0px;">\author{مهدی امیدعلی}</p>
<p style="margin: 0px; text-indent: 0px;">\begin{document}</p>
<p style="margin: 0px; text-indent: 0px;">\maketitle</p>
<p style="margin: 0px; text-indent: 0px;">\tableofcontents</p>
<p style="margin: 0px; text-indent: 0px;">\begin{RTL}</p>
<p style="margin: 0px; text-indent: 0px;">\chapter{امتحان}</p>
<p style="margin: 0px; text-indent: 0px;">این اولین نمایه این متن است که برای امتحان آورده شده است.</p>
<p style="margin: 0px; text-indent: 0px;">\index{نمایه}</p>
<p style="margin: 0px; text-indent: 0px;">\end{RTL}</p>
<p style="margin: 0px; text-indent: 0px;">This a test for LTR languages\index{test}</p>
<p style="margin: 0px; text-indent: 0px;">\begin{RTL}</p>
<p style="margin: 0px; text-indent: 0px;">\printindex</p>
<p style="margin: 0px; text-indent: 0px;">\end{RTL}</p>
<p style="margin: 0px; text-indent: 0px;">\end{document}</p>
<p style="margin: 0px; text-indent: 0px;"></p><br>! Package bidi Error: Oops! you have loaded package xunicode before bidi packag
<p style="margin: 0px; text-indent: 0px;">e. Please load package xunicode after bidi package, and then try to run xelatex</p>
<p style="margin: 0px; text-indent: 0px;"> on your document again.</p>

<p style="margin: 0px; text-indent: 0px;">See the bidi package documentation for explanation.</p>
<p style="margin: 0px; text-indent: 0px;">Type  H <return>  for immediate help.</p><p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">Thanks<br></p><br>                                       </div>
<br><br>
<br>
--------------------------------------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
  <a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
<br></blockquote></div><br>