summaryrefslogtreecommitdiff
path: root/macros/xetex/latex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-05-17 03:03:04 +0000
committerNorbert Preining <norbert@preining.info>2020-05-17 03:03:04 +0000
commit71e57b1c98740d1fbb24981d390bd3ec8f2e967b (patch)
treece0ab513391ee2d3f5710e630882cf50c3ff51dd /macros/xetex/latex
parent186d7c0795fc4ffce06bc897006e6aad0417cb83 (diff)
CTAN sync 202005170303
Diffstat (limited to 'macros/xetex/latex')
-rw-r--r--macros/xetex/latex/xepersian/README4
-rw-r--r--macros/xetex/latex/xepersian/xepersian-doc-intro.ltx2
-rw-r--r--macros/xetex/latex/xepersian/xepersian-doc-title.ltx4
-rw-r--r--macros/xetex/latex/xepersian/xepersian-doc.ltx2
-rw-r--r--macros/xetex/latex/xepersian/xepersian-doc.pdfbin234742 -> 234536 bytes
-rw-r--r--macros/xetex/latex/xepersian/xepersian.dtx137
-rw-r--r--macros/xetex/latex/xepersian/xepersian.pdfbin761568 -> 756107 bytes
7 files changed, 35 insertions, 114 deletions
diff --git a/macros/xetex/latex/xepersian/README b/macros/xetex/latex/xepersian/README
index 0020aa7dcf..dbb69a2acd 100644
--- a/macros/xetex/latex/xepersian/README
+++ b/macros/xetex/latex/xepersian/README
@@ -1,6 +1,6 @@
____________________
The XePersian package
-v22.9
+v23.0
The xepersian package provides a convenient interface for
typesetting Persian and English texts in LaTeX, using XeTeX
@@ -16,7 +16,7 @@ please use the issue tracker:
In doing so, please always explain your issue well enough, and always
include a minimal working example showing the issue.
-Current version release date: 2020/05/14
+Current version release date: 2020/05/16
___________________________________________
Copyright (c) Vafa Khalighi 2008--2020
Copyright (c) bidi-tex GitHub Organization 2018--2020
diff --git a/macros/xetex/latex/xepersian/xepersian-doc-intro.ltx b/macros/xetex/latex/xepersian/xepersian-doc-intro.ltx
index 36ecc85d3c..6ed2908df7 100644
--- a/macros/xetex/latex/xepersian/xepersian-doc-intro.ltx
+++ b/macros/xetex/latex/xepersian/xepersian-doc-intro.ltx
@@ -25,7 +25,7 @@ If you use \textsf{\XePersian} package to write any input \TeX\ document, and th
* Copyright (c) 2008--2020 Vafa Khalighi
* Copyright (c) 2018--2020 bidi-tex GitHub Organization
*
-* v22.9, 2020/05/14
+* v23.0, 2020/05/16
*
* License: LaTeX Project Public License, version
* 1.3c or higher (your choice)
diff --git a/macros/xetex/latex/xepersian/xepersian-doc-title.ltx b/macros/xetex/latex/xepersian/xepersian-doc-title.ltx
index 29bafccee4..d085fbee4b 100644
--- a/macros/xetex/latex/xepersian/xepersian-doc-title.ltx
+++ b/macros/xetex/latex/xepersian/xepersian-doc-title.ltx
@@ -3,7 +3,7 @@
\begin{document}
\title{\textcolor{blue!65!black}{\Huge The \textsf{\XePersian} \textit{Package}}\\
\LARGE Persian for \LaTeXe, using {\XeTeX} engine\\[5pt]
-\large User documentation for \textcolor{blue!65!black}{version 22.9}}
+\large User documentation for \textcolor{blue!65!black}{version 23.0}}
\author{Vafa Khalighi\thanks{Thanks to the bidi-tex GitHub organization consisted of David Carlisle and other members of the {\LaTeX} team to maintain the package in the period 2018--2020.}}
\setcounter{page}{0}
\thispagestyle{empty}
@@ -13,7 +13,7 @@
\textcolor{blue!65!black}{\Huge The \textsf{\XePersian} \textit{Package}}
\Large
-User documentation for \textcolor{blue!65!black}{version 22.9}}
+User documentation for \textcolor{blue!65!black}{version 23.0}}
\vskip 0pt plus 3fill
\textit{\large to my Master, \textbf{Ferdowsi The Great}}
diff --git a/macros/xetex/latex/xepersian/xepersian-doc.ltx b/macros/xetex/latex/xepersian/xepersian-doc.ltx
index f00d7c7975..a5a04aaf14 100644
--- a/macros/xetex/latex/xepersian/xepersian-doc.ltx
+++ b/macros/xetex/latex/xepersian/xepersian-doc.ltx
@@ -1,7 +1,7 @@
\documentclass{ltxdoc}
\input{xepersian-doc-preamble.ltx}
\hypersetup{%
- pdftitle={User documentation for version 22.9 of the XePersian
+ pdftitle={User documentation for version 23.0 of the XePersian
package}%
}
\begin{document}
diff --git a/macros/xetex/latex/xepersian/xepersian-doc.pdf b/macros/xetex/latex/xepersian/xepersian-doc.pdf
index c200c998d4..d73ebc0046 100644
--- a/macros/xetex/latex/xepersian/xepersian-doc.pdf
+++ b/macros/xetex/latex/xepersian/xepersian-doc.pdf
Binary files differ
diff --git a/macros/xetex/latex/xepersian/xepersian.dtx b/macros/xetex/latex/xepersian/xepersian.dtx
index 89e3c8ff4b..212d8794d2 100644
--- a/macros/xetex/latex/xepersian/xepersian.dtx
+++ b/macros/xetex/latex/xepersian/xepersian.dtx
@@ -5,7 +5,7 @@
%<*readme>
____________________
The XePersian package
-v22.9
+v23.0
The xepersian package provides a convenient interface for
typesetting Persian and English texts in LaTeX, using XeTeX
@@ -22,7 +22,7 @@ In doing so, please always explain your issue well enough, and always
include a minimal working example showing the issue.
-Current version release date: 2020/05/14
+Current version release date: 2020/05/16
___________________________________________
Copyright (c) Vafa Khalighi 2008--2020
Copyright (c) bidi-tex GitHub Organization 2018--2020
@@ -89,7 +89,6 @@ by Vafa Khalighi.
\generate{\file{extrafootnotefeatures-xepersian.def}{\from{\jobname.dtx}{table,extrafootnotefeatures-xepersian.def}}}
\generate{\file{extreport-xepersian.def}{\from{\jobname.dtx}{table,extreport-xepersian.def}}}
\generate{\file{fancyref-xepersian.def}{\from{\jobname.dtx}{table,fancyref-xepersian.def}}}
-\generate{\file{fontspec-xepersian.def}{\from{\jobname.dtx}{table,fontspec-xepersian.def}}}
\generate{\file{footnote-xepersian.def}{\from{\jobname.dtx}{table,footnote-xepersian.def}}}
\generate{\file{framed-xepersian.def}{\from{\jobname.dtx}{table,framed-xepersian.def}}}
\generate{\file{glossaries-xepersian.def}{\from{\jobname.dtx}{table,glossaries-xepersian.def}}}
@@ -153,7 +152,7 @@ by Vafa Khalighi.
\documentclass{ltxdoc}
\input{xepersian-doc-preamble.ltx}
\hypersetup{%
- pdftitle={Source documentation for version 22.9 of the XePersian
+ pdftitle={Source documentation for version 23.0 of the XePersian
package}%
}
\EnableCrossrefs
@@ -172,7 +171,7 @@ by Vafa Khalighi.
% \GetFileInfo{\jobname.dtx}
% \title{\textcolor{blue!65!black}{\Huge The \textsf{\XePersian} \textit{Package}}\\
%\LARGE Persian for \LaTeXe, using {\XeTeX} engine\\[5pt]
-%\large Source documentation for \textcolor{blue!65!black}{version 22.9}}
+%\large Source documentation for \textcolor{blue!65!black}{version 23.0}}
% \author{Vafa Khalighi\thanks{Thanks to the bidi-tex GitHub organization consisted of David Carlisle and other members of the {\LaTeX} team to maintain the package in the period 2018--2020.}}
%\setcounter{page}{0}
%\thispagestyle{empty}
@@ -182,7 +181,7 @@ by Vafa Khalighi.
%\textcolor{blue!65!black}{\Huge The \textsf{\XePersian} \textit{Package}}
%
%\Large
-%Source documentation for \textcolor{blue!65!black}{version 22.9}}
+%Source documentation for \textcolor{blue!65!black}{version 23.0}}
%
%\vskip 0pt plus 3fill
%\textit{\large to my Master, \textbf{Ferdowsi The Great}}
@@ -218,7 +217,7 @@ by Vafa Khalighi.
%\iffalse
%<*table>
%\fi
-%% \CheckSum{10968}
+%% \CheckSum{10884}
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -1900,75 +1899,6 @@ by Vafa Khalighi.
% \end{macrocode}
% \iffalse
%</fancyref-xepersian.def>
-%<*fontspec-xepersian.def>
-%\fi
-% \section{File \texttt{fontspec-xepersian.def}}
-% \begin{macrocode}
-\ProvidesFile{fontspec-xepersian.def}[2019/05/01 v0.4 fontspec changes]
-\ExplSyntaxOn
-\cs_new:Npn \__xepersian_error:nx { \msg_error:nnx {xepersian} }
-\char_set_catcode_space:n {32}
-\cs_new:Nn \__xepersian_msg_new:nnnn
- { \msg_new:nnxx {#1} {#2} { \tl_trim_spaces:n {#3} } { \tl_trim_spaces:n {#4} } }
-\__xepersian_msg_new:nnnn {xepersian} {font-cannot-be-loaded}
- {
- The font "#1" cannot be loaded by the xepersian package.
- }
- {
- Select another font and rerun xelatex.
- }
-\char_set_catcode_ignore:n {32}
-\prg_new_conditional:Nnn \__xepersian_font_if_cannot_be_loaded:Nn {p,TF,T,F}
- {
- \str_if_in:NnTF { #1 } { #2 }
- {
- \prg_return_true:
- }
- {
- \prg_return_false:
- }
- }
-\cs_undefine:N \__fontspec_load_font:
-\cs_new:Nn \__fontspec_load_font:
- {
-
- \__fontspec_primitive_font_set:NnnF \l__fontspec_test_font
- { \__fontspec_construct_font_call:nn { \l__fontspec_fontname_up_tl } { \l__fontspec_pre_feat_sclist } }
- { \f@size pt - 2sp }
- { \__fontspec_error:nx {font-not-found} {\l__fontspec_fontname_up_tl} }
- \__xepersian_font_if_cannot_be_loaded:NnT \l__fontspec_fontname_up_tl { HM }
- {
- \__xepersian_error:nx {font-cannot-be-loaded} {\l__fontspec_fontname_up_tl}
- \cs_gset_eq:NN \l__fontspec_fontname_up_tl \tex_nullfont:D
- }
- \__fontspec_set_font_type:N \l__fontspec_test_font
- \__fontspec_primitive_font_gset:Onn \l__fontspec_fontface_cs_tl
- { \__fontspec_construct_font_call:nn { \l__fontspec_fontname_up_tl } { \l__fontspec_pre_feat_sclist } }
- { \f@size pt + 2sp }
-
- \l__fontspec_fontface_cs_tl % this is necessary for LuaLaTeX to check the scripts properly
-
- }
-\cs_undefine:N \__fontspec_load_fontname:Nn
-\cs_new:Nn \__fontspec_load_fontname:Nn
- {
- \__fontspec_load_external_fontoptions:Nn #1 {#2}
- \prop_get:NVNF \g__fontspec_fontopts_prop #1 \l__fontspec_fontopts_clist
- { \clist_clear:N \l__fontspec_fontopts_clist }
- \keys_set_groups:nnV {fontspec/fontname} {getfontname} \l__fontspec_fontopts_clist
- \__fontspec_primitive_font_set:OnnF \l__fontspec_fontface_cs_tl
- { \__fontspec_construct_font_call:nn {#1} { \l__fontspec_pre_feat_sclist } } { \f@size pt + 2sp }
- { \__fontspec_error:nx {font-not-found} {#2} }
- \__xepersian_font_if_cannot_be_loaded:NnT #2 { HM }
- {
- \__xepersian_error:nx {font-cannot-be-loaded} {#2}
- \cs_gset_eq:NN \l_fontspec_font \tex_nullfont:D
- }
- }
-\ExplSyntaxOff
-% \end{macrocode}
-% \iffalse
-%</fontspec-xepersian.def>
%<*footnote-xepersian.def>
%\fi
% \section{File \texttt{footnote-xepersian.def}}
@@ -2086,7 +2016,7 @@ by Vafa Khalighi.
%\fi
% \section{File \texttt{kashida-xepersian.def}}
% \begin{macrocode}
-\ProvidesFile{kashida-xepersian.def}[2020/05/14 v0.7 implementation of Kashida for xepersian package]
+\ProvidesFile{kashida-xepersian.def}[2020/05/16 v0.8 implementation of Kashida for xepersian package]
%
% The new changes is minimal and only cosmetic; To resolve the
% issue properly, I will be studying TeX line breaking algorithms and
@@ -2105,6 +2035,7 @@ by Vafa Khalighi.
% very likely), then we have to do some devious things.
%
\chardef\xepersian@zwj="200D % zero-width joiner
+\chardef\xepersian@lrm="200E % left to right mark
\chardef\xepersian@kashidachar="0640 % kashida
\chardef\xepersian@D=10 % dual-joiner class
@@ -2113,14 +2044,24 @@ by Vafa Khalighi.
\chardef\xepersian@A=13 % alef
\chardef\xepersian@V=4096 % vowel or other combining mark (to be ignored)
\newif\if@Kashida@on
-\def\xepersian@kashida{\if@Kashida@on\xepersian@zwj\nobreak%
- \leaders\hrule height \XeTeXglyphbounds\tw@ \the\XeTeXcharglyph\xepersian@kashidachar depth \XeTeXglyphbounds\f@ur \the\XeTeXcharglyph\xepersian@kashidachar \hskip0pt plus
- \dimexpr \fontcharwd\font\xepersian@kashidachar -
- \XeTeXglyphbounds\@ne
- \the\XeTeXcharglyph\xepersian@kashidachar -
- \XeTeXglyphbounds\thr@@
- \the\XeTeXcharglyph\xepersian@kashidachar \relax
-\xepersian@zwj\fi}
+\def\xepersian@kashida{%
+ \if@Kashida@on
+ \xepersian@zwj
+ \xepersian@lrm
+ \nobreak
+ \leaders\hrule height \XeTeXglyphbounds\tw@
+ \the\XeTeXcharglyph\xepersian@kashidachar
+ depth \XeTeXglyphbounds\f@ur
+ \the\XeTeXcharglyph\xepersian@kashidachar
+ \hskip0pt plus 0.5em
+% \dimexpr \fontcharwd\font\xepersian@kashidachar -
+% \XeTeXglyphbounds\@ne
+% \the\XeTeXcharglyph\xepersian@kashidachar -
+% \XeTeXglyphbounds\thr@@
+% \the\XeTeXcharglyph\xepersian@kashidachar \relax
+ \xepersian@zwj
+ \fi
+}
\def\setclass#1#2{\def\theclass{#1}\def\charlist{#2}%
\expandafter\dosetclass\charlist,\end}
@@ -3477,8 +3418,8 @@ U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET
% \section{File \texttt{xepersian.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\def\xepersian@version{22.9}
-\def\xepersiandate{2020/05/14}
+\def\xepersian@version{23.0}
+\def\xepersiandate{2020/05/16}
\ProvidesPackage{xepersian}[\xepersiandate\space v\xepersian@version\space
Persian typesetting in XeLaTeX]
\RequirePackage{fontspec}
@@ -4308,7 +4249,7 @@ Persian typesetting in XeLaTeX]
\newcommand*{\@xepersian@pdfcustomproperties}{%
This is the xepersian package, Version \xepersian@version,
- Released May 14, 2020.
+ Released May 16, 2020.
}
\newcommand\twocolumnstableofcontents{%
@@ -4909,16 +4850,7 @@ number is 999,999,999.}%
\@bidi@perpage@footnotefalse
\fi}
-\newif\if@xepersian@fontsloadable@bool
-\define@choicekey{xepersian.sty}{fontsloadable}[\xepersian@tempa\xepersian@tempb]{true,false}[true]{%
- \ifcase\xepersian@tempb\relax
- \@xepersian@fontsloadable@booltrue
- \or
- \@xepersian@fontsloadable@boolfalse
- \fi}
-
\ExecuteOptionsX{%
- fontsloadable=false,
documentdirection=righttoleft,
tabledirection=righttoleft,
script=nonlatin,
@@ -4940,17 +4872,6 @@ number is 999,999,999.}%
\input{extrafootnotefeatures-xepersian.def}%
\fi
-\if@xepersian@fontsloadable@bool
- \PackageWarningNoLine{xepersian}{%
- The option `fontsloadable' should only be used in exceptional
- cases.
- You are not allowed to use the option `fontsloadable' unless
- you have a written permission from the primary author of the
- xepersian package}%
-\else
- \input{fontspec-xepersian.def}%
-\fi
-
\bidi@patchcmd{\set@fontsize}{\@tempdimb#2pt}{%
\@tempdimb\xepersian@@fontsize@scale\dimexpr#2pt\relax
}{}{}
diff --git a/macros/xetex/latex/xepersian/xepersian.pdf b/macros/xetex/latex/xepersian/xepersian.pdf
index f8bfbe0d12..7db9c9387c 100644
--- a/macros/xetex/latex/xepersian/xepersian.pdf
+++ b/macros/xetex/latex/xepersian/xepersian.pdf
Binary files differ