diff options
author | Karl Berry <karl@freefriends.org> | 2016-09-09 22:42:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-09-09 22:42:22 +0000 |
commit | 88326b0265503824247320367cec7787c6bfbdf5 (patch) | |
tree | 394c032bffe83188673d4bebedfa255fd4210d26 /Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def | |
parent | ecb4ba2af7bc72e6d8b8adccc45796aa726bda97 (diff) |
xepersian (9sep16)
git-svn-id: svn://tug.org/texlive/trunk@42028 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def index 87b1c527596..80e8c7dbac6 100644 --- a/Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def +++ b/Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def @@ -17,7 +17,7 @@ %% by Vafa Khalighi. %% %% -%% \CheckSum{10082} +%% \CheckSum{10099} %% \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 @@ -34,7 +34,7 @@ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} %% -\ProvidesFile{kashida-xepersian.def}[2016/05/03 v0.4 implementation of Kashida for xepersian package] +\ProvidesFile{kashida-xepersian.def}[2016/09/09 v0.5 implementation of Kashida for xepersian package] \chardef\xepersian@zwj="200D % zero-width joiner \chardef\xepersian@D=10 % dual-joiner class @@ -42,8 +42,9 @@ \chardef\xepersian@R=12 % right-joiner \chardef\xepersian@A=13 % alef \chardef\xepersian@V=4096 % vowel or other combining mark (to be ignored) -\def\xepersian@kashida{\xepersian@zwj\nobreak% - \leaders\hrule height \XeTeXglyphbounds2 \the\XeTeXcharglyph"0640 depth \XeTeXglyphbounds4 \the\XeTeXcharglyph"0640 \hskip0pt plus 0.5em \xepersian@zwj} +\newif\if@Kashida@on +\def\xepersian@kashida{\if@Kashida@on\xepersian@zwj\nobreak% + \leaders\hrule height \XeTeXglyphbounds2 \the\XeTeXcharglyph"0640 depth \XeTeXglyphbounds4 \the\XeTeXcharglyph"0640 \hskip0pt plus 0.5em \xepersian@zwj\fi} \def\setclass#1#2{\def\theclass{#1}\def\charlist{#2}% \expandafter\dosetclass\charlist,\end} @@ -73,8 +74,8 @@ \XeTeXinterchartoks \xepersian@L \xepersian@R = {\xepersian@kashida} \XeTeXinterchartoks \xepersian@L \xepersian@A = {} -\newcommand{\KashidaOn}{\XeTeXinterchartokenstate=1} -\newcommand{\KashidaOff}{\XeTeXinterchartokenstate=0} +\newcommand{\KashidaOn}{\@Kashida@ontrue} +\newcommand{\KashidaOff}{\@Kashida@onfalse} \KashidaOn \endinput %% |