summaryrefslogtreecommitdiff
path: root/macros/unicodetex/latex/quran/tex/quran.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/unicodetex/latex/quran/tex/quran.sty')
-rw-r--r--macros/unicodetex/latex/quran/tex/quran.sty14
1 files changed, 7 insertions, 7 deletions
diff --git a/macros/unicodetex/latex/quran/tex/quran.sty b/macros/unicodetex/latex/quran/tex/quran.sty
index 982c230cf6..0364c851e5 100644
--- a/macros/unicodetex/latex/quran/tex/quran.sty
+++ b/macros/unicodetex/latex/quran/tex/quran.sty
@@ -20,8 +20,8 @@
%% to one who has devoted his life to Quran
%%
\NeedsTeXFormat{LaTeX2e}
-\def\qurandate{2023/06/28}
-\def\quranversion{1.9}
+\def\qurandate{2023/07/10}
+\def\quranversion{2.0}
\ProvidesPackage{quran}[\qurandate\space v\quranversion^^JAn easy way to typeset the whole or any parts of the holy Quran]
\RequirePackage{ifxetex}
\RequirePackage{biditools}
@@ -54,7 +54,7 @@
\newcommand*\qt@debug[1]{\typeout{debuging ==::>>> #1 <<<::==}}%
\def\qt@showitems#1{\footnote{#1}}%
\def\qt@no#1{ #1}%
-\def\qt@begin{\relax}\def\qt@end{\relax}%
+\def\qt@ob@begin{\relax}\def\qt@ob@end{\relax}%
%
\DeclareOptionX{nopar}{\let\qt@par\relax}
\DeclareOptionX{nonumber}{\def\qt@no##1{\relax}}
@@ -73,7 +73,7 @@
\IfSubStr{#1}{fr}{\qt@transfrtrue}{}%
}%
\DeclareOptionX{wordwise}{\qt@wordwisetrue}
-\newcommand*\SetOrnamentalBraces[2]{\def\qt@begin{#1}\def\qt@end{#2}}%
+\newcommand*\SetOrnamentalBraces[2]{\def\qt@ob@begin{#1}\def\qt@ob@end{#2}}%
\DeclareOptionX{ornbraces}{\SetOrnamentalBraces{﴿}{﴾}}%
\DeclareOptionX*{\PackageWarning{quran}{Unknown option ‘\CurrentOption’}}
\ProcessOptionsX\relax
@@ -136,7 +136,7 @@
\hskip0.25em\relax%
}%
%
-\DeclareDocumentCommand{\qt@doqt}{ o o }{\qt@begin%
+\DeclareDocumentCommand{\qt@doqt}{ o o }{\qt@ob@begin%
\addtocounter{qt@count}{1}%
\def\@qtexp{}%
\loop%
@@ -145,13 +145,13 @@
\addtocounter{qt@count}{1}%
\repeat%
\IfNoValueTF{#1}%
- {\@qtexp\qt@end\qt@par}%true
+ {\@qtexp\qt@ob@end\qt@par}%true
{\qt@WordCount=0\relax\c@qt@start=\numexpr#1-1\relax%
\readlist*\qt@words{\@qtexp}%
\IfNoValueTF{#2}%
{\c@qt@end=\numexpr\qt@wordslen+1\relax}{\c@qt@end=\numexpr#2+1\relax}%
\foreachitem\qt@word\in\qt@words{%
- \ifnum\qt@wordcnt>\c@qt@start\ifnum\qt@wordcnt<\c@qt@end\qt@word\ifnum\qt@wordcnt=\numexpr\c@qt@end-1\qt@end\qt@par\relax\else\xspace\fi\fi\fi%
+ \ifnum\qt@wordcnt>\c@qt@start\ifnum\qt@wordcnt<\c@qt@end\qt@word\ifnum\qt@wordcnt=\numexpr\c@qt@end-1\qt@ob@end\qt@par\relax\else\xspace\fi\fi\fi%
}%
\global\edef\qt@currentfont{\the\font}%
\qt@showitems{\qt@currentfont\showitems\qt@words}%