summaryrefslogtreecommitdiff
path: root/macros/unicodetex/latex/quran-ur/doc/quran-ur-test.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/unicodetex/latex/quran-ur/doc/quran-ur-test.tex')
-rw-r--r--macros/unicodetex/latex/quran-ur/doc/quran-ur-test.tex44
1 files changed, 44 insertions, 0 deletions
diff --git a/macros/unicodetex/latex/quran-ur/doc/quran-ur-test.tex b/macros/unicodetex/latex/quran-ur/doc/quran-ur-test.tex
new file mode 100644
index 0000000000..d98d371642
--- /dev/null
+++ b/macros/unicodetex/latex/quran-ur/doc/quran-ur-test.tex
@@ -0,0 +1,44 @@
+\documentclass{article}
+\usepackage[margin=2cm]{geometry}
+\usepackage{arabxetex} % for typesetting Arabic text in Rigth−To−Left direction
+\usepackage[all, trans={fa}]{quran-ur} % trans={fa} option would be sent to quran package
+
+\newcommand{\compare}[1]{%
+ \def\setTr##1{\par\urSetTrans{##1}\fbox{\makebox[2cm]{\urGetTrans}}}
+ \noindent\hrulefill{\string #1}\hrulefill
+ \setTr{ahmedali} #1
+ \setTr{jalandhry} #1
+ \setTr{jawadi} #1
+ \setTr{junagarhi} #1
+ \setTr{kanzuliman} #1
+ \setTr{maududi} #1
+ \setTr{najafi} #1
+ \setTr{qadri} #1
+\par
+}
+\newcommand{\mybox}[2]{\noindent%
+\begin{minipage}{.48\textwidth}
+#1
+#2\par
+\end{minipage}}
+
+\newcommand{\myURbox}[1]{\mybox{#1}{\hrulefill\fbox{\makebox[2cm]{\urGetTrans}}}}
+\newcommand{\IkhlasBox}[1]{\myURbox{\urSetTrans{#1}\quranayahur[Al-Ikhlas][1-4]}}
+
+\begin{document}
+\begin{arab}[utf]
+\mybox{\quranayah[Al-Ikhlas][1-4]}{\hrulefill\fbox{\makebox[2cm]{Al-Ikhlas}}} \hfill
+\mybox{\quranayahfa[Al-Ikhlas][1-4]}{\hrulefill\fbox{\makebox[2cm]{Persian}}}
+
+\smallskip\IkhlasBox{1}\hfill\IkhlasBox{2}\\
+\smallskip\IkhlasBox{3}\hfill\IkhlasBox{4}\\
+\smallskip\IkhlasBox{5}\hfill\IkhlasBox{6}\\
+\smallskip\IkhlasBox{7}\hfill\IkhlasBox{8}\\
+\smallskip
+
+\compare{\quransurahur*}
+\compare{\quranayahur[1][1]}
+\ToggleBasmalah
+\compare{\quranpageur*[2]}
+\end{arab}
+\end{document}