summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-12-31 22:14:12 +0000
committerKarl Berry <karl@freefriends.org>2018-12-31 22:14:12 +0000
commit7016bb5ad438e6143a7fc10c04a9dc5b3e2f8e24 (patch)
tree0e0037c78d0b73049d98f20f33e238ad5566f0c8 /Master
parent20ce3edbaa8d6e2d474f67efba4d35679a67556a (diff)
quran (31dec18)
git-svn-id: svn://tug.org/texlive/trunk@49563 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/xelatex/quran/README4
-rw-r--r--Master/texmf-dist/doc/xelatex/quran/quran-doc.pdfbin270924 -> 271134 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/quran/quran-doc.tex100
-rw-r--r--Master/texmf-dist/doc/xelatex/quran/quran-test.pdfbin34437 -> 34429 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/quran/quran-test1.pdfbin32334 -> 32334 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/quran/quran-test2.pdfbin56616 -> 56615 bytes
-rw-r--r--Master/texmf-dist/tex/xelatex/quran/quran-transfa.def2
-rw-r--r--Master/texmf-dist/tex/xelatex/quran/quran.sty66
8 files changed, 91 insertions, 81 deletions
diff --git a/Master/texmf-dist/doc/xelatex/quran/README b/Master/texmf-dist/doc/xelatex/quran/README
index 1eca445f27a..cef03f02927 100644
--- a/Master/texmf-dist/doc/xelatex/quran/README
+++ b/Master/texmf-dist/doc/xelatex/quran/README
@@ -1,6 +1,6 @@
_____________________
The quran package
-v1.42b
+v1.5
The package is prepared for typesetting the Holy Quran. This work is inspired
by lipsum and ptext packages, provides several macros for typesetting the whole or
@@ -8,7 +8,7 @@ any parts of The Holy Quran based on its popular divisions.
For more information, please see the documentation.
-Current version release date: 2018/11/29
+Current version release date: 2018/12/31
___________________
Seiied-Mohammad-Javad Razvian
javadr@gmail.com
diff --git a/Master/texmf-dist/doc/xelatex/quran/quran-doc.pdf b/Master/texmf-dist/doc/xelatex/quran/quran-doc.pdf
index cc6234dbb26..6cbef60813d 100644
--- a/Master/texmf-dist/doc/xelatex/quran/quran-doc.pdf
+++ b/Master/texmf-dist/doc/xelatex/quran/quran-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/quran/quran-doc.tex b/Master/texmf-dist/doc/xelatex/quran/quran-doc.tex
index 185acd887c7..8c07561672d 100644
--- a/Master/texmf-dist/doc/xelatex/quran/quran-doc.tex
+++ b/Master/texmf-dist/doc/xelatex/quran/quran-doc.tex
@@ -71,39 +71,39 @@
#2
\end{minipage}
};
-\node[fancytitle, anchor=west, right=10pt] at (box.north west) {\small \cs{#1}};
\node (hole) [anchor=north east, left=5pt ] at (box.north east) { \tikz\fill[very thick,white] (0,0) circle (12pt); };
\node[ ] at (hole.center) {\includegraphics[width=.05\textwidth]{quran.png}};
+\node[fancytitle, anchor=west, right=7pt] at (box.north west) {\small \cs{#1}};
\end{tikzpicture}%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{\includegraphics[scale=.3]{quran.png}\\
-The \xpackage{quran} Package\footnote{to one who has devoted his life to Quran}}
+The \xpackage{quran} Package\footnote{To one having devoted his life to the Holy Quran}}
\author{Seiied Mohammad Javad Razavian\\\xemail{javadr@gmail.com}}
-\date{\qurandate}
+\date{\qurandate\space\quranversion}
\begin{document}
\maketitle
-\begin{framed}
-This manual is incomplete and the package is under development. \par
-\centerline{\quranversion}
-\end{framed}
+%\begin{framed}
+%This manual is incomplete and the package is under development. \par
+%\centerline{\quranversion}
+%\end{framed}
\tableofcontents
-\newpage
+%\newpage
\section{Introduction}
This package is prepared for typesetting The Holy Quran%.
-, provides several macros for
+. It provides several macros for
typesetting the whole or any parts of The Holy Quran based on its popular division.\footnote{This work is inspired by \xpackage{lipsum} and
\xpackage{ptext} packages.}
%\footnote{
-By recent versions, the package can typeset the translation of The Holy Quran in
-german, english, and persian. It also can typeset quarn transliteration.
+By recent versions, the package can typeset some translations of The Holy Quran in
+German, English, and Persian. It also can typeset quran's transliteration.
%}\addlines[1]
\section{Loading Package}
@@ -136,7 +136,7 @@ This acts like above but can typeset \textit{m}$^{th}$ Surah to \textit{n}$^{th}
\begin{declcs}{quransurah}\oarg{m{-}{-}n}
\end{declcs}
-In this case m and n are tranliterations of surah's names, e.g. \cs{quransurah[An-Nasr--An-Nas]}.
+In this case m and n are transliterations of surah's names, e.g. \cs{quransurah[An-Nasr--An-Nas]}.
\marginpar{\cs{quransurah[An-Nasr--An-Nas]}}
\centerline{\hbox{\mx{quransurah[109-110]}{\quransurah[109-110]}\hfill
@@ -161,7 +161,7 @@ In this case m and n are tranliterations of surah's names, e.g. \cs{quransurah[A
\thect & \mycell{ct} & \thect & \mycell{ct} & \thect & \mycell{ct}\\%
\hline
\end{tabular}
- \protect\caption{Surah's name trasliteration.}\label{tab1}
+ \protect\caption{Transliterations of Sovar's names.}\label{tab1}
\end{table}
@@ -171,8 +171,8 @@ Using \cs{quransurah} without its optional argument typeset the default Surah--A
\centerline{\mx{quransurah}{\quransurah}}
-To change the default Surah use \cs{setsurahdefault\{m\}}, again m must be between 1 and 114;
-as know noticed package's default is 112.
+To change the default Surah use \cs{setsurahdefault\{m\}}, again m must be between 1 and 114.
+As you've noticed the package's default is 112.
\marginpar{\cs{setsurahdefault}}
After changing package's default surah to 107 by \cs{setsurahdefault\{107\}}, the output would be like below:
@@ -199,17 +199,17 @@ In this case if you need Basmalah, then you can use the \cs{basmalah} macro befo
\begin{declcs}{quranayah}\oarg{l}\oarg{m-n}
\end{declcs}
-This macro typeset the \textit{m}$^{th}$ to \textit{n}$^{th}$ Ayat of l$^{th}$ Surah.
+This macro typeset the \textit{m}$^{th}$ to \textit{n}$^{th}$ Ayat of \textit{l}$^{th}$ Surah.
\par
\addvspace{4.5ex plus 1ex}%
\vskip -\parskip
-\noindent\textit{l} could be an integer less than or equal to 114. It also could be
-the transliteration of l$^{th}$ Surah's name, see table~\ref{tab1}.
-\textit{n} is diffirent by every Surah and it relies on the number of the Surah's verses.
-\textit{m} should be between 1 and a number less than \textit{n}.
+\noindent The \textit{l} argument could be an integer less than or equal to 114. It also could be
+the transliteration of \textit{l}$^{th}$ Surah's name, see table~\ref{tab1}.
+The number \textit{n} is diffirent by every Surah and it relies on the number of the Surah's verses.
+The number \textit{m} should be between 1 and a number less than \textit{n}.
-In case of using tranliteration of surah's name, both \cs{quransurah} and \cs{quranayah} are \emph{case-insensitive}, i.e.
+In case of using transliteration of surah's name, both \cs{quransurah} and \cs{quranayah} are \emph{case-insensitive}, i.e.
for example there is no differences between Al-Fatiha, al-fatiha, al-Fatiha,
and any other possible combinations of lowercase and uppercase letters.
@@ -219,8 +219,8 @@ for example there is no differences between Al-Fatiha, al-fatiha, al-Fatiha,
\subsection{Page/Pages}
\begin{declcs}{quranpage}\oarg{n}
\end{declcs}
-Typeset the \textit{n}$^{th}$ page of Quran and the macro below typeset \textit{m}$^{th}$ to
-\textit{n}$^{th}$ pages of Quran.
+Typeset the \textit{n}$^{th}$ page of Quran and the following macro typeset \textit{m}$^{th}$ to
+\textit{n}$^{th}$ pages of the Holy Quran.
\begin{declcs}{quranpage}\oarg{m-n}
\end{declcs}
@@ -230,7 +230,7 @@ The numbers should be between $1$ to $604$, based on Uthmani text.
\hfill
\mx{quranpage*[250]}{\quranpage*[250]}}}
- * starred version of macros are explained in page~\pageref{starred}; concisely it means
+ * Starred version of macros will be explained in page~\pageref{starred}; concisely it means
typesetting that part of the Holy Quran in one paragraph.
\centerline{\mxf{quranpage*[1-3]}{\quranpage*[1-3]}}
@@ -239,7 +239,7 @@ The numbers should be between $1$ to $604$, based on Uthmani text.
%\vspace{-6mm}
\begin{declcs}{quranjuz}\oarg{n}
\end{declcs}
-Above macro typesets the \textit{n}$^{th}$ juz of Quran and below macro typesets m$^{th}$ to n$^{th}$ juzzes of Quran.
+Above macro typesets the \textit{n}$^{th}$ juz of Quran and the next macro typesets m$^{th}$ to n$^{th}$ juzzes of Quran.
\begin{declcs}{quranjuz}\oarg{m-n}
\end{declcs}
@@ -260,7 +260,7 @@ Following macros typeset hizb/ahzab of Quran.
\subsection{Quarter/Quarters}
Eash hizb of Quran is devided into four quarters, making eight quarters per juz, called maqra.
-There are 240 of these quarters (of hizb) in the Quran. These maqra are often used as sections for revision when memorizing the Quran.\footnote{\url{https://en.wikipedia.org/wiki/Juz'}}
+There are 240 of these quarters (of hizb) in the Quran. These maqras are often used as sections for revision when memorizing the Quran.\footnote{\url{https://en.wikipedia.org/wiki/Juz'}}
%\vspace{-6mm}
\begin{declcs}{quranquarter}\oarg{n}
@@ -274,9 +274,9 @@ Above macros typeset the \textit{n}$^{th}$ or m$^{th}$ to n$^{th}$ quarter(s) of
\centerline{\mxf{quranquarter*[110]}{\quranquarter*[110]}}
\subsection{Ruku/Rukus}
-``The term ruk\= uʿ --- roughly translated to ``passage", ``pericope" or ``stanza" --- is also used to denote a group of thematically related verses in the Qur'an. Longer suras (chapters) in the Qur'an are usually divided into several ruk\= us, so that the reciters could identify when to make ruk\= u in Salat without breaking an ongoing topic in the Quranic text."\footnote{\url{https://en.wikipedia.org/wiki/Ruku}}
+``The term ruk\= u --- roughly translated to ``passage", ``pericope" or ``stanza" --- is also used to denote a group of thematically related verses in the Qur'an. Longer suras (chapters) in the Qur'an are usually divided into several ruk\= us, so that the reciters could identify when to make ruk\= u in Salat without breaking an ongoing topic in the Quranic text."\footnote{\url{https://en.wikipedia.org/wiki/Ruku}}
-The following macros can typeset rukus of The Holy Quran the way the above macros act.
+The following macros can typeset rukus of The Holy Quran in the way the previous macros did.
\begin{declcs}{quranruku}\oarg{n}
\end{declcs}
@@ -313,7 +313,7 @@ Following macros typeset manzil/manazil of Quran.
\end{declcs}
\subsection{Text of Quran}
-The following macro is the heart of all macros that can typeset any range of Quran. As you know there
+The next macro is the heart of all macros typesetting any range of Quran. As you know there
are $6236$ Ayat in Quran. This macro can typeset a specific Ayah or any range of Ayat.
\begin{declcs}{qurantext}\oarg{n}
@@ -328,14 +328,14 @@ Typesets any range of Ayat from the \textit{m}$^{th}$ to \textit{n}$^{th}$ Ayah.
\centerline{\mxf{qurantext*[4111-4117]}{\begingroup\qurantext*[4111-4117]\endgroup}}
-Using \cs{qurantext} without its optional argument typeset [1-7] --Al-Hamd. To
+Using \cs{qurantext} without its optional argument uses [1-7] at its default argument--Al-Hamd. To
change the default text use \cs{setqurantextdefault\{m-n\}}
\marginpar{\cs{qurantext}}
\centerline{\mx{qurantext}{\qurantext}}
- \noindent below, the default is changed to \cs{setqurantextdefault\{4128-4147\}}:
+ \noindent Below, the default is changed to \cs{setqurantextdefault\{4128-4147\}}:
\marginpar{\cs{setqurantextdefault\{m-n\}}}
\setqurantextdefault{4128-4147}
@@ -360,7 +360,7 @@ The following macros can typeset whole of The Holy Quran:
\subsection{Name of Surah}
\begin{declcs}{surahname}\oarg{m}
\end{declcs}
-This macro returns the tranliteration of \textit{m}$^{th}$ Surah.
+This macro returns the transliteration of \textit{m}$^{th}$ Surah's name.
\begin{declcs}{surahname*}\oarg{m}
\end{declcs}
@@ -394,7 +394,7 @@ Another way for achieving this, is using the starred version of macros. All macr
has a starred version that omit the \cs{par} macro in typesetting the text of Quran.
\label{starred}
-In some cases maybe user wants to typeset the Ayat without their following numbers that can be seen in printed version of The Holy Quran. The \texttt{nonumber}\marginpar{nonumber}
+In some cases maybe user wants to typeset the Ayat without their following numbers visible in printed versions of The Holy Quran. The \texttt{nonumber}\marginpar{nonumber}
option tells the package that print no number after ayah.
But sometimes we want to typeset just some Ayat without theirs, so there is a \cs{ToggleAyahNumber} macro
that can cause numbers will be omitted. With \texttt{nonumber} option this macro acts vice versa, it mean it
@@ -404,7 +404,7 @@ causes that Ayat number will be printed.
{\ToggleAyahNumber\quransurah*[89]}}
By default, the package typesets the text of The Holy Quran in simple script, but if you prefer the Uthmani script you can use \texttt{uthmani} \marginpar{uthmani}
-option. Compare the following text to figure out the differences between default and uthmani script.
+option. Compare the following texts to figure out the differences between ``default'' and ``uthmani'' script.
\centerline{\hbox{
\mx{quransurah*[1] (default)}{\includegraphics{defaulttext.pdf}}
\hfill
@@ -414,7 +414,7 @@ option. Compare the following text to figure out the differences between default
By version 1.3, the package can typeset the transliteration of The Holy Quran.
This option will be useful for whom doesn't really know how to read the arabic text. By loading \texttt{translt}
option all macros that defined in section~\ref{sec:qurantypesetting} will have an ``\texttt{lt}" version. In other words,
-this will add the following macros:
+this option will add the following macros:
\marginpar{translt}
\begin{itemize}
@@ -436,15 +436,15 @@ this will add the following macros:
-By version 1.4, the package can typeset the translation of The Holy Quran in germany, english, and persian.
+By version 1.4, the package can typeset some translations of The Holy Quran in German, English, and Persian.
\marginpar{transde}\marginpar{transen}\marginpar{transfa}%
These options added because of some requests from users who need the translation of The Holy Quran in their languages.
By loading \texttt{transde}, \texttt{transen}, and \texttt{transfa} the package can typeset the translation in
- germany, english, and persian, respectively.
+ German, English, and Persian, respectively.
-By loading echo of these options, all macros that defined in section~\ref{sec:qurantypesetting} will have
+By loading each of these options, all macros that defined in section~\ref{sec:qurantypesetting} will have
a ``\texttt{de}"/``\texttt{en}"/``\texttt{fa}" version. In other words,
-thsee will add the following macros:
+these will add the following macros:
\begin{multicols}{3}
@@ -488,10 +488,10 @@ thsee will add the following macros:
\end{itemize}
\end{multicols}
- All translations are from \url{tanzil.net}. For germen, english, and persian languages the ``Abu Rida Muhammad ibn Ahmad ibn Rassoul", ``Ahmed Ali", ``Mohammad Mahdi Fooladvand" is choosen respectively, by suggestion of the package's users.
+ All translations are from \url{tanzil.net}. For Germen, English, and Persian languages the ``Abu Rida Muhammad ibn Ahmad ibn Rassoul", ``Ahmed Ali", ``Mohammad Mahdi Fooladvand" is choosen respectively, by suggestion of the package's users.
Another option is defined that simplifies the usage of mutiple translations simultaneously. The \texttt{trans} option can get
- any permutation of ``\texttt{lt}", ``\texttt{de}", ``\texttt{en}", and ``\texttt{fa}". e.g. this document loads the \texttt{quran}
+ any permutation of ``\texttt{lt}", ``\texttt{de}", ``\texttt{en}", and ``\texttt{fa}". e.g. this document loaded the \texttt{quran}
package with ``\texttt{trans=\{lt, de, en, fa\}}" option.
\marginpar{trans}
@@ -505,15 +505,15 @@ thsee will add the following macros:
\section{Acknowledgment}
At first, I should appreciate Vafa Khaligi by preparing such adorable packages --\xpackage{bidi} and
-\xpackage{xepersian}. Secondly, the costly \url{http://tanzil.net/} for providing the text of The Holy Quran that
-is developed by Hamid Zarrabi-Zadeh. And finally, people in Parsi\LaTeX\footnote{\url{http://parsilatex.com/}}
+\xpackage{xepersian} for typesetting right-to-left text.
+Secondly, the costly website, \hbox{\url{http://tanzil.net/}}, for providing the text of The Holy Quran developed by Hamid Zarrabi-Zadeh. And finally, people in Parsi\LaTeX\footnote{\url{http://parsilatex.com/}}
group who tested and commented this work in advance.
\section{Frequently Asked Questions}
\subsection{What is the best font for typesetting quran text?}
We strongly recommend you to use "Scheherazade"%
\footnote{\url{http://software.sil.org/scheherazade/}}
- and "Amiri"%
+ or "Amiri"%
\footnote{\url{http://www.amirifont.org/}} fonts.
Scheherazade is released under the SIL Open Font License (OFL), version 1.1. Copyright (c) 2004-2015,
@@ -522,7 +522,7 @@ group who tested and commented this work in advance.
All examples in this document use this font.
Amiri is a classical Arabic typeface in Naskh style for typesetting books and other running text.
- Amiri is a revival of the beautiful typeface pioneered in early 20th century by Bulaq Press in Cairo,
+ Amiri is a revival of the beautiful typeface pioneered in early 20$^{th}$ century by Bulaq Press in Cairo,
also known as Amiria Press, after which the font is named.
Amiri is a free, open source project that everyone is encouraged to use and modify.
@@ -534,8 +534,8 @@ group who tested and commented this work in advance.
You can also use \xpackage{xepersian} that relies on \xpackage{fontspec}, too.
Another choices are \xpackage{arabxetex} and \xpackage{arabluatex} that the latter just
works with \LuaLaTeX{} while former
- ways work with \XeLaTeX. \xpackage{arabxetex} and \xpackage{arabluatex} use Amiri font by default.
- The following demonstrates examples for all four approaches:
+ ways work with \XeLaTeX. The \xpackage{arabxetex} and \xpackage{arabluatex} use Amiri font by default.
+ The following demonstrates some examples for all four approaches:
\begin{lstlisting}[style=BashInputStyle, title=``example: with polyglossia{,}
fontspec{,} and bidi"]
@@ -612,7 +612,7 @@ fontspec{,} and bidi"]
If you want to automatically change the font of quran text in your document, you
can put your willing font in precede of \cs{qurantext} like below:
- In case you are using \xpackage{xepersian}, put below commands in preamble:
+ In case you are using \xpackage{xepersian}, put the following commands in the preamble:
\begin{lstlisting}[style=BashInputStyle]
\defpersianfont\quran{Scheherazade}
@@ -621,7 +621,7 @@ fontspec{,} and bidi"]
\makeatother
\end{lstlisting}
- In case you are using \xpackage{fontspec}, put below commands in preamble:
+ In case you are using \xpackage{fontspec}, put the commands below in the preamble:
\begin{lstlisting}[style=BashInputStyle]
\usepackage{etoolbox}
\newfontfamily\quran{Scheherazade}
@@ -629,7 +629,7 @@ fontspec{,} and bidi"]
\end{lstlisting}
By setting default font as above, if you want to use \cs{quratext}, you have to enclose it in curly braces. If you don't,
- it will affect the following text font.
+ it will affect the font of the following texts.
\begin{lstlisting}[style=BashInputStyle]
{\qurantext[x-y]}
\end{lstlisting}
diff --git a/Master/texmf-dist/doc/xelatex/quran/quran-test.pdf b/Master/texmf-dist/doc/xelatex/quran/quran-test.pdf
index 515e6003115..ef4ce1fd5a5 100644
--- a/Master/texmf-dist/doc/xelatex/quran/quran-test.pdf
+++ b/Master/texmf-dist/doc/xelatex/quran/quran-test.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/quran/quran-test1.pdf b/Master/texmf-dist/doc/xelatex/quran/quran-test1.pdf
index 9d74455281b..d12329ae4fd 100644
--- a/Master/texmf-dist/doc/xelatex/quran/quran-test1.pdf
+++ b/Master/texmf-dist/doc/xelatex/quran/quran-test1.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/quran/quran-test2.pdf b/Master/texmf-dist/doc/xelatex/quran/quran-test2.pdf
index 4ee74194068..a5445b3b4ea 100644
--- a/Master/texmf-dist/doc/xelatex/quran/quran-test2.pdf
+++ b/Master/texmf-dist/doc/xelatex/quran/quran-test2.pdf
Binary files differ
diff --git a/Master/texmf-dist/tex/xelatex/quran/quran-transfa.def b/Master/texmf-dist/tex/xelatex/quran/quran-transfa.def
index b86be613193..64af3c5717b 100644
--- a/Master/texmf-dist/tex/xelatex/quran/quran-transfa.def
+++ b/Master/texmf-dist/tex/xelatex/quran/quran-transfa.def
@@ -141,7 +141,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%
\bidi@newrobustcmd\quranmanzilfa{%
\@ifstar\@@quranmanzilfa\@quranmanzilfa%
-}
+}%
\def\@@quranmanzilfa[#1]{%
\let\qt@doqt\qt@dofa%
\@@quranmanzil[#1]%
diff --git a/Master/texmf-dist/tex/xelatex/quran/quran.sty b/Master/texmf-dist/tex/xelatex/quran/quran.sty
index 7846dd2b25b..ddc3245c99c 100644
--- a/Master/texmf-dist/tex/xelatex/quran/quran.sty
+++ b/Master/texmf-dist/tex/xelatex/quran/quran.sty
@@ -23,6 +23,8 @@
%% to one who has devoted his life to Quran
%%
%% Change Log
+%% ver 1.5 ## December 31th, 2018
+%% some minor bugs in \ToggleBasmalah and \quransurah.
%% ver 1.42b ## November 29th, 2018
%% A typo in quran-transde.def.
%% ver 1.42a ## December 22nd, 2017
@@ -99,15 +101,15 @@
%% ver 0.1
%% initial commit
\NeedsTeXFormat{LaTeX2e}
-\def\qurandate{2018/11/29}
-\def\quranversion{ver 1.42b}
+\def\qurandate{2018/12/31}
+\def\quranversion{ver 1.5}
\ProvidesPackage{quran}[\qurandate\space \quranversion\space An easy way to typeset the whole or any part of The Holy Quran]
\RequirePackage{biditools}
\RequirePackage{xkeyval}
\newcounter{qt@count}
\setcounter{qt@count}{0}
\newif\ifqt@uthmani%
-\newif\ifqt@basmalah%
+\newif\ifqt@basmalah\qt@basmalahtrue%
\newif\ifqt@translt%
\newif\ifqt@transen%
\newif\ifqt@transde%
@@ -204,13 +206,13 @@
\fi%
}%
%
-\bidi@newrobustcmd\ToggleBasmalah{%
- \ifx\basmalah\relax%
- \def\basmalah{بِسمِ اللَّهِ الرَّحمٰنِ الرَّحيمِ \qt@par}%
- \else%
- \let\basmalah\relax%
- \fi%
-}%
+%\bidi@newrobustcmd\ToggleBasmalah{%
+% \ifx\basmalah\relax%
+% \def\basmalah{بِسمِ اللَّهِ الرَّحمٰنِ الرَّحيمِ \qt@par}%
+% \else%
+% \let\basmalah\relax%
+% \fi%
+%}%
%
\bidi@newrobustcmd\ToggleAyahNumber{%
\expandafter\ifx\qt@no{test}\relax%
@@ -237,7 +239,7 @@
\qt@doqt%
}%
%
-\def\qt@get#1-#2;{\def\qt@min{#1}\def\qt@max{#2}}%
+\def\qt@get#1-#2;{\edef\qt@min{#1}\edef\qt@max{#2}}%
\def\qt@stripmax#1-{\edef\qt@max{#1}}%
\def\qt@minmax#1{%
\qt@get#1-\relax;%
@@ -276,12 +278,12 @@
\bidi@newrobustcmd\@@quransurah[1][\qt@surah@default]{%
\begingroup
\ChangeQtPar
- \lowercase{\def\qt@arglc{#1}}%
+ \lowercase{\edef\qt@arglc{#1}}%
\@quransurah[\qt@arglc]%
\endgroup
}%
\bidi@newrobustcmd\@@@quransurah[1][\qt@surah@default]{%
- \lowercase{\def\qt@arglc{#1}}%
+ \lowercase{\edef\qt@arglc{#1}}%
\@quransurah[\qt@arglc]%
}%
%
@@ -337,12 +339,12 @@
\def\@@quranayah[#1][#2]{%
\begingroup%
\ChangeQtPar%
- \lowercase{\def\qt@arglc{#1}}%
+ \lowercase{\edef\qt@arglc{#1}}%
\@quranayah[\qt@arglc][#2]%
\endgroup%
}%
\def\@@@quranayah[#1][#2]{%
- \lowercase{\def\qt@arglc{#1}}
+ \lowercase{\edef\qt@arglc{#1}}
\@quranayah[\qt@arglc][#2]
}%
%
@@ -357,7 +359,7 @@
\setcounter{qt@start}{\qt@min}%
\setcounter{qt@end}{\qt@max}%
%
- \ifnum\qt@max>\qt@getversenum{\qt@surahnumber}%
+ \ifnum\qt@max>\qt@getversenum{\qt@surahnumber}\relax%
\ifx\qt@max\qt@min%
\relax%
\else%
@@ -375,14 +377,10 @@
\repeat%
%
\ifx\qt@max\qt@min%
- \ifnum\qt@max=1 %omitting basmalah when only first ayah is requested
- \qt@basmalahtrue%
- \else%
- \qt@basmalahfalse%
- \fi%
- \ifqt@basmalah\ToggleBasmalah\fi%
+ %omitting basmalah when only first ayah is requested
+ \ifnum\qt@max=1 \ifqt@basmalah\ToggleBasmalah\fi\fi%
\begingroup\qurantext[\value{qt@start}]\endgroup%
- \ifqt@basmalah\ToggleBasmalah\fi%
+ \ifnum\qt@max=1 \ifqt@basmalah\ToggleBasmalah\fi\fi%
\else%
\addtocounter{qt@end}{\value{qt@start}}%
\addtocounter{qt@end}{-\qt@min}%
@@ -536,8 +534,8 @@
\def\@quranmanzil[#1]{%
\expandafter\qt@minmax\expandafter{#1}%
\ifx\qt@max\qt@min%
- \edef\qt@surah{\qt@getmanzildomain{\qt@min}}%
- \quransurah[\qt@surah]%
+ \edef\qt@surah{\expandafter\qt@getmanzildomain{\qt@max}}%
+ \expandafter\quransurah[\qt@surah]%
\else%
\edef\qt@surah@start{\expandafter\qt@getmanzildomain{\qt@min}}%
\edef\qt@surah@end{\expandafter\qt@getmanzildomain{\qt@max}}%
@@ -559,7 +557,7 @@
\else\relax\fi}%
%
\def\qt@getversenum#1{%
- \ifcase#1\or7\or286\or200\or176\or120\or165\or206\or75\or129\or109\or123\or111\or43\or52\or99\or128\or111\or110\or98\or135\or112\or78\or118\or64\or77\or227\or93\or88\or69\or60\or34\or30\or73\or54\or45\or83\or182\or88\or75\or85\or54\or53\or89\or59\or37\or35\or38\or29\or18\or45\or60\or49\or62\or55\or78\or96\or29\or22\or24\or13\or14\or11\or11\or18\or12\or12\or30\or52\or52\or44\or28\or28\or20\or56\or40\or31\or50\or40\or46\or42\or29\or19\or36\or25\or22\or17\or19\or26\or30\or20\or15\or21\or11\or8\or8\or19\or5\or8\or8\or11\or11\or8\or3\or9\or5\or4\or7\or3\or6\or3\or5\or4\or5\or6 \else \relax
+\ifcase#1\or7\or286\or200\or176\or120\or165\or206\or75\or129\or109\or123\or111\or43\or52\or99\or128\or111\or110\or98\or135\or112\or78\or118\or64\or77\or227\or93\or88\or69\or60\or34\or30\or73\or54\or45\or83\or182\or88\or75\or85\or54\or53\or89\or59\or37\or35\or38\or29\or18\or45\or60\or49\or62\or55\or78\or96\or29\or22\or24\or13\or14\or11\or11\or18\or12\or12\or30\or52\or52\or44\or28\or28\or20\or56\or40\or31\or50\or40\or46\or42\or29\or19\or36\or25\or22\or17\or19\or26\or30\or20\or15\or21\or11\or8\or8\or19\or5\or8\or8\or11\or11\or8\or3\or9\or5\or4\or7\or3\or6\or3\or5\or4\or5\or6 \else \relax
\fi}%
%
\def\qt@getjuzdomain#1{%
@@ -568,9 +566,9 @@
}%
%
\def\qt@getpagedomain#1{%
- \ifcase#1\or1-7\or8-12\or13-23\or24-31\or32-36\or37-44\or45-55\or56-64\or65-68\or69-76\or77-83\or84-90\or91-95\or96-100\or101-108\or109-112\or113-119\or120-126\or127-133\or134-141\or142-148\or149-152\or153-160\or161-170\or171-176\or177-183\or184-188\or189-193\or194-197\or198-203\or204-209\or210-217\or218-222\or223-226\or227-231\or232-237\or238-240\or241-244\or245-252\or253-255\or256-259\or260-263\or264-266\or267-271\or272-276\or277-281\or282-288\or289-289\or290-293\or294-302\or303-308\or309-315\or316-322\or323-330\or331-338\or339-345\or346-354\or355-363\or364-370\or371-376\or377-384\or385-393\or394-401\or402-408\or409-414\or415-425\or426-433\or434-441\or442-446\or447-450\or451-458\or459-466\or467-473\or474-479\or480-487\or488-493\or494-499\or500-504\or505-507\or508-512\or513-516\or517-519\or520-526\or527-530\or531-537\or538-544\or545-552\or553-558\or559-567\or568-572\or573-579\or580-584\or585-587\or588-594\or595-598\or599-606\or607-614\or615-620\or621-627\or628-633\or634-640\or641-647\or648-655\or656-663\or664-668\or669-671\or672-674\or675-678\or679-682\or683-686\or687-692\or693-700\or701-705\or706-710\or711-714\or715-719\or720-726\or727-733\or734-739\or740-745\or746-751\or752-758\or759-764\or765-772\or773-777\or778-782\or783-789\or790-797\or798-807\or808-816\or817-824\or825-833\or834-841\or842-848\or849-857\or858-862\or863-870\or871-879\or880-883\or884-890\or891-899\or900-907\or908-913\or914-920\or921-926\or927-931\or932-935\or936-940\or941-946\or947-954\or955-965\or966-976\or977-984\or985-991\or992-997\or998-1005\or1006-1011\or1012-1021\or1022-1027\or1028-1035\or1036-1041\or1042-1049\or1050-1058\or1059-1074\or1075-1084\or1085-1091\or1092-1097\or1098-1103\or1104-1109\or1110-1113\or1114-1117\or1118-1124\or1125-1132\or1133-1141\or1142-1149\or1150-1160\or1161-1168\or1169-1176\or1177-1185\or1186-1193\or1194-1200\or1201-1205\or1206-1212\or1213-1221\or1222-1229\or1230-1235\or1236-1241\or1242-1248\or1249-1255\or1256-1261\or1262-1266\or1267-1271\or1272-1275\or1276-1282\or1283-1289\or1290-1296\or1297-1303\or1304-1307\or1308-1314\or1315-1321\or1322-1328\or1329-1334\or1335-1341\or1342-1346\or1347-1352\or1353-1357\or1358-1364\or1365-1370\or1371-1378\or1379-1384\or1385-1389\or1390-1397\or1398-1406\or1407-1417\or1418-1425\or1426-1434\or1435-1442\or1443-1452\or1453-1461\or1462-1470\or1471-1478\or1479-1485\or1486-1492\or1493-1501\or1502-1510\or1511-1518\or1519-1526\or1527-1535\or1536-1544\or1545-1554\or1555-1561\or1562-1570\or1571-1581\or1582-1590\or1591-1600\or1601-1610\or1611-1618\or1619-1626\or1627-1633\or1634-1639\or1640-1648\or1649-1659\or1660-1665\or1666-1674\or1675-1682\or1683-1691\or1692-1699\or1700-1707\or1708-1712\or1713-1720\or1721-1725\or1726-1735\or1736-1741\or1742-1749\or1750-1755\or1756-1760\or1761-1768\or1769-1774\or1775-1783\or1784-1792\or1793-1802\or1803-1817\or1818-1833\or1834-1853\or1854-1872\or1873-1892\or1893-1907\or1908-1915\or1916-1927\or1928-1935\or1936-1943\or1944-1955\or1956-1965\or1966-1973\or1974-1980\or1981-1988\or1989-1994\or1995-2003\or2004-2011\or2012-2019\or2020-2029\or2030-2036\or2037-2046\or2047-2056\or2057-2067\or2068-2078\or2079-2087\or2088-2095\or2096-2104\or2105-2115\or2116-2125\or2126-2133\or2134-2144\or2145-2155\or2156-2160\or2161-2167\or2168-2174\or2175-2185\or2186-2193\or2194-2201\or2202-2214\or2215-2223\or2224-2237\or2238-2250\or2251-2261\or2262-2275\or2276-2288\or2289-2301\or2302-2314\or2315-2326\or2327-2345\or2346-2360\or2361-2385\or2386-2399\or2400-2412\or2413-2424\or2425-2435\or2436-2446\or2447-2461\or2462-2473\or2474-2483\or2484-2493\or2494-2507\or2508-2518\or2519-2527\or2528-2540\or2541-2555\or2556-2564\or2565-2573\or2574-2584\or2585-2595\or2596-2600\or2601-2610\or2611-2618\or2619-2625\or2626-2633\or2634-2641\or2642-2650\or2651-2659\or2660-2667\or2668-2673\or2674-2690\or2691-2700\or2701-2715\or2716-2732\or2733-2747\or2748-2762\or2763-2777\or2778-2791\or2792-2801\or2802-2811\or2812-2818\or2819-2822\or2823-2827\or2828-2834\or2835-2844\or2845-2849\or2850-2852\or2853-2857\or2858-2866\or2867-2875\or2876-2887\or2888-2898\or2899-2910\or2911-2922\or2923-2932\or2933-2951\or2952-2971\or2972-2992\or2993-3015\or3016-3043\or3044-3068\or3069-3091\or3092-3115\or3116-3138\or3139-3159\or3160-3172\or3173-3181\or3182-3194\or3195-3203\or3204-3214\or3215-3222\or3223-3235\or3236-3247\or3248-3257\or3258-3265\or3266-3273\or3274-3280\or3281-3287\or3288-3295\or3296-3302\or3303-3311\or3312-3322\or3323-3329\or3330-3336\or3337-3346\or3347-3354\or3355-3363\or3364-3370\or3371-3378\or3379-3385\or3386-3392\or3393-3403\or3404-3414\or3415-3424\or3425-3433\or3434-3441\or3442-3450\or3451-3459\or3460-3469\or3470-3480\or3481-3488\or3489-3497\or3498-3503\or3504-3514\or3515-3523\or3524-3533\or3534-3539\or3540-3548\or3549-3555\or3556-3563\or3564-3568\or3569-3576\or3577-3583\or3584-3587\or3588-3595\or3596-3606\or3607-3613\or3614-3620\or3621-3628\or3629-3637\or3638-3645\or3646-3654\or3655-3663\or3664-3671\or3672-3678\or3679-3690\or3691-3698\or3699-3704\or3705-3717\or3718-3732\or3733-3745\or3746-3759\or3760-3775\or3776-3788\or3789-3812\or3813-3839\or3840-3864\or3865-3890\or3891-3914\or3915-3941\or3942-3970\or3971-3986\or3987-3996\or3997-4012\or4013-4031\or4032-4053\or4054-4063\or4064-4068\or4069-4079\or4080-4089\or4090-4098\or4099-4105\or4106-4114\or4115-4125\or4126-4132\or4133-4140\or4141-4149\or4150-4158\or4159-4166\or4167-4173\or4174-4182\or4183-4191\or4192-4199\or4200-4210\or4211-4218\or4219-4229\or4230-4238\or4239-4247\or4248-4256\or4257-4264\or4265-4272\or4273-4282\or4283-4287\or4288-4294\or4295-4303\or4304-4316\or4317-4323\or4324-4335\or4336-4347\or4348-4358\or4359-4372\or4373-4385\or4386-4398\or4399-4414\or4415-4432\or4433-4453\or4454-4473\or4474-4486\or4487-4495\or4496-4505\or4506-4515\or4516-4524\or4525-4530\or4531-4538\or4539-4545\or4546-4556\or4557-4564\or4565-4574\or4575-4583\or4584-4592\or4593-4598\or4599-4606\or4607-4611\or4612-4616\or4617-4623\or4624-4630\or4631-4645\or4646-4665\or4666-4681\or4682-4705\or4706-4726\or4727-4749\or4750-4766\or4767-4784\or4785-4810\or4811-4828\or4829-4852\or4853-4873\or4874-4895\or4896-4917\or4918-4941\or4942-4968\or4969-4995\or4996-5029\or5030-5055\or5056-5078\or5079-5086\or5087-5093\or5094-5099\or5100-5104\or5105-5110\or5111-5115\or5116-5125\or5126-5129\or5130-5135\or5136-5142\or5143-5150\or5151-5155\or5156-5161\or5162-5168\or5169-5177\or5178-5185\or5186-5192\or5193-5199\or5200-5208\or5209-5217\or5218-5222\or5223-5229\or5230-5236\or5237-5241\or5242-5253\or5254-5267\or5268-5286\or5287-5313\or5314-5331\or5332-5357\or5358-5385\or5386-5414\or5415-5429\or5430-5447\or5448-5460\or5461-5475\or5476-5494\or5495-5512\or5513-5542\or5543-5570\or5571-5596\or5597-5616\or5617-5641\or5642-5672\or5673-5702\or5703-5727\or5728-5758\or5759-5800\or5801-5829\or5830-5854\or5855-5882\or5883-5909\or5910-5931\or5932-5963\or5964-5993\or5994-6016\or6017-6043\or6044-6072\or6073-6098\or6099-6125\or6126-6137\or6138-6155\or6156-6176\or6177-6193\or6194-6207\or6208-6221\or6222-6236\else\relax\fi%
+\ifcase#1\or1-7\or8-12\or13-23\or24-31\or32-36\or37-44\or45-55\or56-64\or65-68\or69-76\or77-83\or84-90\or91-95\or96-100\or101-108\or109-112\or113-119\or120-126\or127-133\or134-141\or142-148\or149-152\or153-160\or161-170\or171-176\or177-183\or184-188\or189-193\or194-197\or198-203\or204-209\or210-217\or218-222\or223-226\or227-231\or232-237\or238-240\or241-244\or245-252\or253-255\or256-259\or260-263\or264-266\or267-271\or272-276\or277-281\or282-288\or289-289\or290-293\or294-302\or303-308\or309-315\or316-322\or323-330\or331-338\or339-345\or346-354\or355-363\or364-370\or371-376\or377-384\or385-393\or394-401\or402-408\or409-414\or415-425\or426-433\or434-441\or442-446\or447-450\or451-458\or459-466\or467-473\or474-479\or480-487\or488-493\or494-499\or500-504\or505-507\or508-512\or513-516\or517-519\or520-526\or527-530\or531-537\or538-544\or545-552\or553-558\or559-567\or568-572\or573-579\or580-584\or585-587\or588-594\or595-598\or599-606\or607-614\or615-620\or621-627\or628-633\or634-640\or641-647\or648-655\or656-663\or664-668\or669-671\or672-674\or675-678\or679-682\or683-686\or687-692\or693-700\or701-705\or706-710\or711-714\or715-719\or720-726\or727-733\or734-739\or740-745\or746-751\or752-758\or759-764\or765-772\or773-777\or778-782\or783-789\or790-797\or798-807\or808-816\or817-824\or825-833\or834-841\or842-848\or849-857\or858-862\or863-870\or871-879\or880-883\or884-890\or891-899\or900-907\or908-913\or914-920\or921-926\or927-931\or932-935\or936-940\or941-946\or947-954\or955-965\or966-976\or977-984\or985-991\or992-997\or998-1005\or1006-1011\or1012-1021\or1022-1027\or1028-1035\or1036-1041\or1042-1049\or1050-1058\or1059-1074\or1075-1084\or1085-1091\or1092-1097\or1098-1103\or1104-1109\or1110-1113\or1114-1117\or1118-1124\or1125-1132\or1133-1141\or1142-1149\or1150-1160\or1161-1168\or1169-1176\or1177-1185\or1186-1193\or1194-1200\or1201-1205\or1206-1212\or1213-1221\or1222-1229\or1230-1235\or1236-1241\or1242-1248\or1249-1255\or1256-1261\or1262-1266\or1267-1271\or1272-1275\or1276-1282\or1283-1289\or1290-1296\or1297-1303\or1304-1307\or1308-1314\or1315-1321\or1322-1328\or1329-1334\or1335-1341\or1342-1346\or1347-1352\or1353-1357\or1358-1364\or1365-1370\or1371-1378\or1379-1384\or1385-1389\or1390-1397\or1398-1406\or1407-1417\or1418-1425\or1426-1434\or1435-1442\or1443-1452\or1453-1461\or1462-1470\or1471-1478\or1479-1485\or1486-1492\or1493-1501\or1502-1510\or1511-1518\or1519-1526\or1527-1535\or1536-1544\or1545-1554\or1555-1561\or1562-1570\or1571-1581\or1582-1590\or1591-1600\or1601-1610\or1611-1618\or1619-1626\or1627-1633\or1634-1639\or1640-1648\or1649-1659\or1660-1665\or1666-1674\or1675-1682\or1683-1691\or1692-1699\or1700-1707\or1708-1712\or1713-1720\or1721-1725\or1726-1735\or1736-1741\or1742-1749\or1750-1755\or1756-1760\or1761-1768\or1769-1774\or1775-1783\or1784-1792\or1793-1802\or1803-1817\or1818-1833\or1834-1853\or1854-1872\or1873-1892\or1893-1907\or1908-1915\or1916-1927\or1928-1935\or1936-1943\or1944-1955\or1956-1965\or1966-1973\or1974-1980\or1981-1988\or1989-1994\or1995-2003\or2004-2011\or2012-2019\or2020-2029\or2030-2036\or2037-2046\or2047-2056\or2057-2067\or2068-2078\or2079-2087\or2088-2095\or2096-2104\or2105-2115\or2116-2125\or2126-2133\or2134-2144\or2145-2155\or2156-2160\or2161-2167\or2168-2174\or2175-2185\or2186-2193\or2194-2201\or2202-2214\or2215-2223\or2224-2237\or2238-2250\or2251-2261\or2262-2275\or2276-2288\or2289-2301\or2302-2314\or2315-2326\or2327-2345\or2346-2360\or2361-2385\or2386-2399\or2400-2412\or2413-2424\or2425-2435\or2436-2446\or2447-2461\or2462-2473\or2474-2483\or2484-2493\or2494-2507\or2508-2518\or2519-2527\or2528-2540\or2541-2555\or2556-2564\or2565-2573\or2574-2584\or2585-2595\or2596-2600\or2601-2610\or2611-2618\or2619-2625\or2626-2633\or2634-2641\or2642-2650\or2651-2659\or2660-2667\or2668-2673\or2674-2690\or2691-2700\or2701-2715\or2716-2732\or2733-2747\or2748-2762\or2763-2777\or2778-2791\or2792-2801\or2802-2811\or2812-2818\or2819-2822\or2823-2827\or2828-2834\or2835-2844\or2845-2849\or2850-2852\or2853-2857\or2858-2866\or2867-2875\or2876-2887\or2888-2898\or2899-2910\or2911-2922\or2923-2932\or2933-2951\or2952-2971\or2972-2992\or2993-3015\or3016-3043\or3044-3068\or3069-3091\or3092-3115\or3116-3138\or3139-3159\or3160-3172\or3173-3181\or3182-3194\or3195-3203\or3204-3214\or3215-3222\or3223-3235\or3236-3247\or3248-3257\or3258-3265\or3266-3273\or3274-3280\or3281-3287\or3288-3295\or3296-3302\or3303-3311\or3312-3322\or3323-3329\or3330-3336\or3337-3346\or3347-3354\or3355-3363\or3364-3370\or3371-3378\or3379-3385\or3386-3392\or3393-3403\or3404-3414\or3415-3424\or3425-3433\or3434-3441\or3442-3450\or3451-3459\or3460-3469\or3470-3480\or3481-3488\or3489-3497\or3498-3503\or3504-3514\or3515-3523\or3524-3533\or3534-3539\or3540-3548\or3549-3555\or3556-3563\or3564-3568\or3569-3576\or3577-3583\or3584-3587\or3588-3595\or3596-3606\or3607-3613\or3614-3620\or3621-3628\or3629-3637\or3638-3645\or3646-3654\or3655-3663\or3664-3671\or3672-3678\or3679-3690\or3691-3698\or3699-3704\or3705-3717\or3718-3732\or3733-3745\or3746-3759\or3760-3775\or3776-3788\or3789-3812\or3813-3839\or3840-3864\or3865-3890\or3891-3914\or3915-3941\or3942-3970\or3971-3986\or3987-3996\or3997-4012\or4013-4031\or4032-4053\or4054-4063\or4064-4068\or4069-4079\or4080-4089\or4090-4098\or4099-4105\or4106-4114\or4115-4125\or4126-4132\or4133-4140\or4141-4149\or4150-4158\or4159-4166\or4167-4173\or4174-4182\or4183-4191\or4192-4199\or4200-4210\or4211-4218\or4219-4229\or4230-4238\or4239-4247\or4248-4256\or4257-4264\or4265-4272\or4273-4282\or4283-4287\or4288-4294\or4295-4303\or4304-4316\or4317-4323\or4324-4335\or4336-4347\or4348-4358\or4359-4372\or4373-4385\or4386-4398\or4399-4414\or4415-4432\or4433-4453\or4454-4473\or4474-4486\or4487-4495\or4496-4505\or4506-4515\or4516-4524\or4525-4530\or4531-4538\or4539-4545\or4546-4556\or4557-4564\or4565-4574\or4575-4583\or4584-4592\or4593-4598\or4599-4606\or4607-4611\or4612-4616\or4617-4623\or4624-4630\or4631-4645\or4646-4665\or4666-4681\or4682-4705\or4706-4726\or4727-4749\or4750-4766\or4767-4784\or4785-4810\or4811-4828\or4829-4852\or4853-4873\or4874-4895\or4896-4917\or4918-4941\or4942-4968\or4969-4995\or4996-5029\or5030-5055\or5056-5078\or5079-5086\or5087-5093\or5094-5099\or5100-5104\or5105-5110\or5111-5115\or5116-5125\or5126-5129\or5130-5135\or5136-5142\or5143-5150\or5151-5155\or5156-5161\or5162-5168\or5169-5177\or5178-5185\or5186-5192\or5193-5199\or5200-5208\or5209-5217\or5218-5222\or5223-5229\or5230-5236\or5237-5241\or5242-5253\or5254-5267\or5268-5286\or5287-5313\or5314-5331\or5332-5357\or5358-5385\or5386-5414\or5415-5429\or5430-5447\or5448-5460\or5461-5475\or5476-5494\or5495-5512\or5513-5542\or5543-5570\or5571-5596\or5597-5616\or5617-5641\or5642-5672\or5673-5702\or5703-5727\or5728-5758\or5759-5800\or5801-5829\or5830-5854\or5855-5882\or5883-5909\or5910-5931\or5932-5963\or5964-5993\or5994-6016\or6017-6043\or6044-6072\or6073-6098\or6099-6125\or6126-6137\or6138-6155\or6156-6176\or6177-6193\or6194-6207\or6208-6221\or6222-6236\else\relax\fi%
}
-
+%
\def\qt@getquarterdomain#1{
\ifcase#1\or1-32\or33-50\or51-66\or67-81\or82-98\or99-112\or113-130\or131-148\or149-164\or165-183\or184-195\or196-209\or210-225\or226-239\or240-249\or250-259\or260-269\or270-278\or279-289\or290-307\or308-325\or326-344\or345-367\or368-385\or386-405\or406-425\or426-445\or446-463\or464-478\or479-493\or494-504\or505-516\or517-528\or529-550\or551-566\or567-580\or581-592\or593-606\or607-627\or628-640\or641-655\or656-669\or670-680\or681-695\or696-709\or710-719\or720-735\or736-750\or751-765\or766-777\or778-801\or802-824\or825-847\or848-862\or863-883\or884-899\or900-915\or916-929\or930-939\or940-954\or955-984\or985-1000\or1001-1018\or1019-1041\or1042-1070\or1071-1095\or1096-1109\or1110-1124\or1125-1142\or1143-1160\or1161-1181\or1182-1200\or1201-1220\or1221-1235\or1236-1253\or1254-1268\or1269-1280\or1281-1294\or1295-1309\or1310-1327\or1328-1345\or1346-1356\or1357-1374\or1375-1389\or1390-1416\or1417-1434\or1435-1453\or1454-1478\or1479-1496\or1497-1513\or1514-1533\or1534-1556\or1557-1580\or1581-1602\or1603-1625\or1626-1648\or1649-1672\or1673-1696\or1697-1711\or1712-1725\or1726-1741\or1742-1759\or1760-1777\or1778-1802\or1803-1851\or1852-1901\or1902-1930\or1931-1951\or1952-1975\or1976-1990\or1991-2011\or2012-2029\or2030-2051\or2052-2078\or2079-2098\or2099-2127\or2128-2156\or2157-2171\or2172-2190\or2191-2214\or2215-2238\or2239-2271\or2272-2308\or2309-2348\or2349-2402\or2403-2430\or2431-2458\or2459-2483\or2484-2511\or2512-2533\or2534-2565\or2566-2595\or2596-2613\or2614-2632\or2633-2654\or2655-2673\or2674-2708\or2709-2747\or2748-2791\or2792-2811\or2812-2825\or2826-2843\or2844-2855\or2856-2875\or2876-2907\or2908-2932\or2933-2983\or2984-3042\or3043-3112\or3113-3159\or3160-3185\or3186-3214\or3215-3240\or3241-3263\or3264-3280\or3281-3302\or3303-3327\or3328-3340\or3341-3365\or3366-3385\or3386-3409\or3410-3439\or3440-3462\or3463-3490\or3491-3513\or3514-3533\or3534-3550\or3551-3563\or3564-3583\or3584-3592\or3593-3615\or3616-3629\or3630-3651\or3652-3674\or3675-3700\or3701-3732\or3733-3764\or3765-3809\or3810-3870\or3871-3932\or3933-3990\or3991-4021\or4022-4065\or4066-4089\or4090-4110\or4111-4133\or4134-4153\or4154-4173\or4174-4198\or4199-4226\or4227-4242\or4243-4264\or4265-4284\or4285-4298\or4299-4322\or4323-4348\or4349-4381\or4382-4430\or4431-4484\or4485-4510\or4511-4530\or4531-4554\or4555-4577\or4578-4600\or4601-4612\or4613-4625\or4626-4656\or4657-4705\or4706-4758\or4759-4809\or4810-4854\or4855-4901\or4902-4979\or4980-5053\or5054-5090\or5091-5104\or5105-5117\or5118-5136\or5137-5156\or5157-5177\or5178-5191\or5192-5217\or5218-5229\or5230-5241\or5242-5271\or5272-5323\or5324-5393\or5394-5447\or5448-5494\or5495-5551\or5552-5609\or5610-5672\or5673-5758\or5759-5829\or5830-5884\or5885-5948\or5949-6023\or6024-6090\or6091-6154\or6155-6236\else\relax\fi%
}%
@@ -581,6 +579,18 @@
%
%\bidi@newrobustcmd\basmalah{%
%بِسمِ اللَّهِ الرَّحمٰنِ الرَّحيمِ \qt@par}
+\bidi@newrobustcmd\ToggleBasmalah{%
+ \ifqt@basmalah\qt@basmalahfalse\else\qt@basmalahtrue\fi
+ \ifx\basmalah\relax%
+ \def\basmalah{بِسمِ اللَّهِ الرَّحمٰنِ الرَّحيمِ \qt@par}%
+ \else%
+ \let\basmalah\relax%
+ \fi%
+ \ifqt@translt\ToggleBasmalahlt\fi%
+ \ifqt@transen\ToggleBasmalahen\fi%
+ \ifqt@transde\ToggleBasmalahde\fi%
+ \ifqt@transfa\ToggleBasmalahfa\fi%
+}%
\ifqt@uthmani%
\input{qurantext-uthmani.def}%
\else%