diff options
Diffstat (limited to 'Master/texmf-dist/source/xelatex/xecjk/xeCJK.dtx')
-rw-r--r-- | Master/texmf-dist/source/xelatex/xecjk/xeCJK.dtx | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/Master/texmf-dist/source/xelatex/xecjk/xeCJK.dtx b/Master/texmf-dist/source/xelatex/xecjk/xeCJK.dtx index af49e3b5d11..a8638028f31 100644 --- a/Master/texmf-dist/source/xelatex/xecjk/xeCJK.dtx +++ b/Master/texmf-dist/source/xelatex/xecjk/xeCJK.dtx @@ -194,7 +194,7 @@ Copyright and Licence %<*package|config|fntef|listings|xunicode|xunextra> %<!(config|xunextra)>\NeedsTeXFormat{LaTeX2e} %<!(config|xunextra)>\RequirePackage{expl3} -%<+!driver>\GetIdInfo$Id: xeCJK.dtx 8be031f 2019-04-07 23:30:14 +0800 Qing Lee <sobenlee@gmail.com> $ +%<+!driver>\GetIdInfo$Id: xeCJK.dtx 0e3f9e8 2019-04-15 02:07:22 +0800 Qing Lee <sobenlee@gmail.com> $ %<package> {Typesetting CJK scripts with XeLaTeX} %<config> {Configuration file for xeCJK package} %<fntef> {xeCJK font effect} @@ -207,7 +207,7 @@ Copyright and Licence %<listings>\ProvidesExplPackage{xeCJK-listings} %<xunicode>\ProvidesExplPackage{xunicode-addon} %<xunextra>\ProvidesExplFile{xunicode-extra.def} -%<!driver> {\ExplFileDate}{3.7.2}{\ExplFileDescription} +%<!driver> {\ExplFileDate}{3.7.3}{\ExplFileDescription} %</package|config|fntef|listings|xunicode|xunextra> %<*driver> \documentclass{ctxdoc} @@ -281,7 +281,7 @@ Copyright and Licence % \changes{v3.6.1}{2018/02/27}{减少 \texttt{bool} 运算。} % \changes{v3.7.2}{2019/03/23}{同步 \LaTeXiii{} 2019/03/05。} % -% \CheckSum{10855} +% \CheckSum{10857} % \GetFileId{xeCJK.sty} % % \title{\bfseries\pkg{xeCJK} 宏包} @@ -467,7 +467,7 @@ Copyright and Licence % WidowPenalty = \Arg{penalty|(10000)} % \end{syntax} % 使用 \texttt{CheckSingle} 选项后,设置段末三个汉字之间的 penalty。 -% 初始值为 $10000$,即禁止在它们之间折行。 +% 初始值为 \num{10000},即禁止在它们之间折行。 % \end{function} % % \begin{function}[added=2012-12-06]{PlainEquation} @@ -1697,8 +1697,8 @@ Copyright and Licence \cs_new_protected_nopar:Npn \xeCJK_allow_break: { \tex_penalty:D \c_zero_int } \cs_new_protected_nopar:Npn \xeCJK_no_break: - { \tex_penalty:D \c_@@_ten_thousand_int } -\int_const:Nn \c_@@_ten_thousand_int { 10 000 } + { \tex_penalty:D \c_@@_nobreak_penalty_int } +\int_const:Nn \c_@@_nobreak_penalty_int { 10 000 } % \end{macrocode} % \end{macro} % @@ -2475,6 +2475,7 @@ Copyright and Licence % \changes{v3.3.3}{2015/06/25}{补充 Ext-E。} % \changes{v3.4.1}{2016/08/18}{补充 Unicode 9.0.0 的西夏文。} % \changes{v3.5.0}{2017/07/22}{补充 Ext-F。} +% \changes{v3.7.3}{2019/04/15}{补充日文假名扩展。} % % \begin{variable}{\c_@@_CJK_chars_clist} % CJK 字符类,包括文字和标点符号。 @@ -2595,6 +2596,14 @@ Copyright and Licence % \begin{macrocode} "1B000 -> "1B0FF , % \end{macrocode} +% \item Kana Extended-A (日文假名扩展 A) +% \begin{macrocode} + "1B100 -> "1B12F , +% \end{macrocode} +% \item Small Kana Extension (小型日文假名扩展) +% \begin{macrocode} + "1B130 -> "1B16F , +% \end{macrocode} % \item Enclosed Ideographic Supplement (带圈表意文字增补) % \begin{macrocode} "1F200 -> "1F2FF , @@ -4018,7 +4027,7 @@ Copyright and Licence } \cs_new_protected_nopar:Npn \@@_nobreak_zero_glue: { - \tex_penalty:D \c_@@_ten_thousand_int + \tex_penalty:D \c_@@_nobreak_penalty_int \skip_horizontal:N \c_zero_skip } \cs_new_protected_nopar:Npn \@@_zero_glue: @@ -4289,6 +4298,7 @@ Copyright and Licence % \end{macro} % % \changes{v3.6.0}{2018/01/23}{解决标点中间被隔开的禁则与压缩问题。} +% \changes{v3.7.3}{2019/04/15}{修复 penalty 数值错误。} % % \begin{macro}{\xeCJK_if_last_punct:TF} % \changes{v3.6.1}{2018/02/25}{细化判断。} @@ -4316,7 +4326,7 @@ Copyright and Licence { \skip_set_eq:NN \l_@@_last_skip \tex_lastskip:D \tex_unskip:D - \int_compare:nNnTF \tex_lastpenalty:D = { 1000 } + \int_compare:nNnTF \tex_lastpenalty:D = \c_@@_nobreak_penalty_int { \@@_if_last_punct_auxi:TF { \use_i:nn } } { \xeCJK_if_last_node:TF @@ -4362,7 +4372,7 @@ Copyright and Licence \bool_if:NF \l_@@_last_penalty_bool { \bool_set_true:N \l_@@_last_penalty_bool - \int_set:Nn \l_@@_last_penalty_int { 1000 } + \int_set_eq:NN \l_@@_last_penalty_int \c_@@_nobreak_penalty_int } \xeCJK_if_last_node:TF { \@@_if_last_punct_auxii:TF { \use_i:nn } } @@ -4706,12 +4716,12 @@ Copyright and Licence % \changes{v3.3.1}{2015/04/08}{新选项 \texttt{WidowPenalty}。} % % \begin{macro}{WidowPenalty} -% 设置段末汉字的 penalty,默认值是 $10000$。 +% 设置段末汉字的 penalty,默认值是 \num{10000}。 % \begin{macrocode} \keys_define:nn { xeCJK / options } { WidowPenalty .int_set:N = \l_@@_widow_penalty_int , - WidowPenalty .default:n = { 1000 } + WidowPenalty .default:n = { 10 000 } } % \end{macrocode} % \end{macro} @@ -8005,7 +8015,7 @@ Copyright and Licence PunctStyle = quanjiao , NewLineCS = { \par \[ } , EnvCS = { \begin \end } , - WidowPenalty = 1000 , + WidowPenalty = { 10 000 } , NoBreakCS = { \footnote \footnotemark \nobreak } , KaiMingPunct = { ^^^^3002 ^^^^ff0e ^^^^ff1f ^^^^ff01 } , LongPunct = { ^^^^2014 ^^^^2e3a ^^^^2025 ^^^^2026 } , |