diff options
author | Karl Berry <karl@freefriends.org> | 2017-05-15 21:14:50 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-05-15 21:14:50 +0000 |
commit | 40ff7747893db36bf2fdf14a1f8171d8470cdeee (patch) | |
tree | 1bec65d91b2bc33a6bde984a31b54b95425e3628 /Master/texmf-dist/tex/xelatex | |
parent | 9345b56051808302edacfac91556f8a11d4d7fbe (diff) |
xecjk (15may17)
git-svn-id: svn://tug.org/texlive/trunk@44370 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex')
6 files changed, 30 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xecjk/xeCJK-listings.sty b/Master/texmf-dist/tex/xelatex/xecjk/xeCJK-listings.sty index c5982eb3de4..a41f8e2d322 100644 --- a/Master/texmf-dist/tex/xelatex/xecjk/xeCJK-listings.sty +++ b/Master/texmf-dist/tex/xelatex/xecjk/xeCJK-listings.sty @@ -29,10 +29,10 @@ %% \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} -\GetIdInfo$Id: xeCJK.dtx 832988e 2017-04-01 21:33:23 +0800 Qing Lee <sobenlee@gmail.com> $ +\GetIdInfo$Id: xeCJK.dtx 18af4a5 2017-05-15 20:12:35 +0800 Qing Lee <sobenlee@gmail.com> $ {xeCJK patch file for listings} \ProvidesExplPackage{xeCJK-listings} - {\ExplFileDate}{3.4.7}{\ExplFileDescription} + {\ExplFileDate}{3.4.8}{\ExplFileDescription} \DeclareOption* { \PassOptionsToPackage { \CurrentOption } { xeCJK } } \ProcessOptions \scan_stop: \RequirePackage { xeCJK } @@ -293,11 +293,17 @@ } } \cs_set_eq:NN \lst@IfNextCharActive \__xeCJK_listings_peek_active_loop:TF +\cs_new_protected:Npn \__xeCJK_listings_rescan:Nn #1#2 + { + \__xeCJK_listings_set_escape: + \tl_set:Nn \l__xeCJK_tmp_tl {#2} + \__xeCJK_listings_escape_backslash: + \tl_set_rescan:Nno #1 { } { \l__xeCJK_tmp_tl } + } \cs_new_protected:Npn \__xeCJK_listings_inside_convert:nw #1 ~ \@empty { - \tl_set_rescan:Nnn \l__xeCJK_tmp_tl { } {#1} - \__xeCJK_set_listings_escape: - \tl_put_right:NV \lst@arg \l__xeCJK_tmp_tl + \__xeCJK_listings_rescan:Nn \l__xeCJK_tmp_tl {#1} + \tl_put_right:No \lst@arg { \l__xeCJK_tmp_tl } } \cs_set_eq:NN \lst@InsideConvert@ \__xeCJK_listings_inside_convert:nw \cs_new_protected_nopar:Npn \__xeCJK_listings_inline_group:w @@ -308,15 +314,14 @@ \cs_set_eq:NN \lst@InlineGJ \__xeCJK_listings_inline_group:w \cs_new_protected:Npn \__xeCJK_listings_inline_group:n #1 { - \tl_set_rescan:Nnn \lst@arg { } {#1} - \__xeCJK_set_listings_escape: + \__xeCJK_listings_rescan:Nn \lst@arg {#1} \lst@InlineGJEnd } \group_begin: \cs_set:Npn \__xeCJK_tmp:w #1 { \group_end: - \cs_new_protected:Npn \__xeCJK_set_listings_escape: + \cs_new_protected_nopar:Npn \__xeCJK_listings_set_escape: { \xeCJK_swap_cs:NN #1 \__xeCJK_listings_escape:N } \cs_new_protected:Npn \__xeCJK_listings_escape:N ##1 { \cs_if_eq:NNTF #1 ##1 { \__xeCJK_listings_escape:N } {##1} } @@ -327,6 +332,12 @@ \__xeCJK_tmp:w } { \ } +\cs_new_protected_nopar:Npx \__xeCJK_listings_escape_backslash: + { + \tl_replace_all:Nnn \exp_not:N \l__xeCJK_tmp_tl + { \c_backslash_str } + { \c_backslash_str \c_backslash_str } + } %% %% This package consists of the files xeCJK.dtx, %% full-stop.map, diff --git a/Master/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg b/Master/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg index 38bf54a521e..800fc7a9bbb 100644 --- a/Master/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg +++ b/Master/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg @@ -6,10 +6,10 @@ %% %% xeCJK.dtx (with options: `config') %% -\GetIdInfo$Id: xeCJK.dtx 832988e 2017-04-01 21:33:23 +0800 Qing Lee <sobenlee@gmail.com> $ +\GetIdInfo$Id: xeCJK.dtx 18af4a5 2017-05-15 20:12:35 +0800 Qing Lee <sobenlee@gmail.com> $ {Configuration file for xeCJK package} \ProvidesExplFile{\ExplFileName.cfg} - {\ExplFileDate}{3.4.7}{\ExplFileDescription} + {\ExplFileDate}{3.4.8}{\ExplFileDescription} %% %% diff --git a/Master/texmf-dist/tex/xelatex/xecjk/xeCJK.sty b/Master/texmf-dist/tex/xelatex/xecjk/xeCJK.sty index 97c9e4ff557..c50b1246acf 100644 --- a/Master/texmf-dist/tex/xelatex/xecjk/xeCJK.sty +++ b/Master/texmf-dist/tex/xelatex/xecjk/xeCJK.sty @@ -29,10 +29,10 @@ %% \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} -\GetIdInfo$Id: xeCJK.dtx 832988e 2017-04-01 21:33:23 +0800 Qing Lee <sobenlee@gmail.com> $ +\GetIdInfo$Id: xeCJK.dtx 18af4a5 2017-05-15 20:12:35 +0800 Qing Lee <sobenlee@gmail.com> $ {Typesetting CJK scripts with XeLaTeX} \ProvidesExplPackage{\ExplFileName} - {\ExplFileDate}{3.4.7}{\ExplFileDescription} + {\ExplFileDate}{3.4.8}{\ExplFileDescription} \msg_new:nnn { xeCJK } { Require-XeTeX } { The~xeCJK~package~requires~XeTeX~to~function.\\\\ diff --git a/Master/texmf-dist/tex/xelatex/xecjk/xeCJKfntef.sty b/Master/texmf-dist/tex/xelatex/xecjk/xeCJKfntef.sty index c048f9fbf83..16d6642f86d 100644 --- a/Master/texmf-dist/tex/xelatex/xecjk/xeCJKfntef.sty +++ b/Master/texmf-dist/tex/xelatex/xecjk/xeCJKfntef.sty @@ -29,10 +29,10 @@ %% \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} -\GetIdInfo$Id: xeCJK.dtx 832988e 2017-04-01 21:33:23 +0800 Qing Lee <sobenlee@gmail.com> $ +\GetIdInfo$Id: xeCJK.dtx 18af4a5 2017-05-15 20:12:35 +0800 Qing Lee <sobenlee@gmail.com> $ {xeCJK font effect} \ProvidesExplPackage{xeCJKfntef} - {\ExplFileDate}{3.4.7}{\ExplFileDescription} + {\ExplFileDate}{3.4.8}{\ExplFileDescription} \PassOptionsToPackage { normalem } { ulem } \DeclareOption* { \PassOptionsToPackage { \CurrentOption } { ulem } } \ProcessOptions \scan_stop: @@ -113,7 +113,7 @@ \cs_new_protected_nopar:Npn \__xeCJK_ulem_end: { \c_group_end_token - \hbox_set_end: + \c_group_end_token \tex_unskip:D \tex_unskip:D \tex_unskip:D \xeCJK_ulem_right_skip: \xeCJK_ulem_group_end: diff --git a/Master/texmf-dist/tex/xelatex/xecjk/xunicode-addon.sty b/Master/texmf-dist/tex/xelatex/xecjk/xunicode-addon.sty index 6349f80d8bd..8e82ebe46bd 100644 --- a/Master/texmf-dist/tex/xelatex/xecjk/xunicode-addon.sty +++ b/Master/texmf-dist/tex/xelatex/xecjk/xunicode-addon.sty @@ -29,10 +29,10 @@ %% \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} -\GetIdInfo$Id: xeCJK.dtx 832988e 2017-04-01 21:33:23 +0800 Qing Lee <sobenlee@gmail.com> $ +\GetIdInfo$Id: xeCJK.dtx 18af4a5 2017-05-15 20:12:35 +0800 Qing Lee <sobenlee@gmail.com> $ {addon file for xunicode} \ProvidesExplPackage{xunicode-addon} - {\ExplFileDate}{3.4.7}{\ExplFileDescription} + {\ExplFileDate}{3.4.8}{\ExplFileDescription} \bool_if:nF { \sys_if_engine_xetex_p: || diff --git a/Master/texmf-dist/tex/xelatex/xecjk/xunicode-extra.def b/Master/texmf-dist/tex/xelatex/xecjk/xunicode-extra.def index 43810b49b6a..8fa6a558016 100644 --- a/Master/texmf-dist/tex/xelatex/xecjk/xunicode-extra.def +++ b/Master/texmf-dist/tex/xelatex/xecjk/xunicode-extra.def @@ -27,10 +27,10 @@ %% %% ---------------------------------------------------------------------- %% -\GetIdInfo$Id: xeCJK.dtx 832988e 2017-04-01 21:33:23 +0800 Qing Lee <sobenlee@gmail.com> $ +\GetIdInfo$Id: xeCJK.dtx 18af4a5 2017-05-15 20:12:35 +0800 Qing Lee <sobenlee@gmail.com> $ {extra definition for xunicode} \ProvidesExplFile{xunicode-extra.def} - {\ExplFileDate}{3.4.7}{\ExplFileDescription} + {\ExplFileDate}{3.4.8}{\ExplFileDescription} \DeclareUTFComposite\textsuperscript \DeclareUTFComposite\textsubscript \DeclareUTFEncodedAccent\textsbleftarrow{"20EE}{"20FF} |