Skip to content

Commit 1c405e0

Browse files
committed
step version: v1.1.1
Make `@@@` show correctly.
1 parent cd3b4e6 commit 1c405e0

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

source/zhlipsum.dtx

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Copyright (C) 2017, 2018 by Xiangdong Zeng <[email protected]>.
183183
%<package>\NeedsTeXFormat{LaTeX2e}
184184
%<package>\RequirePackage{expl3}
185185
%<*!(driver|install)>
186-
%<!readme>\GetIdInfo $Id: zhlipsum.dtx 1.1.0 2018-04-08 12:00:00Z Xiangdong Zeng <[email protected]> $
186+
%<!readme>\GetIdInfo $Id: zhlipsum.dtx 1.1.1 2018-09-08 12:00:00Z Xiangdong Zeng <[email protected]> $
187187
%<package> {Chinese dummy text}
188188
%<package>\ProvidesExplPackage{\ExplFileName}
189189
%<utf8> {Chinese dummy text with UTF-8 encoding (for zhlipsum)}
@@ -237,7 +237,6 @@ Copyright (C) 2017, 2018 by Xiangdong Zeng <[email protected]>.
237237
\preto\ctexexam{\catcode`!=\active}
238238
\preto\endctexexam{\catcode`!=12}
239239
\catcode`!=12
240-
\makeatother
241240
% Do not add hyperlink for `TF`, and do not change color.
242241
\ExplSyntaxOn
243242
\cs_set_protected:Npn \__codedoc_typeset_TF:
@@ -253,7 +252,19 @@ Copyright (C) 2017, 2018 by Xiangdong Zeng <[email protected]>.
253252
}
254253
\group_end:
255254
}
255+
% From l3doc, to make @@ -> <module> while @@@@ -> @@
256+
\cs_set_protected:Npn \__ctxdoc_replace_at_at_aux:Nn #1#2
257+
{
258+
\tl_replace_all:Nnn #1 { \token_to_str:N @ } { @ }
259+
\tl_replace_all:Nnn #1 { \token_to_str:N _ } { _ }
260+
\tl_replace_all:Nnn #1 { @ @ @ @ } { \token_to_str:N a a }
261+
\tl_replace_all:Nnn #1 { _ _ @ @ } { _ _ #2 }
262+
\tl_replace_all:Nnn #1 { _ @ @ } { _ _ #2 }
263+
\tl_replace_all:Nnn #1 { @ @ } { _ _ #2 }
264+
\tl_replace_all:Nnn #1 { \token_to_str:N a a } { @ @ }
265+
}
256266
\ExplSyntaxOff
267+
\makeatother
257268
\RenewDocumentEnvironment{arguments}{}%
258269
{\enumerate[label={\texttt{\#\arabic*:~}},
259270
leftmargin=2em, labelsep=0pt, nolistsep]}%
@@ -280,6 +291,7 @@ Copyright (C) 2017, 2018 by Xiangdong Zeng <[email protected]>.
280291
% \changes{v0.4}{2017/09/16}{将安装、测试文件集成进源文件。}
281292
% \changes{v0.4}{2017/09/16}{优化宏包实现。}
282293
% \changes{v0.5}{2018/01/06}{添加英文版用户文档。}
294+
% \changes{v1.1.1}{2018/09/08}{完善持续集成系统,在多平台上进行测试。}
283295
%
284296
% \CheckSum{0}
285297
%
@@ -301,11 +313,11 @@ Copyright (C) 2017, 2018 by Xiangdong Zeng <[email protected]>.
301313
%
302314
% \title{\textbf{zhlipsum: 中文乱数假文(Lorem ipsum)}}
303315
% \author{曾祥东}
304-
% \date{2018/04/08 \quad v1.1.0^^A
316+
% \date{2018/09/08 \quad v1.1.1^^A
305317
% \thanks{\url{https://github.com/Stone-Zeng/zhlipsum}.}}
306318
%^^A! \title{\textbf{The \pkg{zhlipsum} Package: Chinese Dummy Text}}
307319
%^^A! \author{Xiangdong Zeng}
308-
%^^A! \date{2018/04/08 \quad v1.1.0%
320+
%^^A! \date{2018/09/08 \quad v1.1.1%
309321
%^^A! \thanks{\url{https://github.com/Stone-Zeng/zhlipsum}.}}
310322
%^^A!
311323
%
@@ -921,7 +933,7 @@ Copyright (C) 2017, 2018 by Xiangdong Zeng <[email protected]>.
921933
% \begin{macrocode}
922934
\keys_define:nn { zhlipsum / option }
923935
{
924-
encoding .choices:nn =
936+
encoding .choices:nn =
925937
{ utf8, gbk, big5 }
926938
{
927939
\tl_gset_eq:NN \g_@@_encoding_tl \l_keys_choice_tl
@@ -944,7 +956,7 @@ Copyright (C) 2017, 2018 by Xiangdong Zeng <[email protected]>.
944956
%
945957
% 处理未知选项。
946958
% \begin{macrocode}
947-
unknown .code:n = { \@@_error:n { unknown-option } }
959+
unknown .code:n = { \@@_error:n { unknown-option } }
948960
}
949961
% \end{macrocode}
950962
%
@@ -1484,6 +1496,7 @@ Copyright (C) 2017, 2018 by Xiangdong Zeng <[email protected]>.
14841496
% \end{macro}
14851497
%
14861498
% \changes{v1.0.0}{2018/03/26}{增加预定义假文。}
1499+
% \changes{v1.1.1}{2018/07/19}{更新假文文本。}
14871500
%
14881501
% 预定义假文的声明放置在分组内,利用 \cs{@@_set_special_catcode:} 切换
14891502
% 类别码后可以不再需要 \pkg{CJK} 的预处理操作。具体声明此处不再列出。

0 commit comments

Comments
 (0)