From 404e90e73ebdb6ecca01ae0b18e684a5f8fe83b3 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 23 Mar 2020 03:02:41 +0000 Subject: CTAN sync 202003230302 --- macros/xetex/latex/xepersian-hm/README.txt | 24 ++++- .../latex/xepersian-hm/kashida-xepersian-hm.def | 2 +- macros/xetex/latex/xepersian-hm/test-kashida.pdf | Bin 0 -> 17989 bytes macros/xetex/latex/xepersian-hm/test-kashida.tex | 32 ++++++ macros/xetex/latex/xepersian-hm/test-kasida.pdf | Bin 17987 -> 0 bytes macros/xetex/latex/xepersian-hm/test-kasida.tex | 37 ------- .../xetex/latex/xepersian-hm/xepersian-hm-doc.pdf | Bin 0 -> 36112 bytes .../xetex/latex/xepersian-hm/xepersian-hm-doc.tex | 113 +++++++++++++++++++++ macros/xetex/latex/xepersian-hm/xepersian-hm.sty | 2 +- 9 files changed, 167 insertions(+), 43 deletions(-) create mode 100644 macros/xetex/latex/xepersian-hm/test-kashida.pdf create mode 100644 macros/xetex/latex/xepersian-hm/test-kashida.tex delete mode 100644 macros/xetex/latex/xepersian-hm/test-kasida.pdf delete mode 100644 macros/xetex/latex/xepersian-hm/test-kasida.tex create mode 100644 macros/xetex/latex/xepersian-hm/xepersian-hm-doc.pdf create mode 100644 macros/xetex/latex/xepersian-hm/xepersian-hm-doc.tex (limited to 'macros/xetex') diff --git a/macros/xetex/latex/xepersian-hm/README.txt b/macros/xetex/latex/xepersian-hm/README.txt index 5bd2194c2e..f271209861 100644 --- a/macros/xetex/latex/xepersian-hm/README.txt +++ b/macros/xetex/latex/xepersian-hm/README.txt @@ -1,10 +1,26 @@ +%% +%% This is file `README.txt' +%% +%% Copyright (c) Hossein Movahhedian 2020 +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% The XEPERSIAN-HM package ------------------------ -Kashida feature in xepersian has problem with some fonts such as HM Series -fonts available at 'https://dma8hm1334.bitbucket.io' and XB Series fonts -available at 'http://wiki.irmug.com/index.php/X_Series_2'. The `xepersian-hm' +Kashida feature in `xepersian' has problem with some fonts such as `HM Series' +fonts available at `https://dma8hm1334.bitbucket.io' and `X Series 2' fonts +available at `http://wiki.irmug.com/index.php/X_Series_2'. The `xepersian-hm' package fixes this problem. -The file texmf-dist/doc/xelatex/xepersian-hm/test-kashida.tex can be used as +The file `texmf-dist/doc/xelatex/xepersian-hm/test-kashida.tex' can be used as a simple example of the usage of the package. + +Any comments or suggestions would be gratefully appreciated. +Please report any bugs or issues to `dma8hm1334@gmail.com'. + +I will do my best to fix all the bugs you report, but, unfortunately, +time is a big hurdle to overcome; so, my apologies in advance for those +which I cannot make time to fix. diff --git a/macros/xetex/latex/xepersian-hm/kashida-xepersian-hm.def b/macros/xetex/latex/xepersian-hm/kashida-xepersian-hm.def index b1d21e2813..9d57fff997 100644 --- a/macros/xetex/latex/xepersian-hm/kashida-xepersian-hm.def +++ b/macros/xetex/latex/xepersian-hm/kashida-xepersian-hm.def @@ -10,7 +10,7 @@ %% Copyright notice: the following code is partly adapted from the code in %% 'kashida-xepersian.def' from xepersian package (v22.8). \ExplSyntaxOn -\ProvidesExplFile {kashida-xepersian-hm.def} {2020/03/19} {0.2} { Fixes~implementation~of~Kashida~in~xepersian~package } +\ProvidesExplFile {kashida-xepersian-hm.def} {2020-03-23} {0.3} { Fixes~implementation~of~Kashida~in~xepersian~package } \int_const:Nn \c_xepersianhm_zwj_int {"200D} % zero-width joiner \int_const:Nn \c_xepersianhm_lrm_int {"200E} % left-right-mark diff --git a/macros/xetex/latex/xepersian-hm/test-kashida.pdf b/macros/xetex/latex/xepersian-hm/test-kashida.pdf new file mode 100644 index 0000000000..ec20b35a83 Binary files /dev/null and b/macros/xetex/latex/xepersian-hm/test-kashida.pdf differ diff --git a/macros/xetex/latex/xepersian-hm/test-kashida.tex b/macros/xetex/latex/xepersian-hm/test-kashida.tex new file mode 100644 index 0000000000..d3492c93ef --- /dev/null +++ b/macros/xetex/latex/xepersian-hm/test-kashida.tex @@ -0,0 +1,32 @@ +% \PassOptionsToPackage{Kashida=off,RTLdocument=on}{xepersian} % Load xepersian with a few options +\documentclass{report} +\usepackage{xcolor} +% \usepackage[Kashida]{xepersian} % Fails +\usepackage[Kashida,kashidastretch=0.14 em plus 0.5 em]{xepersian-hm} % Succeeds +% \usepackage[Kashida,kashidastretch=noskip]{xepersian-hm} % Succeeds +% \usepackage[Kashida,kashidastretch=default]{xepersian-hm} % Succeeds +% \usepackage[Kashida,kashidastretch=kayhan]{xepersian-hm} % Succeeds +% \usepackage[Kashida,kashidastretch=khorramshahr]{xepersian-hm} % Succeeds + +% \settextfont[Scale=4.5,Colour=darkgray]{XB Kayhan} +\settextfont[Scale=4.5,Colour=darkgray]{HM XKayhan} +% \settextfont[Scale=4.5,Colour=darkgray]{HM XNiloofar} +% \settextfont[Scale=4.5,Colour=darkgray]{HM XYas} +% \settextfont[Scale=4.5,Colour=darkgray]{HM XZar} + +% \setlatintextfont[Scale=2.5,Colour=teal]{XB Kayhan} +\setlatintextfont[Scale=2.5,Colour=teal]{HM XKayhan} + +\def\SampleText{راهی جایی تابی چاپی چاههی تلاشهایی شتابهایی تابی چاپی راهی تلاشهــایی که کتابهایی که کلاههایی که} + +\setlength\parindent{0pt} +\pagestyle{empty} +\begin{document} +\color{red} + +\KashidaOff \SampleText \lr{(Kashida Off)~} + +\KashidaOn \SampleText \lr{(Kashida On)~} + +\end{document} + diff --git a/macros/xetex/latex/xepersian-hm/test-kasida.pdf b/macros/xetex/latex/xepersian-hm/test-kasida.pdf deleted file mode 100644 index e2c92cbc99..0000000000 Binary files a/macros/xetex/latex/xepersian-hm/test-kasida.pdf and /dev/null differ diff --git a/macros/xetex/latex/xepersian-hm/test-kasida.tex b/macros/xetex/latex/xepersian-hm/test-kasida.tex deleted file mode 100644 index 1c599c1cc0..0000000000 --- a/macros/xetex/latex/xepersian-hm/test-kasida.tex +++ /dev/null @@ -1,37 +0,0 @@ -\documentclass{report} -\usepackage{graphicx} -\usepackage{xcolor} -% \usepackage[Kashida=off,fontsloadable=true,RTLdocument=on]{xepersian} % Load xepersian with a few options -\usepackage[Kashida,kashidastretch=0.14 em plus 0.5 em]{xepersian-hm} % Succeeds -% \usepackage[Kashida,kashidastretch=noskip]{xepersian-hm} % Succeeds -% \usepackage[Kashida,kashidastretch=default]{xepersian-hm} % Succeeds -% \usepackage[Kashida,kashidastretch=kayhan]{xepersian-hm} % Succeeds -% \usepackage[Kashida,kashidastretch=khorramshahr]{xepersian-hm} % Succeeds - -% \settextfont[Scale=4.5,Colour=darkgray]{IRXLotus} - -% \settextfont[Scale=4.5,Colour=darkgray]{IRLotus} - -\settextfont[Scale=4.5,Colour=darkgray]{HM XKayhan} - -% \settextfont[Scale=4.5,Colour=darkgray]{HM XNiloofar} - -% \settextfont[Scale=4.5,Colour=darkgray]{HM XYas} - -% \settextfont[Scale=4.5,Colour=darkgray]{HM XZar} - -\setlatintextfont[Scale=2.5,Colour=teal]{HM XKayhan} - -\def\SampleText{راهی جایی تابی چاپی چاههی تلاشهایی شتابهایی تابی چاپی راهی تلاشهــایی که کتابهایی که کلاههایی که} - -\setlength\parindent{0pt} -\pagestyle{empty} -\begin{document} -\color{red} - -\KashidaOff \SampleText \lr{(Kashida Off)~} - -\KashidaOn \SampleText \lr{(Kashida On)~} - -\end{document} - diff --git a/macros/xetex/latex/xepersian-hm/xepersian-hm-doc.pdf b/macros/xetex/latex/xepersian-hm/xepersian-hm-doc.pdf new file mode 100644 index 0000000000..a4bf9aa17d Binary files /dev/null and b/macros/xetex/latex/xepersian-hm/xepersian-hm-doc.pdf differ diff --git a/macros/xetex/latex/xepersian-hm/xepersian-hm-doc.tex b/macros/xetex/latex/xepersian-hm/xepersian-hm-doc.tex new file mode 100644 index 0000000000..9320152898 --- /dev/null +++ b/macros/xetex/latex/xepersian-hm/xepersian-hm-doc.tex @@ -0,0 +1,113 @@ +%% +%% This is file `xepersian-hm-doc.tex' +%% +%% Copyright (c) Hossein Movahhedian 2020 +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +\documentclass{ltxdoc} +\usepackage{hypdoc} + +\title{ + The \textsf{xepersian-hm} package\\Fixing kashida in xepersian +} + +\author{ + Hossein Movahhedian\thanks + { + E-mail: + \href{mailto:dma8hm1334@gmail.com} + {\textsf{dma8hm1334@gmail.com}} + } +} + +\date{Released 2020-03-23} + +\begin{document} + +\maketitle + +Kashida feature in \textsf{xepersian} has problem with some fonts such as \texttt{HM Series} +fonts available at +\href{https://dma8hm1334.bitbucket.io}{\texttt{https://dma8hm1334.bitbucket.io}} +and \texttt{X Series 2} fonts available at +\href{http://wiki.irmug.com/index.php/X_Series_2}{\texttt{http://wiki.irmug.com/index.php/X\_Series\_2}}. +The \textsf{xepersian-hm} package fixes this problem. + +The file \texttt{texmf-dist/doc/xelatex/xepersian-hm/test-kashida.tex} can be +used as a simple example of the usage of the package. + +Any comments or suggestions would be gratefully appreciated. +Please report any bug or issue to \href{mailto:dma8hm1334@gmail.com}{\textsf{dma8hm1334@gmail.com}}. + +I will do my best to fix all the bugs you report, but, unfortunately, +time is a big hurdle to overcome; so, my apologies in advance for those +which I cannot make time to fix. + +Please note that \textsf{xepersian-hm} loads \textsf{xepersian} automatically, +so you may only pass options to the package using the command +\verb|\PassOptionsToPackage| before \verb|\documentclass|, for example: + +\begin{verbatim} +\PassOptionsToPackage{Kashida=off,RTLdocument=on}{xepersian} +\documentclass{report} +\usepackage{xcolor} +\usepackage[Kashida,kashidastretch=0.14 em plus 0.5 em]{xepersian-hm} +\end{verbatim} + +The options available in \textsf{xepersian-hm} are: +\begin{itemize} + \item \texttt{Kashida}: with two possible values, \texttt{on} which enables + \texttt{Kashida} feature and \texttt{off} which disables that feature. For + example \texttt{Kashida=on} enables \texttt{Kashida} feature. + \item \texttt{kashidastretch}: which specifies the amount of extra stretching + for some combinations of characters. You may strictly specify the value of + this option. For example \texttt{'kashidastretch=0.14 em plus 0.5 em'} or you + may use the default values. The available default values are: + + \begin{tabular}{ll} + \texttt{kayhan} & \texttt{0.14 em plus 0.5 em} \\ + \texttt{khorramshahr} & \texttt{0.131 em plus 0.5 em} \\ + \texttt{kayhannavaar} & \texttt{0.129 em plus 0.5 em} \\ + \texttt{kayhanpook} & \texttt{0.133 em plus 0.5 em} \\ + \texttt{kayhansayeh} & \texttt{0.135 em plus 0.5 em} \\ + \texttt{khoramshahr} & \texttt{0.128 em plus 0.5 em} \\ + \texttt{khorramshahr} & \texttt{0.13 em plus 0.5 em} \\ + \texttt{niloofar} & \texttt{0.132 em plus 0.5 em} \\ + \texttt{paatch} & \texttt{0.127 em plus 0.5 em} \\ + \texttt{riyaz} & \texttt{0.125 em plus 0.5 em} \\ + \texttt{roya} & \texttt{0.142 em plus 0.5 em} \\ + \texttt{shafigh} & \texttt{0.143 em plus 0.5 em} \\ + \texttt{shafighKurd} & \texttt{0.126 em plus 0.5 em} \\ + \texttt{shafighUzbek} & \texttt{0.123 em plus 0.5 em} \\ + \texttt{shiraz} & \texttt{0.122 em plus 0.5 em} \\ + \texttt{sols} & \texttt{0.124 em plus 0.5 em} \\ + \texttt{tabriz} & \texttt{0.119 em plus 0.5 em} \\ + \texttt{titr} & \texttt{0.12 em plus 0.5 em} \\ + \texttt{titre} & \texttt{0.121 em plus 0.5 em} \\ + \texttt{traffic} & \texttt{0.124 em plus 0.5 em} \\ + \texttt{vahid} & \texttt{0.134 em plus 0.5 em} \\ + \texttt{vosta} & \texttt{0.136 em plus 0.5 em} \\ + \texttt{yaghut} & \texttt{0.138 em plus 0.5 em} \\ + \texttt{yagut} & \texttt{0.137 em plus 0.5 em} \\ + \texttt{yas} & \texttt{0.126 em plus 0.5 em} \\ + \texttt{yekan} & \texttt{0.141 em plus 0.5 em} \\ + \texttt{yermook} & \texttt{0.139 em plus 0.5 em} \\ + \texttt{zar} & \texttt{0.116 em plus 0.5 em} \\ + \texttt{ziba} & \texttt{0.119 em plus 0.5 em} \\ + \texttt{default} & \texttt{0.14 em plus 0.5 em} \\ + \texttt{noskip} & \texttt{0 em plus 0.5 em} + \end{tabular} + + For example: \mbox{\texttt{'kashidastretch=titr'}} is equivalent to\linebreak + \mbox{\texttt{'kashidastretch=0.12 em plus 0.5 em'}} +\end{itemize} + +\end{document} + +%%% Local Variables: +%%% mode: latex +%%% TeX-master: t +%%% End: diff --git a/macros/xetex/latex/xepersian-hm/xepersian-hm.sty b/macros/xetex/latex/xepersian-hm/xepersian-hm.sty index 441eac197f..e7330b2022 100644 --- a/macros/xetex/latex/xepersian-hm/xepersian-hm.sty +++ b/macros/xetex/latex/xepersian-hm/xepersian-hm.sty @@ -11,7 +11,7 @@ \NeedsTeXFormat{LaTeX2e} \RequirePackage{l3keys2e} \RequirePackage{xepersian} -\ProvidesExplPackage {xepersian-hm} {2020-03-19} {0.2} { Fixes~issues~in~xepersian~package } +\ProvidesExplPackage {xepersian-hm} {2020-03-23} {0.3} { Fixes~issues~in~xepersian~package } \tl_set:Nn \l_kayhan_tl { kayhan } \tl_set:Nn \l_khorramshahr_tl { khorramshahr } -- cgit v1.2.3