RTL Refrences in XePersian package

In my Persian paper all references are in Latin script.

How I can insert references (Bibliography) RTL in XePersian, and how I can convert digits in URLs to west Arabic.

MWE:

‎\documentclass{article}‎‎
\usepackage[]{hyperref}‎‎
‎\usepackage{xepersian}‎‎
‎\settextfont{Yas‎‎}‎‎
‎\setdigitfont{Yas}‎‎
‎\begin{document}‎‎

%‎ ‎1st‎ ‎issue‎

% 2nd‎ ‎issue‎‎
برای‎ ‎nها‎‎‎ ....

ابتدا‎ n‎ام

‎\end{document}‎‎

-

Here is a version that you can try:

\documentclass{article}
\usepackage{hyperref}
\usepackage{xepersian}
\begin{document}
\setLTRbibitems
\begin{thebibliography}{99}
\resetlatinfont
\bibitem{reference2} 2nd‎ ‎issue \rl{برای‎ ‎\lr{CRM}ها‎‎‎ \ldots ‎ ابتدا‎ \lr{CRM}ام}
\end{thebibliography}
\end{document}


or

\documentclass{article}
\usepackage{hyperref}
\usepackage{xepersian}
\begin{document}
\begin{thebibliography}{99}
\begin{LTRbibitems}
\resetlatinfont
\end{LTRbibitems}
\bibitem{reference2}
برای \lr{CRM}ها \ldots\ ابتدا \lr{CRM}ام
\end{thebibliography}
\end{document}


whichever you prefer.

-
Thanks, RTL issue solved. – PHPst Apr 21 '12 at 13:40
I updated my answer. – Simurgh12 Apr 21 '12 at 13:44
Thanks. What about 2nd issue? (nام Graphها) do not displayied properly. – PHPst Apr 21 '12 at 13:47
Well, you are using Latin script and Latin font and evidently that can not typeset Persian so you need \rl there. See updated answer. – Simurgh12 Apr 21 '12 at 13:51
I actually want to type CRMها that is not a formula (I do not want wrap it with $) and your solution will not work without$ Also notice that 1st and 2nd issues are not in bibliography. Thanks – PHPst Apr 21 '12 at 13:58