Skip to content

Commit

Permalink
xeCJK: 应用 \fp_if_nan:nTF
Browse files Browse the repository at this point in the history
  • Loading branch information
qinglee committed Feb 10, 2020
1 parent 7a632fb commit 3fd0099
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions xeCJK/xeCJK.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ Copyright and Licence
% \changes{v3.8.0}{2020/02/09}{兼容 \LaTeXe\ 2020/02/02 对 \pkg{NFSS} 的修改。}
% \changes{v3.8.0}{2020/02/09}{清理过时的兼容性补丁代码。}
%
% \CheckSum{10754}
% \CheckSum{10751}
% \GetFileId{xeCJK.sty}
%
% \title{\bfseries\pkg{xeCJK} 宏包}
Expand Down Expand Up @@ -1612,7 +1612,7 @@ Copyright and Licence
using~your~TeX~package~manager~or~from~CTAN.\\
\str_if_eq:nnT {#1} { expl3 } { Loading~xeCJK~will~abort! }
}
\@ifpackagelater { expl3 } { 2019/03/05 } { }
\@ifpackagelater { expl3 } { 2020/02/08 } { }
{ \msg_critical:nnn { xeCJK } { l3-too-old } { expl3 } }
% \end{macrocode}
%
Expand Down Expand Up @@ -5674,6 +5674,7 @@ Copyright and Licence
% \end{macro}
%
% \changes{v3.2.7}{2013/08/25}{标点宽度设置禁用比例选项的值改为 \texttt{nan}。}
% \changes{v3.8.0}{2020/02/10}{应用 \cs{fp_if_nan:nTF}。}
%
% \begin{macro}{\@@_punct_width_or_ratio:nN}
% \begin{macrocode}
Expand All @@ -5682,7 +5683,7 @@ Copyright and Licence
\dim_compare:nNnTF { \use:c { l_@@_#1_punct_width_dim } } < \c_max_dim
{ \use:c { l_@@_#1_punct_width_dim } }
{
\fp_compare:nNnTF { \use:c { l_@@_#1_punct_ratio_fp } } ? \c_zero_fp
\fp_if_nan:nTF { \use:c { l_@@_#1_punct_ratio_fp } }
{ \c_max_dim }
{
\fp_use:c { l_@@_#1_punct_ratio_fp }
Expand Down Expand Up @@ -5825,7 +5826,7 @@ Copyright and Licence
\dim_compare:nNnTF \l_@@_kerning_total_width_dim < \c_max_dim
{ \@@_calc_kerning_margin:nNN \l_@@_kerning_total_width_dim }
{
\fp_compare:nNnTF \l_@@_kerning_total_ratio_fp ? \c_zero_fp
\fp_if_nan:nTF { \l_@@_kerning_total_ratio_fp }
{
\xeCJK_if_same_class:NNTF #1 #2
{ \@@_kerning_width_or_ratio:nNN { same } }
Expand Down Expand Up @@ -5854,7 +5855,7 @@ Copyright and Licence
\dim_compare:nNnTF { \use:c { l_@@_#1_align_margin_dim } } < \c_max_dim
{ \use:c { l_@@_#1_align_margin_dim } }
{
\fp_compare:nNnTF { \use:c { l_@@_#1_align_ratio_fp } } ? \c_zero_fp
\fp_if_nan:nTF { \use:c { l_@@_#1_align_ratio_fp } }
{
\dim_compare:nNnTF \l_@@_kerning_margin_width_dim < \c_max_dim
{ \l_@@_kerning_margin_width_dim \use_none:n }
Expand Down Expand Up @@ -7991,7 +7992,7 @@ Copyright and Licence
% 执行宏包选项,并载入 \pkg{fontspec} 宏包。
% \begin{macrocode}
\ProcessKeysOptions { xeCJK / options }
\RequirePackage { fontspec } [ 2019/03/15 ]
\RequirePackage { fontspec } [ 2020/02/03 ]
% \end{macrocode}
%
% \begin{variable}{\c_@@_encoding_tl}
Expand Down

0 comments on commit 3fd0099

Please sign in to comment.