summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xetex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-12-02 21:59:15 +0000
committerKarl Berry <karl@freefriends.org>2019-12-02 21:59:15 +0000
commitf58d4b958330582b934733bf6f354281b5ac381b (patch)
tree3b827844587dafde6f666cd2076a2270dd59c5de /Master/texmf-dist/tex/xetex
parente3ab92df447cf11f30d0c6e59d7877d938209c83 (diff)
xetexko (2dec19)
git-svn-id: svn://tug.org/texlive/trunk@53002 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xetex')
-rw-r--r--Master/texmf-dist/tex/xetex/xetexko/xetexko-font.sty134
-rw-r--r--Master/texmf-dist/tex/xetex/xetexko/xetexko-hanging.sty4
-rw-r--r--Master/texmf-dist/tex/xetex/xetexko/xetexko-josa.sty4
-rw-r--r--Master/texmf-dist/tex/xetex/xetexko/xetexko-space.sty4
-rw-r--r--Master/texmf-dist/tex/xetex/xetexko/xetexko-vertical.sty4
-rw-r--r--Master/texmf-dist/tex/xetex/xetexko/xetexko.sty4
6 files changed, 81 insertions, 73 deletions
diff --git a/Master/texmf-dist/tex/xetex/xetexko/xetexko-font.sty b/Master/texmf-dist/tex/xetex/xetexko/xetexko-font.sty
index 82274859919..d03ae1a18b2 100644
--- a/Master/texmf-dist/tex/xetex/xetexko/xetexko-font.sty
+++ b/Master/texmf-dist/tex/xetex/xetexko/xetexko-font.sty
@@ -1,6 +1,6 @@
% xetexko-font.sty
%
-% Copyright (c) 2013-2018 Dohyun Kim <nomos at ktug org>
+% Copyright (c) 2013-2019 Dohyun Kim <nomos at ktug org>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
@@ -10,7 +10,7 @@
% and version 1.3c or later is part of all distributions of LaTeX
% version 2006/05/20 or later.
-\ProvidesPackage{xetexko-font}[2018/08/08 v2.21 LaTeX Font commands for XeTeX-ko]
+\ProvidesPackage{xetexko-font}[2019/12/01 v2.22 LaTeX Font commands for XeTeX-ko]
\let\xetexko@f@size\f@size
\RequirePackage{fontspec}[2018/07/30]
@@ -25,30 +25,35 @@
% hangul font options
\tl_new:N \l_xtxko_font_opts_tl
\tl_new:N \l_xtxko_font_opts_init_tl
+\tl_new:N \l_xtxko_hangul_font_opts_init_tl
+\tl_new:N \l_xtxko_hanja_font_opts_init_tl
+\tl_new:N \l_xtxko_rem_tl
+\int_const:Nn \c__xtxko_one_int { 1 }
+\int_const:Nn \c__xtxko_two_int { 2 }
\tl_set:Nn \l_xtxko_font_opts_init_tl
{
- \tl_clear:N \xetexkointerhchar
- \tl_clear:N \xetexkolowerexclamation
- \tl_clear:N \xetexkolowerperiod
- \tl_clear:N \xetexkolowercomma
- \tl_clear:N \xetexkolowerquestion
- \tl_clear:N \xetexkopostexclamationkern
- \tl_clear:N \xetexkopostperiodkern
- \tl_clear:N \xetexkopostcommakern
- \tl_clear:N \xetexkopostquestionkern
- \tl_clear:N \xetexkopreexclamationkern
- \tl_clear:N \xetexkopreperiodkern
- \tl_clear:N \xetexkoprecommakern
- \tl_clear:N \xetexkoprequestionkern
- \tl_clear:N \xetexkoquoteraise
- \tl_clear:N \xetexkoquotewidth
- \tl_clear:N \xetexkocharraise
- \tl_set:Nn \xetexkohu {0.05em}
- \tl_set:Nn \xetexkopostmathskip {\dim_eval:n {\xetexkohu*2}}
+ \cs_set_eq:NN \xetexkointerhchar \c_empty_tl
+ \cs_set_eq:NN \xetexkolowerexclamation \c_empty_tl
+ \cs_set_eq:NN \xetexkolowerperiod \c_empty_tl
+ \cs_set_eq:NN \xetexkolowercomma \c_empty_tl
+ \cs_set_eq:NN \xetexkolowerquestion \c_empty_tl
+ \cs_set_eq:NN \xetexkopostexclamationkern \c_empty_tl
+ \cs_set_eq:NN \xetexkopostperiodkern \c_empty_tl
+ \cs_set_eq:NN \xetexkopostcommakern \c_empty_tl
+ \cs_set_eq:NN \xetexkopostquestionkern \c_empty_tl
+ \cs_set_eq:NN \xetexkopreexclamationkern \c_empty_tl
+ \cs_set_eq:NN \xetexkopreperiodkern \c_empty_tl
+ \cs_set_eq:NN \xetexkoprecommakern \c_empty_tl
+ \cs_set_eq:NN \xetexkoprequestionkern \c_empty_tl
+ \cs_set_eq:NN \xetexkoquoteraise \c_empty_tl
+ \cs_set_eq:NN \xetexkoquotewidth \c_empty_tl
+ \cs_set_eq:NN \xetexkocharraise \c_empty_tl
+ \cs_set_nopar:Npn \xetexkohu {0.05em}
+ \cs_set_nopar:Npn \xetexkopostmathskip {\dim_eval:n {\xetexkohu*2}}
}
\cs_new:Nn \__xtxko_add_font_opt:Nn
{
- \tl_put_right:Nn \l_xtxko_font_opts_tl { \tl_set:Nn #1 {#2} }
+ \tl_put_right:Nn \l_xtxko_font_opts_tl { \cs_set_nopar:Npn #1 {#2} }
}
\keys_define:nn { xtxko-font }
{
@@ -93,7 +98,6 @@
PunctRaise .meta:n = { lowerperiod = { \dim_eval:n {-#1} } } ,
CharRaise .meta:n = { charraise = {#1} } ,
}
-\tl_new:N \l_xtxko_rem_tl
\tl_set_eq:NN \l_xtxko_hangul_font_opts_init_tl \l_xtxko_font_opts_init_tl
\cs_new:Nn \__xtxko_hangul_assign_font_opts:n
{
@@ -108,24 +112,24 @@
}
\cs_new:Nn \__xtxko_def_XKhan__fonts:nnn
{
- \tl_if_eq:NNF #1 \relax
+ \cs_if_eq:NNF #1 \relax
{
- \tl_if_eq:ccT \familydefault #2
+ \str_if_eq:eeT \familydefault #2
{
- \tl_if_eq:NNTF \XKhangulfont #1
+ \cs_if_eq:NNTF \XKhangulfont #1
{
- \tl_set:Nn #1
+ \cs_set_nopar:Npn #1
{
\XK@storeltnfont
- \chardef\XKcurrentfont \c_one #3
+ \chardef\XKcurrentfont \c__xtxko_one_int #3
\XK@storecjkfont
}
}
{
- \tl_set:Nn #1
+ \cs_set_nopar:Npn #1
{
\XK@storeltnfont
- \chardef\XKcurrentfont \c_two #3
+ \chardef\XKcurrentfont \c__xtxko_two_int #3
\XK@storecjkfont
}
}
@@ -184,10 +188,10 @@
\__xtxko_hangul_assign_font_opts:n {#1,#3}
\setfontfamily \XK@adhoc@hangul@font [\l_xtxko_rem_tl] {#2}
\tl_put_right:NV \XK@adhoc@hangul@font \l_xtxko_font_opts_tl
- \tl_set:Nn \XKhangulfont
+ \cs_set_nopar:Npn \XKhangulfont
{
\XK@storeltnfont
- \tl_set_eq:NN \XKcurrentfont \c_one
+ \cs_set_eq:NN \XKcurrentfont \c__xtxko_one_int
\XK@adhoc@hangul@font
\XK@storecjkfont
}
@@ -199,10 +203,10 @@
\__xtxko_hanja_assign_font_opts:n {#1,#3}
\setfontfamily \XK@adhoc@hanja@font [\l_xtxko_rem_tl] {#2}
\tl_put_right:NV \XK@adhoc@hanja@font \l_xtxko_font_opts_tl
- \tl_set:Nn \XKhanjafont
+ \cs_set_nopar:Npn \XKhanjafont
{
\XK@storeltnfont
- \tl_set_eq:NN \XKcurrentfont \c_two
+ \cs_set_eq:NN \XKcurrentfont \c__xtxko_two_int
\XK@adhoc@hanja@font
\XK@storecjkfont
}
@@ -213,16 +217,14 @@
\DeclareDocumentCommand \newhangulfontfamily { m O{} m O{} }
{
\__xtxko_hangul_assign_font_opts:n {#2,#4}
- \exp_args:Nc \setfontfamily { XK@newfont@family \token_to_str:N #1 }
- [\l_xtxko_rem_tl] {#3}
- \tl_put_right:cV { XK@newfont@family \token_to_str:N #1 }
- \l_xtxko_font_opts_tl
+ \exp_args:Nc \setfontfamily { XK@newfont@family \token_to_str:N #1 } [\l_xtxko_rem_tl] {#3}
+ \tl_put_right:cV { XK@newfont@family \token_to_str:N #1 } \l_xtxko_font_opts_tl
\DeclareRobustCommand #1
{
- \tl_set:Nn \XKhangulfont
+ \cs_set_nopar:Npn \XKhangulfont
{
\XK@storeltnfont
- \tl_set_eq:NN \XKcurrentfont \c_one
+ \cs_set_eq:NN \XKcurrentfont \c__xtxko_one_int
\use:c { XK@newfont@family \token_to_str:N #1 }
\XK@storecjkfont
}
@@ -231,16 +233,14 @@
\DeclareDocumentCommand \newhanjafontfamily { m O{} m O{} }
{
\__xtxko_hanja_assign_font_opts:n {#2,#4}
- \exp_args:Nc \setfontfamily { XK@newfont@family \token_to_str:N #1 }
- [\l_xtxko_rem_tl] {#3}
- \tl_put_right:cV { XK@newfont@family \token_to_str:N #1 }
- \l_xtxko_font_opts_tl
+ \exp_args:Nc \setfontfamily { XK@newfont@family \token_to_str:N #1 } [\l_xtxko_rem_tl] {#3}
+ \tl_put_right:cV { XK@newfont@family \token_to_str:N #1 } \l_xtxko_font_opts_tl
\DeclareRobustCommand #1
{
- \tl_set:Nn \XKhanjafont
+ \cs_set_nopar:Npn \XKhanjafont
{
\XK@storeltnfont
- \tl_set_eq:NN \XKcurrentfont \c_two
+ \cs_set_eq:NN \XKcurrentfont \c__xtxko_two_int
\use:c { XK@newfont@family \token_to_str:N #1 }
\XK@storecjkfont
}
@@ -249,16 +249,14 @@
\DeclareDocumentCommand \newhangulfontface { m O{} m O{} }
{
\__xtxko_hangul_assign_font_opts:n {#2,#4}
- \exp_args:Nc \newfontface { XK@newfont@family \token_to_str:N #1 }
- [\l_xtxko_rem_tl] {#3}
- \tl_put_right:cV { XK@newfont@family \token_to_str:N #1 }
- \l_xtxko_font_opts_tl
+ \exp_args:Nc \newfontface { XK@newfont@family \token_to_str:N #1 } [\l_xtxko_rem_tl] {#3}
+ \tl_put_right:cV { XK@newfont@family \token_to_str:N #1 } \l_xtxko_font_opts_tl
\DeclareRobustCommand #1
{
- \tl_set:Nn \XKhangulfont
+ \cs_set_nopar:Npn \XKhangulfont
{
\XK@storeltnfont
- \tl_set_eq:NN \XKcurrentfont \c_one
+ \cs_set_eq:NN \XKcurrentfont \c__xtxko_one_int
\use:c { XK@newfont@family \token_to_str:N #1 }
\XK@storecjkfont
}
@@ -267,16 +265,14 @@
\DeclareDocumentCommand \newhanjafontface { m O{} m O{} }
{
\__xtxko_hanja_assign_font_opts:n {#2,#4}
- \exp_args:Nc \newfontface { XK@newfont@family \token_to_str:N #1 }
- [\l_xtxko_rem_tl] {#3}
- \tl_put_right:cV { XK@newfont@family \token_to_str:N #1 }
- \l_xtxko_font_opts_tl
+ \exp_args:Nc \newfontface { XK@newfont@family \token_to_str:N #1 } [\l_xtxko_rem_tl] {#3}
+ \tl_put_right:cV { XK@newfont@family \token_to_str:N #1 } \l_xtxko_font_opts_tl
\DeclareRobustCommand #1
{
- \tl_set:Nn \XKhanjafont
+ \cs_set_nopar:Npn \XKhanjafont
{
\XK@storeltnfont
- \tl_set_eq:NN \XKcurrentfont \c_two
+ \cs_set_eq:NN \XKcurrentfont \c__xtxko_two_int
\use:c { XK@newfont@family \token_to_str:N #1 }
\XK@storecjkfont
}
@@ -293,7 +289,7 @@
\use:x
{
\group_end:
- \exp_not:N \tl_set:Nn \exp_not:N \XKhangulfont
+ \exp_not:N \cs_set_nopar:Npn \exp_not:N \XKhangulfont
{
\exp_not:V \XKhangulfont
\exp_not:N \fontfamily { \f@family } \exp_not:N \selectfont
@@ -314,7 +310,7 @@
\use:x
{
\group_end:
- \exp_not:N \tl_set:Nn \exp_not:N \XKhanjafont
+ \exp_not:N \cs_set_nopar:Npn \exp_not:N \XKhanjafont
{
\exp_not:V \XKhanjafont
\exp_not:N \fontfamily { \f@family } \exp_not:N \selectfont
@@ -382,20 +378,32 @@
\RenewDocumentCommand \setmainfont { O{} m O{} }
{
\__fontspec_main_setmainfont:nn {#1,#3} {#2}
- \protected\edef\rmfamily{\unexpanded\expandafter{\rmfamily\XK@rm@korean@font}}
+ \cs_set_protected_nopar:Npx \rmfamily
+ {
+ \exp_not:V \rmfamily
+ \exp_not:N \XK@rm@korean@font
+ }
\ignorespaces
}
\RenewDocumentCommand \setsansfont { O{} m O{} }
{
\__fontspec_main_setsansfont:nn {#1,#3} {#2}
- \protected\edef\sffamily{\unexpanded\expandafter{\sffamily\XK@sf@korean@font}}
+ \cs_set_protected_nopar:Npx \sffamily
+ {
+ \exp_not:V \sffamily
+ \exp_not:N \XK@sf@korean@font
+ }
\ignorespaces
}
\RenewDocumentCommand \setmonofont { O{} m O{} }
{
\__fontspec_main_setmonofont:nn {#1,#3} {#2}
- \protected\edef\ttfamily{\unexpanded\expandafter{\ttfamily\XK@tt@korean@font
- \disablehangulspacing}}
+ \cs_set_protected_nopar:Npx \ttfamily
+ {
+ \exp_not:V \ttfamily
+ \exp_not:N \XK@tt@korean@font
+ \exp_not:N \disablehangulspacing
+ }
\ignorespaces
}
\cs_set_eq:NN \setromanfont \setmainfont
diff --git a/Master/texmf-dist/tex/xetex/xetexko/xetexko-hanging.sty b/Master/texmf-dist/tex/xetex/xetexko/xetexko-hanging.sty
index f413a14a865..57cd41f35c4 100644
--- a/Master/texmf-dist/tex/xetex/xetexko/xetexko-hanging.sty
+++ b/Master/texmf-dist/tex/xetex/xetexko/xetexko-hanging.sty
@@ -1,6 +1,6 @@
% xetexko-hanging.sty
%
-% Copyright (c) 2013-2018 Dohyun Kim <nomos at ktug org>
+% Copyright (c) 2013-2019 Dohyun Kim <nomos at ktug org>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
@@ -13,7 +13,7 @@
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname ProvidesPackage\endcsname\relax\else
\ProvidesPackage{xetexko-hanging}
- [2018/04/06 v2.18 Hanging punctuations for XeTeX-ko]
+ [2019/12/01 v2.22 Hanging punctuations for XeTeX-ko]
\fi
\chardef\catcodeofATcharacter\catcode`@
diff --git a/Master/texmf-dist/tex/xetex/xetexko/xetexko-josa.sty b/Master/texmf-dist/tex/xetex/xetexko/xetexko-josa.sty
index 9178213f4a8..90b6246eed7 100644
--- a/Master/texmf-dist/tex/xetex/xetexko/xetexko-josa.sty
+++ b/Master/texmf-dist/tex/xetex/xetexko/xetexko-josa.sty
@@ -1,6 +1,6 @@
% xetexko-josa.sty
%
-% Copyright (c) 2013-2018 Dohyun Kim <nomos at ktug org>
+% Copyright (c) 2013-2019 Dohyun Kim <nomos at ktug org>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
@@ -12,7 +12,7 @@
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname ProvidesPackage\endcsname\relax\else
- \ProvidesPackage{xetexko-josa}[2018/04/06 v2.18 Auto-josa for XeTeX-ko]
+ \ProvidesPackage{xetexko-josa}[2019/12/01 v2.22 Auto-josa for XeTeX-ko]
\fi
\unless\ifcsname @tempcnta\endcsname
diff --git a/Master/texmf-dist/tex/xetex/xetexko/xetexko-space.sty b/Master/texmf-dist/tex/xetex/xetexko/xetexko-space.sty
index 525878f4c15..c671d67495f 100644
--- a/Master/texmf-dist/tex/xetex/xetexko/xetexko-space.sty
+++ b/Master/texmf-dist/tex/xetex/xetexko/xetexko-space.sty
@@ -1,6 +1,6 @@
% xetexko-space.sty
%
-% Copyright (c) 2013-2018 Dohyun Kim <nomos at ktug org>
+% Copyright (c) 2013-2019 Dohyun Kim <nomos at ktug org>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
@@ -13,7 +13,7 @@
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname ProvidesPackage\endcsname\relax\else
\ProvidesPackage{xetexko-space}
- [2018/04/19 v2.19 Spacings and fonts for XeTeX-ko]
+ [2019/12/01 v2.22 Spacings and fonts for XeTeX-ko]
\fi
%%% we need XeTeX > 0.997
diff --git a/Master/texmf-dist/tex/xetex/xetexko/xetexko-vertical.sty b/Master/texmf-dist/tex/xetex/xetexko/xetexko-vertical.sty
index f94fed2b2a9..b1c3e703c65 100644
--- a/Master/texmf-dist/tex/xetex/xetexko/xetexko-vertical.sty
+++ b/Master/texmf-dist/tex/xetex/xetexko/xetexko-vertical.sty
@@ -1,6 +1,6 @@
% xetexko-vertical.sty
%
-% Copyright (c) 2013-2018 Dohyun Kim <nomos at ktug org>
+% Copyright (c) 2013-2019 Dohyun Kim <nomos at ktug org>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
@@ -13,7 +13,7 @@
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname ProvidesPackage\endcsname\relax\else
\ProvidesPackage{xetexko-vertical}
- [2018/04/06 v2.18 Vertical environment for XeTeX-ko]
+ [2019/12/01 v2.22 Vertical environment for XeTeX-ko]
\fi
% do not veticalize headline/footline
diff --git a/Master/texmf-dist/tex/xetex/xetexko/xetexko.sty b/Master/texmf-dist/tex/xetex/xetexko/xetexko.sty
index 38a88c14044..acc6104603a 100644
--- a/Master/texmf-dist/tex/xetex/xetexko/xetexko.sty
+++ b/Master/texmf-dist/tex/xetex/xetexko/xetexko.sty
@@ -1,6 +1,6 @@
% xetexko.sty
%
-% Copyright (c) 2013-2018 Dohyun Kim <nomos at ktug org>
+% Copyright (c) 2013-2019 Dohyun Kim <nomos at ktug org>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
@@ -12,7 +12,7 @@
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname ProvidesPackage\endcsname\relax\else
- \ProvidesPackage{xetexko}[2018/04/19 v2.19 Typesetting Korean with XeTeX]
+ \ProvidesPackage{xetexko}[2019/12/01 v2.22 Typesetting Korean with XeTeX]
\fi
\begingroup\expandafter\expandafter\expandafter\endgroup