summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/quran-ur
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-09-18 20:06:54 +0000
committerKarl Berry <karl@freefriends.org>2023-09-18 20:06:54 +0000
commit33e9ca7bacfbfbe757fe7d87bc630bf7b91a065a (patch)
treed20a1fcfb3550884d80c33ae0e01dab8bcf10b96 /Master/texmf-dist/tex/latex/quran-ur
parentab418e2b9511d7b27d67420ea672aa93726b9bdd (diff)
quran-ur (18sep23)
git-svn-id: svn://tug.org/texlive/trunk@68314 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/quran-ur')
-rw-r--r--Master/texmf-dist/tex/latex/quran-ur/quran-ur.sty20
1 files changed, 11 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/quran-ur/quran-ur.sty b/Master/texmf-dist/tex/latex/quran-ur/quran-ur.sty
index c2974295a9d..1ba38946198 100644
--- a/Master/texmf-dist/tex/latex/quran-ur/quran-ur.sty
+++ b/Master/texmf-dist/tex/latex/quran-ur/quran-ur.sty
@@ -1,13 +1,13 @@
%% This is file `quran-ur.sty', and it's completely relies on the quran package.
%%
-%% Copyright © 2019-2020 by Seiied-Mohammad-Javad Razavian
+%% Copyright © 2019-2023 by Seiied-Mohammad-Javad Razavian
%% <javadr@gmail.com>
%% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either version 1.3
+%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
-%% and version 1.3 or later is part of all distributions of LaTeX
+%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
@@ -26,8 +26,8 @@
%% To one having devoted his life to the Holy Quran
%%
\NeedsTeXFormat{LaTeX2e}
-\def\quranurdate{2021/02/02}
-\def\quranurversion{0.21}
+\def\quranurdate{2023/09/18}
+\def\quranurversion{0.22}
\ProvidesPackage{quran-ur}[%
\quranurdate\space v\quranurversion\space^^J
Urdu translations extension to the quran package.%
@@ -307,12 +307,13 @@ Urdu translations extension to the quran package.%
\addtocounter{qt@count}{1}%
\def\@qtexp{}%
\loop%
- \global\xdef\@qtexp{\@qtexp\csname qurantrans@ur@\roman{qt@count}\endcsname\ifnum\value{qt@count}=\qt@max\else\space\fi\qt@par}%
+ \global\xdef\@qtexp{\@qtexp\csname qurantrans@ur@\roman{qt@count}\endcsname\ifnum\value{qt@count}=\qt@max\else\space\fi%
+ \ifnum\value{qt@count}<\qt@max\relax\qt@par\fi}%
\ifnum\value{qt@count}<\qt@max\relax%
\addtocounter{qt@count}{1}%
\repeat%
\IfNoValueTF{#1}%
- {\@qtexp}%true
+ {\@qtexp\qt@par}%true
{\qt@WordCount=0\relax\c@qt@start=\numexpr#1-1\relax%
\readlist*\qt@words{\@qtexp}%
\IfNoValueTF{#2}%
@@ -320,8 +321,9 @@ Urdu translations extension to the quran package.%
\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\relax\else\xspace\fi\fi\fi%
}%
- \qt@showitems{\ifdefined\arabicfont\arabicfont\fi\showitems\qt@words}%
- }%false
+ \global\edef\qt@currentfont{\the\font}%
+ \qt@showitems{\qt@currentfont\showitems\qt@words}%
+ \qt@par}%false
}%
%%%%%%%%%%%%%%%%%%%%%%%%%%
\DeclareDocumentCommand{\qurantextur}{ s O{\qt@default} o t{+} }{%