summaryrefslogtreecommitdiff
path: root/macros/unicodetex/latex/quran-bn/doc/quran-bn-test.tex
blob: 285de9f73dbc909549c7093bf56525b0f05e9bd1 (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
45
46
47
48
49
50
51
52
\documentclass{article}
\usepackage[margin=2cm]{geometry}
\usepackage{arabxetex} % for typesetting Arabic text in Rigth−To−Left direction
\newfontfamily\bengali{NotoSansBengali-Regular}
\usepackage[hoque,khan, trans={en,lt}]{quran-bn}

\def\setTr#1{\par\bnSetTrans{#1}\ttfamily  Translation by \bnGetTrans:\par\smallskip}
\newcommand{\compare}[1]{%
    \noindent\hrulefill{\string #1}\hrulefill

     \begin{minipage}{.46\textwidth}
    \setTr{hoque} {\bengali #1}
    \end{minipage}
    \hfill
    \begin{minipage}{.46\textwidth}
    \setTr{khan} {\bengali #1}
    \end{minipage}
    \par
}

\begin{document}

\begin{arab}[utf]
\quransurah*[1]
\end{arab}
{\bengali\quransurahbn*[1]}

\begin{minipage}{.4\textwidth}
\begin{arab}[utf]
\quranayah[Al-Ikhlas][1-4]
\end{arab}
\end{minipage}
\hfill
\begin{minipage}{.4\textwidth}
\quranayahlt[Al-Ikhlas][1-4]
\end{minipage}

\begin{minipage}{.4\textwidth}
\bengali\quranayahbn[Al-Ikhlas][1-4]
\end{minipage}
\hfill
\begin{minipage}{.4\textwidth}
\quranayahen[Al-Ikhlas][1-4]
\end{minipage}

\ToggleBasmalah
\compare{\quransurahbn}
\compare{\quranayahbn[1][1]}
\ToggleBasmalah
\compare{\quranpagebn*[2]}

\end{document}