Skip to content

Commit

Permalink
ctex: 清理 \ctex_utfviii_char:n
Browse files Browse the repository at this point in the history
  • Loading branch information
muzimuzhi committed Apr 20, 2024
1 parent 2b03de7 commit 713f967
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ctex/ctex.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -4258,18 +4258,14 @@ Copyright and Licence
%
% \changes{v2.5.10}{2022/06/10}{取消 \LaTeX\ 2022-06-01 对书名号的定义。}
%
% \begin{macro}{\ctex_undeclare_unicode_character:n,\ctex_utfviii_char:n}
% \changes{v2.5.11}{2024/03/20}{替换废弃命令 \cs{char_to_utfviii_bytes:n}。}
% \begin{macro}{\ctex_undeclare_unicode_character:n}
% \changes{v2.5.11}{2024/04/20}{替换废弃命令 \cs{char_to_utfviii_bytes:n}。}
% \LaTeX\ 2022-06-01 将通常用作中文书名号的 U+3008 和 U+3009 分别定义为
% \tn{textlangle} 和 \tn{textrangle},这个定义会被 \pkg{CJKutf8} 包优先使用。
% 我们总是使用中文书名号,需要取消 \LaTeX\ 的定义,作用是局部的,不使用 \cs{cs_undefine:N}。
% \begin{macrocode}
\cs_new_protected:Npn \ctex_undeclare_unicode_character:n #1
{ \cs_set_eq:cN { u8 : \codepoint_str_generate:n {#1} } \tex_undefined:D }
\cs_new:Npn \ctex_utfviii_char:n #1
{
\codepoint_str_generate:n {#1}
}
\CJKaddEncHook { UTF8 }
{
\ctex_undeclare_unicode_character:n { "3008 }
Expand Down

0 comments on commit 713f967

Please sign in to comment.