summaryrefslogtreecommitdiff
path: root/macros/unicodetex/latex/quran-bn/doc/quran-bn-test.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/unicodetex/latex/quran-bn/doc/quran-bn-test.tex')
-rw-r--r--macros/unicodetex/latex/quran-bn/doc/quran-bn-test.tex52
1 files changed, 52 insertions, 0 deletions
diff --git a/macros/unicodetex/latex/quran-bn/doc/quran-bn-test.tex b/macros/unicodetex/latex/quran-bn/doc/quran-bn-test.tex
new file mode 100644
index 0000000000..285de9f73d
--- /dev/null
+++ b/macros/unicodetex/latex/quran-bn/doc/quran-bn-test.tex
@@ -0,0 +1,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}