2012/10/16 Zheng Rui :
> Hi everyone, i am trying to editing a file with pdflatex these days, i need
> both arabic characters and it's transliterations in my file, my tex file is
> as follows:
>
> \documentclass[a4paper]{article}
> \usepackage[utf8]{inputenc}
This is OK, but be sure your document is really encoded in UTF-8 (see
your editor settings)
I think it's enough for arabic but in some cases utf8x package should
be required, that's another debate.
> \usepackage[arabic,english]{babel}
This also is OK, but default hyphenation for your document is english
(the last declared in the list)
> %\usepackage[LAE]{fontenc}
It seems that you need that one when dealing with arabic:
\usepackage[LAE,LFE]{fontenc} %
http://en.wikibooks.org/wiki/LaTeX/Internationalization#Arabic_script
>
> \begin{document}
> ʾistarḫā
> \AR{تنمب تهثن خه سبس}
> \end{document}
That's not a minimal working example! They are things you are not
talking about to us and that biases or falses our answers! Where does
\AR command come from? Maybe your problems are there ?
With babel package, use:
\foreignlanguage{arabic}{تنمب تهثن خه سبس} %
http://en.wikibooks.org/wiki/LaTeX/Internationalization#Hyphenating
[...]
Best regards