Hello,<div><br></div><div>I am attempting to make a Perl script that takes in Arabic text in code page 6 (just glancing at it, I see an ascii range of C7 to ED) and converts it out into Arabic script in a pdf document. I had the code working almost completely with just LaTeX and arabtex, but the Arabic output was left to right and was not connecting the script into words. After a bit of research, I decided to try xetex and arabxetex. However, now my code comes directly out as the Latin characters, instead of being translated. I assume this is because xetex assumes input in utf-8 (I think?), where latex assumed something else. It does now format right to left, at least at a sentence level.</div>

<div><br></div><div>Rather than posting the script, here&#39;s an example of a tex file it&#39;s generating:</div><div><br></div><div>\documentclass{article}</div><div>\usepackage{arabxetex}</div><div>\newfontfamily\arabicfont[Script=Arabic]{ae_AlMohanad}</div>

<div>\bgein{document}</div><div>\begin{arab}</div><div>%arabic text goes here. I can&#39;t provide an example, sorry. I know that&#39;s less than helpful.</div><div>\end{arab}</div><div>\end{document}</div><div> </div>
<div>So my question is, how do I get xetex to understand I want the code page 6 input to become arabic output? I attempting to give it every \usepackage[]{inputenc} option I found to no avail.</div><div><br></div><div>Alternatively, if someone is very familiar with the arabtex problem I mentioned and knows a solution with that, I&#39;m open to that way of solving as well.</div>
<div><br></div><div>Thank you all,</div><div>Lomky</div>