[latex3-commits] [l3svn] 03/04: Add a basic test for ctex
noreply at latex-project.org
noreply at latex-project.org
Fri Oct 2 17:36:29 CEST 2015
This is an automated email from the git hooks/post-receive script.
joseph pushed a commit to branch master
in repository l3svn.
commit 45d0b9daf37a81c0c22cef295fd3b3c56b383175
Author: Qing Lee <sobenlee at gmail.com>
Date: Fri Oct 2 20:46:03 2015 +0800
Add a basic test for ctex
This test is only to indicate running without any errors.
---
contrib/testfiles/ctex001.lvt | 78 +++++++++++++++++++++++++++++++++++
contrib/testfiles/ctex001.ptex.tlg | 21 ++++++++++
contrib/testfiles/ctex001.tlg | 21 ++++++++++
contrib/testfiles/ctex001.uptex.tlg | 21 ++++++++++
texlive.sh | 4 ++
5 files changed, 145 insertions(+)
diff --git a/contrib/testfiles/ctex001.lvt b/contrib/testfiles/ctex001.lvt
new file mode 100644
index 0000000..ec63d97
--- /dev/null
+++ b/contrib/testfiles/ctex001.lvt
@@ -0,0 +1,78 @@
+%
+% Copyright (C) 2015 Qing Lee
+%
+
+\documentclass{book}
+\input{regression-test}
+\AUTHOR{Qing Lee}
+
+\usepackage{expl3}
+
+\START
+
+\ExplSyntaxOn
+
+\bool_if:nF
+ {
+ \sys_if_engine_pdftex_p:
+ || \sys_if_engine_xetex_p:
+ || \sys_if_engine_luatex_p:
+ }
+ {
+ \msg_term:n { Not-supported-engine! }
+ \END
+ }
+
+%% We omit every message in tex running, but write a marker to .tlg before the final
+%% \@@end to indicate running without any errors since engine option "-halt-on-error"
+%% is active. In pdftex testing, there will be a "Font cyberb75 at 632 not found" error
+%% after \typeout{END-TEST-LOG} due to the lack of actual actual truetype fonts.
+%% \pdfdraftmode is helpless in this case. We can disable \shipout to avoid this error.
+%% But it is not essential in our test.
+\OMIT
+\AtEndDocument
+ {
+ \tl_put_left:cn { @@end }
+ {
+ \TIMO
+ \msg_term:n { OK,~ctex-test-passed! }
+ }
+ }
+
+%% SVN keywrod ID is not expanded by git, so the date of xtemplate is 0000/00/00.
+%% We need to change it to the correct value to make xeCJK happy.
+\sys_if_engine_xetex:T
+ {
+ \usepackage { filehook }
+ \AtEndOfPackageFile * { xtemplate }
+ {
+ \use:c { @ifpackagelater } { xtemplate } { 0000/00/01 }
+ { }
+ { \cs_set_eq:cc { ver at xtemplate.sty } { ver at expl3.sty } }
+ }
+ }
+
+\ExplSyntaxOff
+
+\usepackage[UTF8, heading, fontset = none]{ctex}
+
+%% use lm fonts instead of fandol for testing
+\ExplSyntaxOn
+\sys_if_engine_pdftex:F
+ {
+ \setCJKmainfont { Latin ~ Modern ~ Roman }
+ \setCJKsansfont { Latin ~ Modern ~ Sans }
+ \setCJKmonofont { Latin ~ Modern ~ Mono }
+ }
+\ExplSyntaxOff
+
+
+\begin{document}
+
+\chapter{测试(test)}
+
+Hello world! 你好,世界!
+
+一二三ABC
+
+\end{document}
diff --git a/contrib/testfiles/ctex001.ptex.tlg b/contrib/testfiles/ctex001.ptex.tlg
new file mode 100644
index 0000000..68b1531
--- /dev/null
+++ b/contrib/testfiles/ctex001.ptex.tlg
@@ -0,0 +1,21 @@
+This is a generated file for the LaTeX (2e + expl3) validation system.
+Don't change this file in any respect.
+%% \CharacterTable
+%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%% Digits \0\1\2\3\4\5\6\7\8\9
+%% Exclamation \! Double quote \" Hash (number) \#
+%% Dollar \$ Percent \% Ampersand \&
+%% Acute accent \' Left paren \( Right paren \)
+%% Asterisk \* Plus \+ Comma \,
+%% Minus \- Point \. Solidus \/
+%% Colon \: Semicolon \; Less than \<
+%% Equals \= Greater than \> Question mark \?
+%% Commercial at \@ Left bracket \[ Backslash \\
+%% Right bracket \] Circumflex \^ Underscore \_
+%% Grave accent \` Left brace \{ Vertical bar \|
+%% Right brace \} Tilde \~}
+%%
+*************************************************
+* Not-supported-engine!
+*************************************************
diff --git a/contrib/testfiles/ctex001.tlg b/contrib/testfiles/ctex001.tlg
new file mode 100644
index 0000000..45ab828
--- /dev/null
+++ b/contrib/testfiles/ctex001.tlg
@@ -0,0 +1,21 @@
+This is a generated file for the LaTeX (2e + expl3) validation system.
+Don't change this file in any respect.
+%% \CharacterTable
+%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%% Digits \0\1\2\3\4\5\6\7\8\9
+%% Exclamation \! Double quote \" Hash (number) \#
+%% Dollar \$ Percent \% Ampersand \&
+%% Acute accent \' Left paren \( Right paren \)
+%% Asterisk \* Plus \+ Comma \,
+%% Minus \- Point \. Solidus \/
+%% Colon \: Semicolon \; Less than \<
+%% Equals \= Greater than \> Question mark \?
+%% Commercial at \@ Left bracket \[ Backslash \\
+%% Right bracket \] Circumflex \^ Underscore \_
+%% Grave accent \` Left brace \{ Vertical bar \|
+%% Right brace \} Tilde \~}
+%%
+*************************************************
+* OK, ctex-test-passed!
+*************************************************
diff --git a/contrib/testfiles/ctex001.uptex.tlg b/contrib/testfiles/ctex001.uptex.tlg
new file mode 100644
index 0000000..68b1531
--- /dev/null
+++ b/contrib/testfiles/ctex001.uptex.tlg
@@ -0,0 +1,21 @@
+This is a generated file for the LaTeX (2e + expl3) validation system.
+Don't change this file in any respect.
+%% \CharacterTable
+%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%% Digits \0\1\2\3\4\5\6\7\8\9
+%% Exclamation \! Double quote \" Hash (number) \#
+%% Dollar \$ Percent \% Ampersand \&
+%% Acute accent \' Left paren \( Right paren \)
+%% Asterisk \* Plus \+ Comma \,
+%% Minus \- Point \. Solidus \/
+%% Colon \: Semicolon \; Less than \<
+%% Equals \= Greater than \> Question mark \?
+%% Commercial at \@ Left bracket \[ Backslash \\
+%% Right bracket \] Circumflex \^ Underscore \_
+%% Grave accent \` Left brace \{ Vertical bar \|
+%% Right brace \} Tilde \~}
+%%
+*************************************************
+* Not-supported-engine!
+*************************************************
diff --git a/texlive.sh b/texlive.sh
index 6c70d26..515f980 100644
--- a/texlive.sh
+++ b/texlive.sh
@@ -54,3 +54,7 @@ tlmgr install --no-depends fontspec
# - unicode-math
tlmgr install etoolbox filehook lm-math lualatex-math ucharcat
tlmgr install --no-depends unicode-math
+# - ctex
+tlmgr install adobemapping cjkpunct environ lualibs luatexja ms
+tlmgr install trimspaces ulem xecjk xkeyval zhmetrics zhnumber
+tlmgr install --no-depends cjk ctex
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the latex3-commits
mailing list