summaryrefslogtreecommitdiff
path: root/macros/unicodetex/latex/quran-ur/doc/quran-ur-test.tex
blob: d98d371642a7d2dfbf0648faf706736f250c2166 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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}