From a3f31ac7e2d7229a032c7609c1d97404f52b885a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 29 Apr 2014 21:51:20 +0000 Subject: xecjk (29apr14) git-svn-id: svn://tug.org/texlive/trunk@33753 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/xelatex/xecjk/config/xeCJK.cfg | 4 +- .../tex/xelatex/xecjk/xeCJK-listings.sty | 8 +- Master/texmf-dist/tex/xelatex/xecjk/xeCJK.sty | 195 ++++++++++----------- Master/texmf-dist/tex/xelatex/xecjk/xeCJKfntef.sty | 8 +- .../tex/xelatex/xecjk/xunicode-addon.sty | 6 +- .../tex/xelatex/xecjk/xunicode-extra.def | 8 +- 6 files changed, 111 insertions(+), 118 deletions(-) (limited to 'Master/texmf-dist/tex') diff --git a/Master/texmf-dist/tex/xelatex/xecjk/config/xeCJK.cfg b/Master/texmf-dist/tex/xelatex/xecjk/config/xeCJK.cfg index 0fff3a187b1..fa687609118 100644 --- a/Master/texmf-dist/tex/xelatex/xecjk/config/xeCJK.cfg +++ b/Master/texmf-dist/tex/xelatex/xecjk/config/xeCJK.cfg @@ -6,11 +6,11 @@ %% %% xeCJK.dtx (with options: `config') %% -\GetIdInfo$Id: xeCJK.dtx 549 2014-03-01 09:06:08Z sobenlee $ +\GetIdInfo$Id: xeCJK.dtx 644 2014-04-29 09:45:49Z sobenlee $ {Configuration file for xeCJK package} \ProvidesExplFile {\ExplFileName.cfg} - {\ExplFileDate}{3.2.10}{\ExplFileDescription} + {\ExplFileDate}{3.2.11}{\ExplFileDescription} %% %% diff --git a/Master/texmf-dist/tex/xelatex/xecjk/xeCJK-listings.sty b/Master/texmf-dist/tex/xelatex/xecjk/xeCJK-listings.sty index e9624519555..b8b0f238be6 100644 --- a/Master/texmf-dist/tex/xelatex/xecjk/xeCJK-listings.sty +++ b/Master/texmf-dist/tex/xelatex/xecjk/xeCJK-listings.sty @@ -6,7 +6,7 @@ %% %% xeCJK.dtx (with options: `listings') %% -%% $Id: xeCJK.dtx 549 2014-03-01 09:06:08Z sobenlee $ +%% $Id: xeCJK.dtx 644 2014-04-29 09:45:49Z sobenlee $ %% $URL: https://ctex-kit.googlecode.com/svn/trunk/xeCJK/xeCJK.dtx $ %% ----------------------------------------------------------------- %% Author: @@ -33,11 +33,11 @@ %% \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} -\GetIdInfo$Id: xeCJK.dtx 549 2014-03-01 09:06:08Z sobenlee $ +\GetIdInfo$Id: xeCJK.dtx 644 2014-04-29 09:45:49Z sobenlee $ {xeCJK patch file for listings} \ProvidesExplPackage {xeCJK-listings} - {\ExplFileDate}{3.2.10}{\ExplFileDescription} + {\ExplFileDate}{3.2.11}{\ExplFileDescription} \DeclareOption* { \PassOptionsToPackage { \CurrentOption } { xeCJK } } \ProcessOptions \scan_stop: \RequirePackage { xeCJK } @@ -56,7 +56,7 @@ \tex_noindent:D \bool_gset_false:N \g__xeCJK_listings_IVS_bool \tl_put_left:Nn \lst@numberstyle { \l__xeCJK_restore_listings_toks_tl } - \__xeCJK_add_to_shipout:n { \l__xeCJK_restore_listings_toks_tl } + \xeCJK_add_to_shipout:n { \l__xeCJK_restore_listings_toks_tl } \lst@ifbreaklines \cs_set_eq:NN \__xeCJK_listings_CJK_toks: \__xeCJK_listings_breaklines_toks: \fi: diff --git a/Master/texmf-dist/tex/xelatex/xecjk/xeCJK.sty b/Master/texmf-dist/tex/xelatex/xecjk/xeCJK.sty index 5f586a2ffcb..da0bef436b0 100644 --- a/Master/texmf-dist/tex/xelatex/xecjk/xeCJK.sty +++ b/Master/texmf-dist/tex/xelatex/xecjk/xeCJK.sty @@ -6,7 +6,7 @@ %% %% xeCJK.dtx (with options: `package') %% -%% $Id: xeCJK.dtx 549 2014-03-01 09:06:08Z sobenlee $ +%% $Id: xeCJK.dtx 644 2014-04-29 09:45:49Z sobenlee $ %% $URL: https://ctex-kit.googlecode.com/svn/trunk/xeCJK/xeCJK.dtx $ %% ----------------------------------------------------------------- %% Author: @@ -33,11 +33,11 @@ %% \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} -\GetIdInfo$Id: xeCJK.dtx 549 2014-03-01 09:06:08Z sobenlee $ +\GetIdInfo$Id: xeCJK.dtx 644 2014-04-29 09:45:49Z sobenlee $ {Typesetting CJK scripts with XeLaTeX} \ProvidesExplPackage {\ExplFileName} - {\ExplFileDate}{3.2.10}{\ExplFileDescription} + {\ExplFileDate}{3.2.11}{\ExplFileDescription} \msg_new:nnn { xeCJK } { Require-XeTeX } { The~xeCJK~package~requires~XeTeX~to~function.\\\\ @@ -81,7 +81,7 @@ using~your~TeX~package~manager~or~from~CTAN.\\ \str_if_eq:nnT {#1} { expl3 } { Loading~xeCJK~will~abort! } } -\@ifpackagelater { expl3 } { 2013/07/20 } { } +\@ifpackagelater { expl3 } { 2014/01/01 } { } { \msg_critical:nnn { xeCJK } { l3-too-old } { expl3 } } \RequirePackage { xtemplate } \@ifpackagelater { xtemplate } { 2012/11/10 } { } @@ -143,7 +143,7 @@ \tl_use:N \l__xeCJK_shipout_hook_tl } } -\cs_new_protected:Npn \__xeCJK_add_to_shipout:n #1 +\cs_new_protected:Npn \xeCJK_add_to_shipout:n #1 { \tl_put_right:Nn \l__xeCJK_shipout_hook_tl {#1} } \tl_new:N \l__xeCJK_shipout_hook_tl \bool_new:N \l__xeCJK_shipout_hook_bool @@ -403,16 +403,16 @@ \xeCJK_new_class:n { NormalSpace } \xeCJK_new_class:n { IVS } \clist_const:Nn \c__xeCJK_HalfLeft_chars_clist - { "28 , "2D , "5B , "60 , "7B } + { "28 , "2D , "5B , "60 , "7B , "2329 } \clist_const:Nn \c__xeCJK_HalfRight_chars_clist - { "21 , "22 , "25 , "27 , "29 , "2C , "2E , "3A , "3B , "3F , "5D , "7D } + { "21 , "22 , "25 , "27 , "29 , "2C , "2E , "3A , "3B , "3F , "5D , "7D , "232A } \clist_const:Nn \c__xeCJK_NormalSpace_chars_clist { "2F } \clist_const:Nn \c__xeCJK_OP_chars_clist { "2018 , "201C , - "2329 , "3008 , "300A , "300C , "300E , "3010 , "3014 , "3016 , "3018 , "301A , - "301D , "FE17 , "FE35 , "FE37 , "FE39 , "FE3B , "FE3D , "FE3F , "FE41 , "FE43 , - "FE47 , "FE59 , "FE5B , "FE5D , "FF08 , "FF3B , "FF5B , "FF5F , "FF62 + "3008 , "300A , "300C , "300E , "3010 , "3014 , "3016 , "3018 , "301A , "301D , + "FE17 , "FE35 , "FE37 , "FE39 , "FE3B , "FE3D , "FE3F , "FE41 , "FE43 , "FE47 , + "FE59 , "FE5B , "FE5D , "FF08 , "FF3B , "FF5B , "FF5F , "FF62 } \clist_const:Nn \c__xeCJK_PR_chars_clist { "20A9 , "FE69 , "FF04 , "FFE1 , "FFE5 , "FFE6 } @@ -424,10 +424,10 @@ \clist_const:Nn \c__xeCJK_CL_chars_clist { "00B7 , "2019 , "201D , "2014 , "2015 , "2025 , "2026 , "2027 , "2500 , - "232A , "3001 , "3002 , "3009 , "300B , "300D , "300F , "3011 , "3015 , "3017 , - "3019 , "301B , "301E , "301F , "FE11 , "FE12 , "FE18 , "FE36 , "FE38 , "FE3A , - "FE3C , "FE3E , "FE40 , "FE42 , "FE44 , "FE48 , "FE50 , "FE52 , "FE5A , "FE5C , - "FE5E , "FF09 , "FF0C , "FF0E , "FF3D , "FF5D , "FF60 , "FF61 , "FF63 , "FF64 + "3001 , "3002 , "3009 , "300B , "300D , "300F , "3011 , "3015 , "3017 , "3019 , + "301B , "301E , "301F , "FE11 , "FE12 , "FE18 , "FE36 , "FE38 , "FE3A , "FE3C , + "FE3E , "FE40 , "FE42 , "FE44 , "FE48 , "FE50 , "FE52 , "FE5A , "FE5C , "FE5E , + "FF09 , "FF0C , "FF0E , "FF3D , "FF5D , "FF60 , "FF61 , "FF63 , "FF64 } \clist_const:Nn \c__xeCJK_NS_chars_clist { @@ -2259,7 +2259,7 @@ { \xeCJK_class_group_begin: \tl_set_eq:NN \l__xeCJK_fallback_family_tl \l_xeCJK_family_tl - \xeCJK_fallback_loop:Nn {#1} { \l__xeCJK_fallback_family_tl/FallBack } + \xeCJK_fallback_loop:Nn {#1} { \l_xeCJK_family_tl/FallBack } \xeCJK_class_group_end: } } @@ -2267,23 +2267,24 @@ { \xeCJK_family_if_exist:xTF {#2} { - \xeCJK_select_font:x {#2} - \tl_set:Nx \l__xeCJK_fallback_family_tl {#2} + \tl_set:Nx \l_xeCJK_family_tl {#2} + \tl_set_eq:NN \CJK@family \l__xeCJK_fontspec_family_tl + \xeCJK_select_font: \xeCJK_glyph_if_exist:NTF {#1} { \__xeCJK_fallback_save_CJKsymbol:N {#1} } - { \xeCJK_fallback_loop:Nn {#1} { \l__xeCJK_fallback_family_tl/FallBack } } + { \xeCJK_fallback_loop:Nn {#1} { \l_xeCJK_family_tl/FallBack } } } { - \str_if_eq_x:nnTF { \CJKfamilydefault } { \l_xeCJK_family_tl } + \str_if_eq_x:nnTF { \CJKfamilydefault } { \l__xeCJK_fallback_family_tl } { \__xeCJK_warning:nxxx { missing-glyph } - { \l__xeCJK_fallback_family_tl } {#1} + { \l_xeCJK_family_tl } {#1} { \int_to_hexadecimal:n { `#1 } } \__xeCJK_fallback_save_CJKsymbol:N {#1} } { - \tl_set:Nx \l_xeCJK_family_tl { \CJKfamilydefault } - \xeCJK_fallback_loop:Nn {#1} { \l_xeCJK_family_tl } + \tl_set:Nx \l__xeCJK_fallback_family_tl { \CJKfamilydefault } + \xeCJK_fallback_loop:Nn {#1} { \l__xeCJK_fallback_family_tl } } } } @@ -2509,8 +2510,11 @@ \exp_not:n { \fontspec_set_family:Nnn \l__xeCJK_fontspec_family_tl } { \exp_not:V \l__xeCJK_fontspec_options_clist } { \exp_not:V \l__xeCJK_font_name_tl } - \__xeCJK_gset_family_nfss_cs:xx {#1} { \exp_not:N \l__xeCJK_fontspec_family_tl } - \group_end: + \__xeCJK_gset_family_nfss_cs:xx + {#1} { \exp_not:N \l__xeCJK_fontspec_family_tl } + \exp_not:N \exp_args:NNNo \group_end: + \tl_set:Nn \exp_not:N \l__xeCJK_fontspec_family_tl + { \exp_not:N \l__xeCJK_fontspec_family_tl } } } \tl_new:N \l__xeCJK_fontspec_family_tl @@ -2519,7 +2523,10 @@ \prop_gpop:NnNT \g__xeCJK_family_font_name_prop {#1} \l__xeCJK_tmp_tl { \prop_gpop:NnNT \g__xeCJK_family_name_prop {#1} \l__xeCJK_tmp_tl - { \cs_undefine:c { \__xeCJK_family_nfss_csname:n {#1} } } + { + \cs_undefine:c { \__xeCJK_family_csname:n {#1} } + \cs_undefine:c { \__xeCJK_family_nfss_csname:n {#1} } + } \__xeCJK_warning:nxx { CJKfamily-redef } {#1} { \l__xeCJK_tmp_tl } } } @@ -2597,23 +2604,20 @@ { \xeCJK_family_if_exist:xT { \l__xeCJK_family_name_tl } { - \prop_get:NnNT \exp_not:N \g__xeCJK_family_name_prop - { \l__xeCJK_family_name_tl } \exp_not:N \l__xeCJK_fontspec_family_tl - { - \__xeCJK_gset_family_nfss_cs:xx - { \l__xeCJK_sub_family_name_tl } - { \exp_not:N \l__xeCJK_fontspec_family_tl } - } + \__xeCJK_gset_family_nfss_cs:xx + { \l__xeCJK_sub_family_name_tl } + { \exp_not:N \l__xeCJK_fontspec_family_tl } } } } \cs_new_protected_nopar:Npn \__xeCJK_copy_family:nn #1#2 { - \xeCJK_family_if_exist:xT {#2} + \xeCJK_family_if_exist:nT {#2} { + \prop_gput:NnV \g__xeCJK_family_name_prop + {#1} \l__xeCJK_fontspec_family_tl \tl_map_inline:nn { - \g__xeCJK_family_name_prop \g__xeCJK_family_font_name_prop \g__xeCJK_family_font_options_prop } @@ -2628,24 +2632,14 @@ } \cs_generate_variant:Nn \__xeCJK_copy_family:nn { xx } \tl_new:N \l_xeCJK_current_font_tl -\tl_set:Nn \l_xeCJK_current_font_tl { \__xeCJK_font_csname:n { \l_xeCJK_family_tl } } +\tl_set:Nn \l_xeCJK_current_font_tl { \__xeCJK_font_csname:n { \CJK@family } } \cs_new_nopar:Npn \__xeCJK_font_csname:n #1 { xeCJK/#1/\f@series/\f@shape/\f@size } \cs_new_protected_nopar:Npn \xeCJK_select_font: { - \cs_if_exist_use:cF { \l_xeCJK_current_font_tl } + \exp_args:Nc \cs_if_exist_use:NF { \l_xeCJK_current_font_tl } { - \tl_set:Nx \l__xeCJK_current_coor_tl { \l_xeCJK_current_font_tl } \__xeCJK_family_use:x { \l_xeCJK_family_tl } - \xeCJK_font_gset_to_current:c { \l__xeCJK_current_coor_tl } - } - } -\cs_new_protected_nopar:Npn \xeCJK_select_font:x #1 - { - \cs_if_exist_use:cF { \__xeCJK_font_csname:n {#1} } - { - \tl_set:Nx \l__xeCJK_current_coor_tl { \__xeCJK_font_csname:n {#1} } - \__xeCJK_family_use:x {#1} - \xeCJK_font_gset_to_current:c { \l__xeCJK_current_coor_tl } + \xeCJK_font_gset_to_current:c { \l_xeCJK_current_font_tl } } } \tl_new:N \l__xeCJK_current_coor_tl @@ -2663,10 +2657,8 @@ \__xeCJK_msg_new:nn { CJK-block } { Switch~from~block~`#1'~to~`#2'. } \cs_new_protected_nopar:Npn \__xeCJK_block_select_font:n #1 { - \cs_if_exist_use:cF { \__xeCJK_font_csname:n { \l_xeCJK_family_tl/#1 } } + \exp_args:Nc \cs_if_exist_use:NF { \__xeCJK_font_csname:n { \CJK@family/#1 } } { - \tl_set:Nx \l__xeCJK_current_coor_tl - { \__xeCJK_font_csname:n { \l_xeCJK_family_tl/#1 } } \xeCJK_family_if_exist:xF { \l_xeCJK_family_tl/#1 } { \__xeCJK_copy_family:xx { \l_xeCJK_family_tl/#1 } @@ -2677,7 +2669,8 @@ } } \__xeCJK_family_use:x { \l_xeCJK_family_tl/#1 } - \xeCJK_font_gset_to_current:c { \l__xeCJK_current_coor_tl } + \xeCJK_font_gset_to_current:c + { \__xeCJK_font_csname:n { \CJK@family/#1 } } } } \cs_new_nopar:Npn \__xeCJK_family_csname:n #1 { xeCJK/family/#1 } @@ -2694,13 +2687,18 @@ } } \cs_generate_variant:Nn \prop_gput:Nnn { Nxx } -\prg_new_protected_conditional:Npnn \xeCJK_family_if_exist:x #1 { T , F , TF } +\prg_new_protected_conditional:Npnn \xeCJK_family_if_exist:n #1 { T , F , TF } { - \cs_if_exist:cTF { \__xeCJK_family_nfss_csname:n {#1} } - { \use_i:nn } - { \cs_if_exist_use:cTF { \__xeCJK_family_csname:n {#1} } } - { \prg_return_true: } { \prg_return_false: } + \prop_get:NnNTF \g__xeCJK_family_name_prop {#1} \l__xeCJK_fontspec_family_tl + { \prg_return_true: } + { + \exp_args:Nc \cs_if_exist_use:NTF { \__xeCJK_family_csname:n {#1} } + { \prg_return_true: } { \prg_return_false: } + } } +\cs_generate_variant:Nn \xeCJK_family_if_exist:nT { x } +\cs_generate_variant:Nn \xeCJK_family_if_exist:nF { x } +\cs_generate_variant:Nn \xeCJK_family_if_exist:nTF { x } \NewDocumentCommand \CJKfamily { t+ t- m } { \xeCJK_if_blank_x:nTF {#3} @@ -2714,7 +2712,7 @@ \xeCJK_family_if_exist:xTF {#3} { \tl_set:Nx \l_xeCJK_family_tl {#3} - \tl_set_eq:NN \xeCJK@family \l_xeCJK_family_tl + \tl_set_eq:NN \CJK@family \l__xeCJK_fontspec_family_tl \IfBooleanT {#1} { \__xeCJK_family_use:x {#3} } } { \__xeCJK_family_unknown_warning:x {#3} } @@ -2727,11 +2725,12 @@ \xeCJK_family_if_exist:xTF {#1} { \tl_set:Nx \l_xeCJK_family_tl {#1} - \tl_set_eq:NN \xeCJK@family \l_xeCJK_family_tl + \tl_set_eq:NN \CJK@family \l__xeCJK_fontspec_family_tl } { \__xeCJK_family_unknown_warning:x {#1} } } \tl_new:N \l_xeCJK_family_tl +\tl_new:N \CJK@family \cs_new_protected_nopar:Npn \__xeCJK_gobble_CJKfamily: { \cs_set_eq:NN \CJKfamily \__xeCJK_gobble_CJKfamily:wn } \DeclareExpandableDocumentCommand \__xeCJK_gobble_CJKfamily:wn { t+ t- m } { } @@ -2818,7 +2817,7 @@ { \prop_get:NnNTF \g__xeCJK_fontspec_prop { CJKfontspec/#1/#2/id } \l_xeCJK_family_tl - { \tl_set_eq:NN \xeCJK@family \l_xeCJK_family_tl } + { \xeCJK_switch_family:n { \l_xeCJK_family_tl } } { \__xeCJK_fontspec:xnn { CJKfontspec ( \int_eval:n { \g__xeCJK_family_int + \c_one } ) } @@ -3014,16 +3013,14 @@ \tl_const:Nn \c__xeCJK_math_tl { CJKmath } \cs_new_protected_nopar:Npn \xeCJK_set_mathfont: { - \xeCJK_family_if_exist:xTF { \c__xeCJK_math_tl } - { \tl_set:Nx \l__xeCJK_tmp_tl { \c__xeCJK_math_tl } } + \xeCJK_family_if_exist:xF { \c__xeCJK_math_tl } + { \use:n } { - \xeCJK_family_if_exist:xTF { \CJKfamilydefault } - { \tl_set:Nx \l__xeCJK_tmp_tl { \CJKfamilydefault } } - { \use_none:nnnnn } + \xeCJK_family_if_exist:xF { \CJKfamilydefault } + { \use:n } { \use_none:n } } - \prop_get:NVNT \g__xeCJK_family_name_prop \l__xeCJK_tmp_tl \l__xeCJK_tmp_tl { - \tl_const:Nx \c__xeCJK_math_family_tl { \l__xeCJK_tmp_tl } + \tl_const:Nx \c__xeCJK_math_family_tl { \l__xeCJK_fontspec_family_tl } \DeclareSymbolFont { \c__xeCJK_math_tl } { \c__xeCJK_encoding_tl } { \c__xeCJK_math_family_tl } { \mddefault } { \shapedefault } \cs_if_free:cF @@ -3141,7 +3138,7 @@ \l__xeCJK_reset_shipout_skip_hook_tl } } - \__xeCJK_add_to_shipout:n { \l__xeCJK_off_verb_addon_tl } + \xeCJK_add_to_shipout:n { \l__xeCJK_off_verb_addon_tl } \xeCJKsetup { xCJKecglue = false } } \tl_new:N \l__xeCJK_reset_shipout_skip_hook_tl @@ -3203,7 +3200,7 @@ \cs_set_eq:NN \xeCJK_CJK_and_Boundary:w \__xeCJK_shipout_boundary:w } } - \__xeCJK_add_to_shipout:n { \xeCJKOffVerbAddon } + \xeCJK_add_to_shipout:n { \xeCJKOffVerbAddon } \xeCJKsetup { xCJKecglue = false } } \skip_if_eq:nnTF { \l__xeCJK_verb_exspace_skip } { \c_zero_skip } @@ -3232,17 +3229,17 @@ \cs_new_eq:NN \CJKfixedspacing \xeCJKVerbAddon \cs_new_protected_nopar:Npn \__xeCJK_set_verb_exspace: { - \tl_if_exist:cTF { xeCJK/verb/\l_xeCJK_family_tl/\curr@fontshape/\f@size } + \tl_if_exist:cTF { xeCJK/verb/\CJK@family/\curr@fontshape/\f@size } { \skip_set:Nn \l__xeCJK_verb_exspace_skip - { \use:c { xeCJK/verb/\l_xeCJK_family_tl/\curr@fontshape/\f@size } } + { \use:c { xeCJK/verb/\CJK@family/\curr@fontshape/\f@size } } } { - \tl_set:Nx \l__xeCJK_current_coor_tl { \l_xeCJK_family_tl/\curr@fontshape } + \tl_set:Nx \l__xeCJK_current_coor_tl { \CJK@family/\curr@fontshape } \prop_get:NVNTF \g__xeCJK_scale_family_prop \l__xeCJK_current_coor_tl \l_xeCJK_family_tl { - \tl_set_eq:NN \xeCJK@family \l_xeCJK_family_tl + \xeCJK_switch_family:n { \l_xeCJK_family_tl } \skip_zero:N \l__xeCJK_verb_exspace_skip } { @@ -3268,7 +3265,7 @@ } } { - \tl_const:cx { xeCJK/verb/\l_xeCJK_family_tl/\curr@fontshape/\f@size } + \tl_const:cx { xeCJK/verb/\CJK@family/\curr@fontshape/\f@size } { \skip_use:N \l__xeCJK_verb_exspace_skip } } } @@ -3276,8 +3273,8 @@ { \fp_set:Nn \l__xeCJK_scale_factor_fp { #1 / #2 } \__xeCJK_warning:nxx { scale-factor } - { \fp_eval:n { round - ( \l__xeCJK_scale_factor_fp , 4 ) } } - { \fp_eval:n { round + ( #2 / #1 , 4 ) } } + { \fp_eval:n { trunc ( \l__xeCJK_scale_factor_fp , 4 ) } } + { \fp_eval:n { ceil ( #2 / #1 , 4 ) } } \xeCJK_add_font_features:Nnx \c_true_bool { } { Scale = { \fp_use:N \l__xeCJK_scale_factor_fp } } \prop_gput:NVV \g__xeCJK_scale_family_prop @@ -3364,9 +3361,18 @@ \bool_new:N \g__xeCJK_config_bool \keys_define:nn { xeCJK / options } { - CJKnumber .bool_gset:N = \g__xeCJK_number_bool , - indentfirst .bool_gset:N = \g__xeCJK_indent_bool , - normalindentfirst .meta:n = { indentfirst = false } + CJKnumber .code:n = + { \__xeCJK_warning:nxx { option-deprecated } { \l_keys_key_tl } { CJKnumb } } , + indentfirst .code:n = + { \__xeCJK_warning:nxx { option-deprecated } { \l_keys_key_tl } { indentfirst } } , + normalindentfirst .code:n = + { \__xeCJK_warning:nxx { option-deprecated } { \l_keys_key_tl } { } } + } +\__xeCJK_msg_new:nn { option-deprecated } + { + The~`#1'~option~is~deprecated.\\ + \tl_if_empty:nF {#2} + { You~may~load~the~package~`#2'~after~xeCJK~to~use~its~function.\\ } } \keys_define:nn { xeCJK / options } { @@ -3408,10 +3414,8 @@ CheckFullRight = false , CJKspace = false , CJKmath = false , - CJKnumber = false , xeCJKactive = true , LocalConfig = true , - indentfirst = true , LoadFandol = true , Verb = env , EmboldenFactor = 4 , @@ -3430,12 +3434,10 @@ \RequirePackage { fontspec } [ 2012/05/01 ] \RequirePackage { xunicode-addon } \tl_const:Nx \c__xeCJK_encoding_tl { \g_fontspec_encoding_tl } -\bool_if:NT \g__xeCJK_indent_bool { \RequirePackage { indentfirst } } \keys_define:nn { xeCJK / options } { - LocalConfig .code:n = { \__xeCJK_warning:nx { option-invalid } { \l_keys_key_tl } } , - CJKnumber .code:n = { \__xeCJK_warning:nx { option-invalid } { \l_keys_key_tl } } , - indentfirst .code:n = { \__xeCJK_warning:nx { option-invalid } { \l_keys_key_tl } } + LocalConfig .code:n = + { \__xeCJK_warning:nx { option-invalid } { \l_keys_key_tl } } } \__xeCJK_msg_new:nn { option-invalid } { @@ -3792,19 +3794,6 @@ { \xeCJK_if_package_loaded_p:n { cprotect } && \cs_if_exist_p:N \icprotect } { \exp_after:wN \tex_let:D \cs:w cprotect \cs_end: \icprotect } } -\cs_if_exist:NF \CJK@ifundefined - { \cs_set_eq:NN \CJK@ifundefined \cs_if_free:NTF } -\NewDocumentCommand \xeCJKcaption { o m } - { - \IfNoValueF {#1} { \XeTeXdefaultencoding "#1" } - \use:x - { - \char_set_catcode_letter:n { 64 } - \file_input:n { #2.cpx } - \char_set_catcode:nn { 64 } { \char_value_catcode:n { 64 } } - } - \XeTeXdefaultencoding "UTF-8" - } \cs_if_eq:NNTF \ifCTEX@fntef \tex_iftrue:D { \AtEndOfPackage { \RequirePackage { xeCJKfntef } } } { @@ -3826,6 +3815,11 @@ \xeCJK_if_package_loaded:nT { listings } { \RequirePackage { xeCJK-listings } } } +\__xeCJK_at_end_preamble:n + { + \xeCJK_if_package_loaded:nT { everysel } + { \cs_undefine:c { ver@CJK . \c__xeCJK_package_ext_tl } } + } \cs_new_protected:Npn \CJKaddEncHook #1#2 { \str_if_eq:nnT {#1} { \CJK@UnicodeEnc } @@ -3857,12 +3851,11 @@ { (#1) * \c_two_hundred_fifty_six + (#2) } \cs_new_protected_nopar:Npn \xeCJK_unicode_char:nn #1#2 { \tex_char:D \etex_numexpr:D \__xeCJK_calc_unicode:nn {#1} {#2} \scan_stop: } -\bool_if:NT \g__xeCJK_number_bool { \RequirePackage { CJKnumb } } \bool_if:NT \g__xeCJK_config_bool { - \tl_const:Nn \c__xeCJK_config_ext_tl { cfg } - \@onefilewithoptions - { \g__xeCJK_config_name_tl } [ ] [ ] { \c__xeCJK_config_ext_tl } + \@pushfilename + \file_input:n { \g__xeCJK_config_name_tl .cfg } + \@popfilename } %% %% This package consists of the file xeCJK.dtx, diff --git a/Master/texmf-dist/tex/xelatex/xecjk/xeCJKfntef.sty b/Master/texmf-dist/tex/xelatex/xecjk/xeCJKfntef.sty index 98abe872794..3ff1e97b1ec 100644 --- a/Master/texmf-dist/tex/xelatex/xecjk/xeCJKfntef.sty +++ b/Master/texmf-dist/tex/xelatex/xecjk/xeCJKfntef.sty @@ -6,7 +6,7 @@ %% %% xeCJK.dtx (with options: `fntef') %% -%% $Id: xeCJK.dtx 549 2014-03-01 09:06:08Z sobenlee $ +%% $Id: xeCJK.dtx 644 2014-04-29 09:45:49Z sobenlee $ %% $URL: https://ctex-kit.googlecode.com/svn/trunk/xeCJK/xeCJK.dtx $ %% ----------------------------------------------------------------- %% Author: @@ -33,11 +33,11 @@ %% \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} -\GetIdInfo$Id: xeCJK.dtx 549 2014-03-01 09:06:08Z sobenlee $ +\GetIdInfo$Id: xeCJK.dtx 644 2014-04-29 09:45:49Z sobenlee $ {xeCJK patch file for ulem/CJKfntef} \ProvidesExplPackage {xeCJKfntef} - {\ExplFileDate}{3.2.10}{\ExplFileDescription} + {\ExplFileDate}{3.2.11}{\ExplFileDescription} \PassOptionsToPackage { normalem } { ulem } \DeclareOption* { \PassOptionsToPackage { \CurrentOption } { ulem } } \ProcessOptions \scan_stop: @@ -431,7 +431,7 @@ \cs_set_eq:NN \CJKf@global \scan_stop: \int_zero:N \CJK@nest \CJK@postUnderdot } -\__xeCJK_add_to_shipout:n { \l__xeCJK_fntef_shipout_tl } +\xeCJK_add_to_shipout:n { \l__xeCJK_fntef_shipout_tl } \cs_new_protected:Npn \__xeCJK_make_under_symbol:n #1 { \hbox_set:Nn \l__xeCJK_tmp_box { ^^^^4e00 } diff --git a/Master/texmf-dist/tex/xelatex/xecjk/xunicode-addon.sty b/Master/texmf-dist/tex/xelatex/xecjk/xunicode-addon.sty index 83a3b0f01e3..d814ec5465b 100644 --- a/Master/texmf-dist/tex/xelatex/xecjk/xunicode-addon.sty +++ b/Master/texmf-dist/tex/xelatex/xecjk/xunicode-addon.sty @@ -6,7 +6,7 @@ %% %% xeCJK.dtx (with options: `xunicode') %% -%% $Id: xeCJK.dtx 549 2014-03-01 09:06:08Z sobenlee $ +%% $Id: xeCJK.dtx 644 2014-04-29 09:45:49Z sobenlee $ %% $URL: https://ctex-kit.googlecode.com/svn/trunk/xeCJK/xeCJK.dtx $ %% ----------------------------------------------------------------- %% Author: @@ -33,11 +33,11 @@ %% \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} -\GetIdInfo$Id: xeCJK.dtx 549 2014-03-01 09:06:08Z sobenlee $ +\GetIdInfo$Id: xeCJK.dtx 644 2014-04-29 09:45:49Z sobenlee $ {addon file for xunicode} \ProvidesExplPackage {xunicode-addon} - {\ExplFileDate}{3.2.10}{\ExplFileDescription} + {\ExplFileDate}{3.2.11}{\ExplFileDescription} \pdftex_if_engine:T { \msg_new:nnnn { xunicode-addon } { cannot-use-pdftex } diff --git a/Master/texmf-dist/tex/xelatex/xecjk/xunicode-extra.def b/Master/texmf-dist/tex/xelatex/xecjk/xunicode-extra.def index 05390f50817..d683be3750f 100644 --- a/Master/texmf-dist/tex/xelatex/xecjk/xunicode-extra.def +++ b/Master/texmf-dist/tex/xelatex/xecjk/xunicode-extra.def @@ -6,7 +6,7 @@ %% %% xeCJK.dtx (with options: `xunextra') %% -%% $Id: xeCJK.dtx 549 2014-03-01 09:06:08Z sobenlee $ +%% $Id: xeCJK.dtx 644 2014-04-29 09:45:49Z sobenlee $ %% $URL: https://ctex-kit.googlecode.com/svn/trunk/xeCJK/xeCJK.dtx $ %% ----------------------------------------------------------------- %% Author: @@ -31,11 +31,11 @@ %% The Current Maintainer of this work are Leo Liu and Qing Lee. %% ----------------------------------------------------------------- %% -\GetIdInfo$Id: xeCJK.dtx 549 2014-03-01 09:06:08Z sobenlee $ +\GetIdInfo$Id: xeCJK.dtx 644 2014-04-29 09:45:49Z sobenlee $ {extra definition for xunicode} \ProvidesExplFile - {\ExplFileName.def} - {\ExplFileDate}{3.2.10}{\ExplFileDescription} + {xunicode-extra.def} + {\ExplFileDate}{3.2.11}{\ExplFileDescription} \ExplSyntaxOff \DeclareUTFComposite\textsuperscript \DeclareUTFComposite\textsubscript -- cgit v1.2.3