summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/xcjk2uni/xCJK2uni.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/xcjk2uni/xCJK2uni.sty')
-rw-r--r--Master/texmf-dist/tex/latex/xcjk2uni/xCJK2uni.sty26
1 files changed, 13 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/xcjk2uni/xCJK2uni.sty b/Master/texmf-dist/tex/latex/xcjk2uni/xCJK2uni.sty
index ea68a29d495..eb737eb2997 100644
--- a/Master/texmf-dist/tex/latex/xcjk2uni/xCJK2uni.sty
+++ b/Master/texmf-dist/tex/latex/xcjk2uni/xCJK2uni.sty
@@ -6,7 +6,7 @@
%%
%% xCJK2uni.dtx (with options: `package')
%%
-%% Copyright (C) 2013-2014, 2016, 2018 by Qing Lee <sobenlee@gmail.com>
+%% Copyright (C) 2013-2014, 2016, 2018-2019 by Qing Lee <sobenlee@gmail.com>
%% --------------------------------------------------------------------------
%%
%% This work may be distributed and/or modified under the
@@ -27,10 +27,10 @@
%%
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{expl3}
-\GetIdInfo$Id: xCJK2uni.dtx 87875c2 2018-01-28 19:09:50 +0800 Qing Lee <sobenlee@gmail.com> $
+\GetIdInfo$Id: xCJK2uni.dtx 21b29fd 2019-04-07 23:27:31 +0800 Qing Lee <sobenlee@gmail.com> $
{Convert CJK character to Unicode.}
\ProvidesExplPackage{\ExplFileName}
- {\ExplFileDate}{0.7}{\ExplFileDescription}
+ {\ExplFileDate}{0.8}{\ExplFileDescription}
\msg_new:nnn { xCJK2uni } { l3-too-old }
{
Support~package~'expl3'~too~old. \\\\
@@ -38,7 +38,7 @@
'l3kernel'~and~'l3packages'\\\\
using~your~TeX~package~manager~or~from~CTAN.
}
-\@ifpackagelater { expl3 } { 2017/12/16 } { }
+\@ifpackagelater { expl3 } { 2019/03/05 } { }
{ \msg_error:nn { xCJK2uni } { l3-too-old } }
\sys_if_engine_pdftex:F
{
@@ -67,17 +67,17 @@
\tl_if_empty:nTF {#5}
{
\int_const:cn { c__CJKtu_ #1 _gap_begin_int }
- { \l__CJKtu_ii_max_int + \c_one }
+ { \l__CJKtu_ii_max_int + 1 }
\int_const:cn { c__CJKtu_ #1 _gap_end_int }
{ \use:c { c__CJKtu_ #1 _gap_begin_int } }
\int_const:cn { c__CJKtu_ #1 _plane_int }
- { \l__CJKtu_ii_max_int - (#4) + \c_one }
+ { \l__CJKtu_ii_max_int - (#4) + 1 }
}
{
- \int_const:cn { c__CJKtu_ #1 _gap_begin_int } { #5 + \c_one }
+ \int_const:cn { c__CJKtu_ #1 _gap_begin_int } { #5 + 1 }
\int_const:cn { c__CJKtu_ #1 _gap_end_int } {#6}
\int_const:cn { c__CJKtu_ #1 _plane_int }
- { (#5) - (#4) + \l__CJKtu_ii_max_int - (#6) + \c_two }
+ { (#5) - (#4) + \l__CJKtu_ii_max_int - (#6) + 2 }
}
\cs_if_exist_use:NTF \CJKaddEncHook
{ {#1} { \__CJKtu_enc_map:nn {#1} {#2} } }
@@ -137,7 +137,7 @@
\cs_new_nopar:Npn \__CJKtu_char_to_unicode:n #1
{
\exp:w
- \int_compare:nNnTF { \tl_count:n {#1} } = \c_two
+ \int_compare:nNnTF { \tl_count:n {#1} } = 2
{ \CJKtu_byte:NN #1 }
{
\tl_if_head_eq_meaning:nNTF {#1} ^^7f
@@ -204,8 +204,8 @@
\__CJKtu_get_unicode:n
{
\CJKtu_sfd_map:nn
- { \int_div_truncate:nn {#1} { \c_two_hundred_fifty_six } + \c_one }
- { \int_mod:nn {#1} { \c_two_hundred_fifty_six } }
+ { \int_div_truncate:nn {#1} { 256 } + 1 }
+ { \int_mod:nn {#1} { 256 } }
}
}
\cs_new_nopar:Npn \__CJKtu_get_unicode:n #1
@@ -215,9 +215,9 @@
\cs_new_nopar:Npn \__CJKtu_UTF_xvi_aux:n #1
{
\HyPsd@DecimalToOctalFirst
- { \int_div_truncate:nn {#1} { \c_two_hundred_fifty_six } }
+ { \int_div_truncate:nn {#1} { 256 } }
\HyPsd@DecimalToOctalSecond
- { \int_mod:nn {#1} { \c_two_hundred_fifty_six } }
+ { \int_mod:nn {#1} { 256 } }
}
\cs_if_exist_use:NTF \hypersetup { { unicode , CJKbookmarks = false } }
{ \PassOptionsToPackage { unicode , CJKbookmarks = false } { hyperref } }