From 33e9ca7bacfbfbe757fe7d87bc630bf7b91a065a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 18 Sep 2023 20:06:54 +0000 Subject: quran-ur (18sep23) git-svn-id: svn://tug.org/texlive/trunk@68314 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/quran-ur/quran-ur.sty | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'Master/texmf-dist/tex/latex/quran-ur') 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 %% %% 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{+} }{% -- cgit v1.2.3