diff options
author | Karl Berry <karl@freefriends.org> | 2012-11-23 22:46:32 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-11-23 22:46:32 +0000 |
commit | 4472c1a09891d886ecdc6dd3fbfa39e66ef55ff7 (patch) | |
tree | 0235845fbcfde75dc2d3b817a8cf2a7a047e201c /Master/texmf-dist/doc/xelatex | |
parent | e59dc86d50620df70414da4bd434219b46137fc9 (diff) |
xecjk (23nov12)
git-svn-id: svn://tug.org/texlive/trunk@28348 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/xelatex')
10 files changed, 153 insertions, 168 deletions
diff --git a/Master/texmf-dist/doc/xelatex/xecjk/README b/Master/texmf-dist/doc/xelatex/xecjk/README index 126933d2dfe..94a9f709aab 100644 --- a/Master/texmf-dist/doc/xelatex/xecjk/README +++ b/Master/texmf-dist/doc/xelatex/xecjk/README @@ -12,13 +12,17 @@ This package is licensed in LPPL. This package consists of the file xeCJK.dtx and the derived files xeCJK.pdf, xeCJK.sty, + xeCJK.cfg, xeCJK.ins, xeCJK-example-autofake.tex, xeCJK-example-fallback.tex, xeCJK-example-subCJKblock.tex, xeCJK-example-CJKecglue.tex, - xeCJK-example-checksingle.tex and - README.txt (this file). + xeCJK-example-checksingle.tex, + xeCJK-example-CJKfntef.tex, + xeCJK-example-punctstyle.tex, + xeCJK-example-verbatim.tex, and + README.txt. (this file). If you are interested in the process of development you may observe @@ -43,7 +47,8 @@ The package requires LaTeX3 support as provided in the l3kernel and l3packages bundles and the fontspec package. All of these are available on CTAN as ready-to-install zip files. Suitable versions are available in the latest version of MiKTeX and TeX Live (updating the relevant -packages online may be necessary). +packages online may be necessary). Both of xpatch and etoolbox packages +are required. They are also available on CTAN. To compile the documentation without error, you will need some specific CJK scripts fonts (TrueType or OpenType). diff --git a/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-CJKecglue.tex b/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-CJKecglue.tex index f9159b4976a..41c3a087fbd 100644 --- a/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-CJKecglue.tex +++ b/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-CJKecglue.tex @@ -6,29 +6,6 @@ %% %% xeCJK.dtx (with options: `ex-ecglue') %% -%% $Id: xeCJK.dtx 358 2012-10-27 11:52:01Z sobenlee $ -%% $URL: https://ctex-kit.googlecode.com/svn/trunk/xeCJK/xeCJK.dtx $ -%% ----------------------------------------------------------------- -%% Author: -%% Wenchang Sun <sunwch@nankai.edu.cn> -%% Current Maintainers: -%% Leo Liu <leoliu.pku@gmail.com> -%% Qing Lee <sobenlee@gmail.com> -%% -%% Copyright (C) 2007--2012 Wenchang Sun -%% -%% This file may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either version 1.3 -%% of this license or (at your option) any later version. -%% The latest version of this license is in -%% http://www.latex-project.org/lppl.txt -%% and version 1.3 or later is part of all distributions of LaTeX -%% version 2005/12/01 or later. -%% -%% This work has the LPPL maintenance status "maintained". -%% The Current Maintainer of this work are Leo Liu and Qing Lee. -%% ----------------------------------------------------------------- -%% \documentclass{minimal} \usepackage{xeCJK} \setCJKmainfont[BoldFont=SimHei]{SimSun} @@ -47,15 +24,5 @@ This is an example. 这是一个例子} \showtext \end{document} %% -%% This package consists of the file xeCJK.dtx -%% and the derived files xeCJK.pdf, -%% xeCJK.sty, -%% xeCJK.ins, -%% xeCJK-example-autofake.tex, -%% xeCJK-example-fallback.tex, -%% xeCJK-example-subCJKblock.tex, -%% xeCJK-example-CJKecglue.tex, -%% xeCJK-example-checksingle.tex and -%% README.txt. %% %% End of file `xeCJK-example-CJKecglue.tex'. diff --git a/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-CJKfntef.tex b/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-CJKfntef.tex new file mode 100644 index 00000000000..700f3d0d3a6 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-CJKfntef.tex @@ -0,0 +1,32 @@ +%% +%% This is file `xeCJK-example-CJKfntef.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xeCJK.dtx (with options: `ex-fntef') +%% +\documentclass{article} +\usepackage{xeCJK} +\usepackage{xcolor} +\usepackage{CJKfntef} +\setCJKmainfont{SimSun} + +\begin{document} + +\CJKunderline{汉字}\CJKunderline{加下划线加下划线加下划线加下划线 +加下划线加下划线加下划线加下划线加下划线加下划线加下划线} + +\CJKunderwave{波浪线} + +\CJKunderanyline{0.5em}{\sixly \kern-.021em\char58 \kern-.021em}{自定义下划线} + +\CJKunderanyline{0.2em}{\kern-.03em\vtop{\kern.2ex\hrule width.2em\kern 0.11em + \hrule height 0.1em}\kern-.03em}{自定义下划线} + +\CJKunderanysymbol{0.5em}{$\cdot$}{汉字加点} + +\end{document} +%% +%% +%% End of file `xeCJK-example-CJKfntef.tex'. diff --git a/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-autofake.tex b/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-autofake.tex index 190dfb2883d..5e7126280c7 100644 --- a/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-autofake.tex +++ b/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-autofake.tex @@ -6,29 +6,6 @@ %% %% xeCJK.dtx (with options: `ex-autofake') %% -%% $Id: xeCJK.dtx 358 2012-10-27 11:52:01Z sobenlee $ -%% $URL: https://ctex-kit.googlecode.com/svn/trunk/xeCJK/xeCJK.dtx $ -%% ----------------------------------------------------------------- -%% Author: -%% Wenchang Sun <sunwch@nankai.edu.cn> -%% Current Maintainers: -%% Leo Liu <leoliu.pku@gmail.com> -%% Qing Lee <sobenlee@gmail.com> -%% -%% Copyright (C) 2007--2012 Wenchang Sun -%% -%% This file may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either version 1.3 -%% of this license or (at your option) any later version. -%% The latest version of this license is in -%% http://www.latex-project.org/lppl.txt -%% and version 1.3 or later is part of all distributions of LaTeX -%% version 2005/12/01 or later. -%% -%% This work has the LPPL maintenance status "maintained". -%% The Current Maintainer of this work are Leo Liu and Qing Lee. -%% ----------------------------------------------------------------- -%% \documentclass{article} \usepackage[AutoFakeBold,AutoFakeSlant]{xeCJK} \setCJKmainfont[BoldFont=simhei.ttf, ItalicFont=simkai.ttf]{simsun.ttc} @@ -78,15 +55,5 @@ \end{tabular} \end{document} %% -%% This package consists of the file xeCJK.dtx -%% and the derived files xeCJK.pdf, -%% xeCJK.sty, -%% xeCJK.ins, -%% xeCJK-example-autofake.tex, -%% xeCJK-example-fallback.tex, -%% xeCJK-example-subCJKblock.tex, -%% xeCJK-example-CJKecglue.tex, -%% xeCJK-example-checksingle.tex and -%% README.txt. %% %% End of file `xeCJK-example-autofake.tex'. diff --git a/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-checksingle.tex b/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-checksingle.tex index 07b0e4822d6..16f4a034420 100644 --- a/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-checksingle.tex +++ b/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-checksingle.tex @@ -6,29 +6,6 @@ %% %% xeCJK.dtx (with options: `ex-single') %% -%% $Id: xeCJK.dtx 358 2012-10-27 11:52:01Z sobenlee $ -%% $URL: https://ctex-kit.googlecode.com/svn/trunk/xeCJK/xeCJK.dtx $ -%% ----------------------------------------------------------------- -%% Author: -%% Wenchang Sun <sunwch@nankai.edu.cn> -%% Current Maintainers: -%% Leo Liu <leoliu.pku@gmail.com> -%% Qing Lee <sobenlee@gmail.com> -%% -%% Copyright (C) 2007--2012 Wenchang Sun -%% -%% This file may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either version 1.3 -%% of this license or (at your option) any later version. -%% The latest version of this license is in -%% http://www.latex-project.org/lppl.txt -%% and version 1.3 or later is part of all distributions of LaTeX -%% version 2005/12/01 or later. -%% -%% This work has the LPPL maintenance status "maintained". -%% The Current Maintainer of this work are Leo Liu and Qing Lee. -%% ----------------------------------------------------------------- -%% \documentclass{minimal} \usepackage{xeCJK} \setCJKmainfont{SimSun} @@ -53,15 +30,5 @@ x^2+y^2 \showtext \end{document} %% -%% This package consists of the file xeCJK.dtx -%% and the derived files xeCJK.pdf, -%% xeCJK.sty, -%% xeCJK.ins, -%% xeCJK-example-autofake.tex, -%% xeCJK-example-fallback.tex, -%% xeCJK-example-subCJKblock.tex, -%% xeCJK-example-CJKecglue.tex, -%% xeCJK-example-checksingle.tex and -%% README.txt. %% %% End of file `xeCJK-example-checksingle.tex'. diff --git a/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-fallback.tex b/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-fallback.tex index e6d2f36fde5..53e64190a31 100644 --- a/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-fallback.tex +++ b/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-fallback.tex @@ -6,29 +6,6 @@ %% %% xeCJK.dtx (with options: `ex-fallback') %% -%% $Id: xeCJK.dtx 358 2012-10-27 11:52:01Z sobenlee $ -%% $URL: https://ctex-kit.googlecode.com/svn/trunk/xeCJK/xeCJK.dtx $ -%% ----------------------------------------------------------------- -%% Author: -%% Wenchang Sun <sunwch@nankai.edu.cn> -%% Current Maintainers: -%% Leo Liu <leoliu.pku@gmail.com> -%% Qing Lee <sobenlee@gmail.com> -%% -%% Copyright (C) 2007--2012 Wenchang Sun -%% -%% This file may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either version 1.3 -%% of this license or (at your option) any later version. -%% The latest version of this license is in -%% http://www.latex-project.org/lppl.txt -%% and version 1.3 or later is part of all distributions of LaTeX -%% version 2005/12/01 or later. -%% -%% This work has the LPPL maintenance status "maintained". -%% The Current Maintainer of this work are Leo Liu and Qing Lee. -%% ----------------------------------------------------------------- -%% \documentclass{article} \usepackage[AutoFallBack]{xeCJK} \usepackage{CJKfntef} @@ -69,15 +46,5 @@ \end{table} \end{document} %% -%% This package consists of the file xeCJK.dtx -%% and the derived files xeCJK.pdf, -%% xeCJK.sty, -%% xeCJK.ins, -%% xeCJK-example-autofake.tex, -%% xeCJK-example-fallback.tex, -%% xeCJK-example-subCJKblock.tex, -%% xeCJK-example-CJKecglue.tex, -%% xeCJK-example-checksingle.tex and -%% README.txt. %% %% End of file `xeCJK-example-fallback.tex'. diff --git a/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-punctstyle.tex b/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-punctstyle.tex new file mode 100644 index 00000000000..be735b5d5c7 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-punctstyle.tex @@ -0,0 +1,51 @@ +%% +%% This is file `xeCJK-example-punctstyle.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xeCJK.dtx (with options: `ex-punctstyle') +%% +\documentclass{article} +\usepackage{xeCJK} +\setCJKmainfont{SimSun} +\xeCJKDeclarePunctStyle { mine } + { + fixed-punct-ratio = 0 , + fixed-margin-width = 0 pt , + mixed-margin-width = \maxdimen , + mixed-margin-ratio = 0.5 , + middle-margin-width = \maxdimen , + middle-margin-ratio = 0.5 , + add-min-bound-to-margin = true , + min-bound-to-kerning = true , + kerning-margin-minimum = 0.1 em + } + +\begin{document} +\setlength\parindent{2em} +\newcommand\showexample[1]{% + \texttt{------ #1 ------}\par\xeCJKsetup{PunctStyle=#1}\showtexts\par} + +\newcommand\showtexts{% +列位看官:你道此书从何而来?说起根由,虽近荒唐,细按则深有趣味。待在下将此来历注明,方使阅者了然不惑。 + +原来女娲氏炼石补天之时,于大荒山无稽崖炼成高经十二丈、方经二十四丈顽石三万六千五百零一块。娲皇氏只用了三万六千五百块,只单单剩了一块未用,便弃在此山青埂峰下。谁知此石自经煆炼之后,灵性已通,因见众石俱得补天,独自己无材不堪入选,遂自怨自叹,日夜悲号惭愧。 + +一日,正当嗟悼之际,俄见一僧一道远远而来,生得骨格不凡,丰神迥别,说说笑笑,来至峰下,坐于石边,高谈快论:先是说些云山雾海、神仙玄幻之事,后便说到红尘中荣华富贵。此石听了,不觉打动凡心,也想要到人间去享一享这荣华富贵,但自恨粗蠢,不得已,便口吐人言,向那僧道说道:“大师,弟子蠢物,不能见礼了!适闻二位谈那人世间荣耀繁华,心切慕之。弟子质虽粗蠢,性却稍通,况见二师仙形道体,定非凡品,必有补天济世之材,利物济人之德。如蒙发一点慈心,携带弟子得入红尘,在那富贵场中,温柔乡里受享几年,自当永佩洪恩,万劫不忘也!”二仙师听毕,齐憨笑道:“善哉,善哉!那红尘中有却有些乐事,但不能永远依恃;况又有‘美中不足,好事多磨’八个字紧相连属,瞬息间则又乐极悲生,人非物换,究竟是到头一梦,万境归空,倒不如不去的好。”这石凡心已炽,那里听得进这话去,乃复苦求再四。二仙知不可强制,乃叹道:“此亦静极思动,无中生有之数也!既如此,我们便携你去受享受享,只是到不得意时,切莫后悔!”石道:“自然,自然。”那僧又道:“若说你性灵,却又如此质蠢,并更无奇贵之处。如此也只好踮脚而已。也罢!我如今大施佛法,助你助,待劫终之日,复还本质,以了此案。你道好否?”石头听了,感谢不尽。那僧便念咒书符,大展幻术,将一块大石登时变成一块鲜明莹洁的美玉,且又缩成扇坠大小的可佩可拿。那僧托于掌上,笑道:“形体倒也是个宝物了!还只没有实在的好处,须得再镌上数字,使人一见便知是奇物方妙。然后好携你到那昌明隆盛之邦、诗礼簪缨之族、花柳繁华地、温柔富贵乡去安身乐业。”石头听了,喜不能禁,乃问:“不知赐了弟子那哪几件奇处?又不知携了弟子到何地方?望乞明示,使弟子不惑。”那僧笑道:“你且莫问,日后自然明白的。”说着,便袖了这石,同那道人飘然而去,竟不知投奔何方何舍。 + +\hfill +——曹雪芹《红楼梦》} + +\showexample{mine} +\showexample{quanjiao} +\showexample{banjiao} +\showexample{CCT} +\showexample{kaiming} +\showexample{hangmobanjiao} +\showexample{plain} + +\end{document} +%% +%% +%% End of file `xeCJK-example-punctstyle.tex'. diff --git a/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-subCJKblock.tex b/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-subCJKblock.tex index 00042b473bf..fa6cac040ef 100644 --- a/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-subCJKblock.tex +++ b/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-subCJKblock.tex @@ -6,29 +6,6 @@ %% %% xeCJK.dtx (with options: `ex-block') %% -%% $Id: xeCJK.dtx 358 2012-10-27 11:52:01Z sobenlee $ -%% $URL: https://ctex-kit.googlecode.com/svn/trunk/xeCJK/xeCJK.dtx $ -%% ----------------------------------------------------------------- -%% Author: -%% Wenchang Sun <sunwch@nankai.edu.cn> -%% Current Maintainers: -%% Leo Liu <leoliu.pku@gmail.com> -%% Qing Lee <sobenlee@gmail.com> -%% -%% Copyright (C) 2007--2012 Wenchang Sun -%% -%% This file may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either version 1.3 -%% of this license or (at your option) any later version. -%% The latest version of this license is in -%% http://www.latex-project.org/lppl.txt -%% and version 1.3 or later is part of all distributions of LaTeX -%% version 2005/12/01 or later. -%% -%% This work has the LPPL maintenance status "maintained". -%% The Current Maintainer of this work are Leo Liu and Qing Lee. -%% ----------------------------------------------------------------- -%% \documentclass{article} \usepackage{xeCJK} \usepackage{array} @@ -85,15 +62,5 @@ CJK統合漢字(シージェーケーとうごうかんじ、CJK Unified Ideog \end{table} \end{document} %% -%% This package consists of the file xeCJK.dtx -%% and the derived files xeCJK.pdf, -%% xeCJK.sty, -%% xeCJK.ins, -%% xeCJK-example-autofake.tex, -%% xeCJK-example-fallback.tex, -%% xeCJK-example-subCJKblock.tex, -%% xeCJK-example-CJKecglue.tex, -%% xeCJK-example-checksingle.tex and -%% README.txt. %% %% End of file `xeCJK-example-subCJKblock.tex'. diff --git a/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-verbatim.tex b/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-verbatim.tex new file mode 100644 index 00000000000..f37cb46eff1 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-verbatim.tex @@ -0,0 +1,62 @@ +%% +%% This is file `xeCJK-example-verbatim.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xeCJK.dtx (with options: `ex-verb') +%% +\documentclass[a4paper]{article} +\usepackage{xeCJK} +\usepackage{fullpage} +\xeCJKDeclareSubCJKBlock{Hangul} + { "1100 -> "11FF, "3130 -> "318F, "A960 -> "A97F, "AC00 -> "D7AF } +\setCJKmainfont{Adobe Song Std} +\setCJKmainfont[Hangul]{Adobe Myungjo Std} +%%\setmonofont{Inconsolata} +%%\setmonofont{Source Code Pro} +%%\setCJKmonofont{Adobe Kaiti Std} +\setmonofont{TeX Gyre Cursor} +\setCJKmonofont{Adobe Fangsong Std} +\begin{document} + +\begin{verbatim} +************************************************************* +* * +* 精致甲版红楼梦 - 精致工作室特别奉献(2010年9月) * +* * +* GBK简体、GBK繁体、Big5繁体、PDF简体、PDF繁体 * +* * +* 为 GBK、Big5 特别度身订制,并经反复修订,方便纯文本阅读 * +* * +* 精致甲、乙版红楼梦下载专页 * +* http://www.speedy7.com/cn/stguru/gb2312/redmansions.htm * +* http://www.speedy7.com/cn/stguru/big5/redmansions.htm * +* * +* 此电子文件可随意传播、发布、下载。 * +* 传播时建议保留此版本说明供查阅与识别。 * +* 未经修订者同意,不得将此版本用于商业用途。 * +* 如您对红楼梦不具深入了解,请勿随便修改其中的内容。 * +* * +************************************************************* +\end{verbatim} + +\verb|a 汉 字 b| + +\verb*|a 汉 字 b| + +\begin{verbatim} +lang_set = { + ["English"] = lang.en, + ["Français"] = lang.fr, + ["Español"] = lang.es, + ["中文"] = lang.zh, + ["日本語"] = lang.ja, + ["한국어"] = lang.ko, +} +\end{verbatim} + +\end{document} +%% +%% +%% End of file `xeCJK-example-verbatim.tex'. diff --git a/Master/texmf-dist/doc/xelatex/xecjk/xeCJK.pdf b/Master/texmf-dist/doc/xelatex/xecjk/xeCJK.pdf Binary files differindex 4f418136d5a..39ed5e3552e 100644 --- a/Master/texmf-dist/doc/xelatex/xecjk/xeCJK.pdf +++ b/Master/texmf-dist/doc/xelatex/xecjk/xeCJK.pdf |