From 9591c0c57b007ba49f15f0970009bc27efa23db4 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 14 May 2015 21:23:11 +0000 Subject: ctex (14may15) git-svn-id: svn://tug.org/texlive/trunk@37393 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/generic/ctex/ctexmakespa.tex | 68 ++++++++++ .../texmf-dist/tex/generic/ctex/ctexspamacro.tex | 94 ++++++++++++++ .../texmf-dist/tex/generic/ctex/zhadobefonts.tex | 106 +++++++++++++++ .../texmf-dist/tex/generic/ctex/zhfandolfonts.tex | 106 +++++++++++++++ .../texmf-dist/tex/generic/ctex/zhfounderfonts.tex | 142 +++++++++++++++++++++ .../texmf-dist/tex/generic/ctex/zhubuntufonts.tex | 130 +++++++++++++++++++ .../texmf-dist/tex/generic/ctex/zhwindowsfonts.tex | 142 +++++++++++++++++++++ 7 files changed, 788 insertions(+) create mode 100644 Master/texmf-dist/tex/generic/ctex/ctexmakespa.tex create mode 100644 Master/texmf-dist/tex/generic/ctex/ctexspamacro.tex create mode 100644 Master/texmf-dist/tex/generic/ctex/zhadobefonts.tex create mode 100644 Master/texmf-dist/tex/generic/ctex/zhfandolfonts.tex create mode 100644 Master/texmf-dist/tex/generic/ctex/zhfounderfonts.tex create mode 100644 Master/texmf-dist/tex/generic/ctex/zhubuntufonts.tex create mode 100644 Master/texmf-dist/tex/generic/ctex/zhwindowsfonts.tex (limited to 'Master/texmf-dist/tex/generic') diff --git a/Master/texmf-dist/tex/generic/ctex/ctexmakespa.tex b/Master/texmf-dist/tex/generic/ctex/ctexmakespa.tex new file mode 100644 index 00000000000..b118c20873c --- /dev/null +++ b/Master/texmf-dist/tex/generic/ctex/ctexmakespa.tex @@ -0,0 +1,68 @@ +%% +%% This is file `ctexmakespa.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% ctex.dtx (with options: `spa,make') +%% +%% Copyright (C) 2003--2015 +%% CTEX.ORG and any individual authors listed in the documentation. +%% ------------------------------------------------------------------------------ +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and 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 Maintainers of this work are Leo Liu, Qing Lee and Liam Huang. +%% +%% ------------------------------------------------------------------------------ +%% +\input ctexspamacro % + +\MAKESPA {ctexpunct.spa} + { + {adobezhsong} {AdobeSongStd-Light} , + {adobezhhei} {AdobeHeitiStd-Regular} , + {adobezhkai} {AdobeKaitiStd-Regular} , + {adobezhfs} {AdobeFangsongStd-Regular} , + {fandolzhsong} {FandolSong} , + {fandolzhsongb} {FandolSong-Bold} , + {fandolzhhei} {FandolHei} , + {fandolzhheib} {FandolHei-Bold} , + {fandolzhkai} {FandolKai} , + {fandolzhfs} {FandolFang} , + {founderzhsong} {FZShuSong-Z01} , + {founderzhsongb} {FZXiaoBiaoSong-B05} , + {founderzhhei} {FZHei-B01} , + {founderzhheil} {FZXiHeiI-Z08} , + {founderzhkai} {FZKai-Z03} , + {founderzhfs} {FZFangSong-Z02} , + {founderzhli} {FZLiShu-S01} , + {founderzhyou} {FZXiYuan-M01} , + {founderzhyoub} {FZZhunYuan-M02} , + {ubuntuzhsong} {AR PL UMing CN} , + {ubuntuzhhei} {WenQuanYi Zen Hei} , + {ubuntuzhkai} {AR PL UKai CN} , + {windowszhsong} {SimSun} , + {windowszhhei} {SimHei} , + {windowszhkai} {KaiTi} , + {windowszhfs} {FangSong} , + {windowszhli} {LiSu} , + {windowszhyou} {YouYuan} , + {windowszhyahei} {Microsoft YaHei} , + {windowszhyaheib} {Microsoft YaHei Bold} + } + +\primitive\end +%% +%% +%% End of file `ctexmakespa.tex'. diff --git a/Master/texmf-dist/tex/generic/ctex/ctexspamacro.tex b/Master/texmf-dist/tex/generic/ctex/ctexspamacro.tex new file mode 100644 index 00000000000..4f4e629c38f --- /dev/null +++ b/Master/texmf-dist/tex/generic/ctex/ctexspamacro.tex @@ -0,0 +1,94 @@ +%% +%% This is file `ctexspamacro.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% ctex.dtx (with options: `spa,macro') +%% +%% Copyright (C) 2003--2015 +%% CTEX.ORG and any individual authors listed in the documentation. +%% ------------------------------------------------------------------------------ +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and 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 Maintainers of this work are Leo Liu, Qing Lee and Liam Huang. +%% +%% ------------------------------------------------------------------------------ +%% +\input expl3-generic % +\ExplSyntaxOn +\xetex_if_engine:F + { + \msg_new:nn { ctex } { xetex } + { XeTeX~is~required~to~compile~this~document! } + \msg_fatal:nn { ctex } { xetex } + } +\seq_new:N \c__ctex_punct_seq +\seq_gset_from_clist:Nn \c__ctex_punct_seq + { + "2018 , "201C , "300C , "300E , "3014 , "FF08 , "FF3B , "FF5B , + "3008 , "300A , "3016 , "3010 , + "2014 , "2026 , "3001 , "3002 , "FF0C , "FF0E , "FF1A , "FF1B , + "FF01 , "FF1F , "FF05 , "3015 , "FF09 , "FF3D , "FF5D , "3009 , + "300B , "3017 , "3011 , "2019 , "201D , "300D , "300F + } +\cs_new_protected_nopar:Npn \ctex_make_spa:nn #1#2 + { + \iow_open:Nn \g__ctex_spa_iow {#1} + \clist_map_inline:nn {#2} + { \__ctex_write_family:nn ##1 } + \iow_close:N \g__ctex_spa_iow + } +\iow_new:N \g__ctex_spa_iow +\cs_new_eq:NN \MAKESPA \ctex_make_spa:nn +\cs_new_protected:Npn \__ctex_write_family:nn #1#2 + { + \group_begin: + \tex_font:D \l__ctex_punct_font = "#2" ~ at ~ 100 pt \scan_stop: + \l__ctex_punct_font + \clist_clear:N \l__ctex_punct_bounds_clist + \seq_map_inline:Nn \c__ctex_punct_seq + { \exp_args:No \__ctex_save_bounds:n { \int_use:N \XeTeXcharglyph ##1 } } + \iow_now:Nx \g__ctex_spa_iow + { + \token_to_str:N \ctexspadef {#1} + { \l__ctex_punct_bounds_clist , , , } + } + \group_end: + } +\cs_new_protected_nopar:Npn \__ctex_save_bounds:n #1 + { + \clist_put_right:Nx \l__ctex_punct_bounds_clist + { + \__ctex_calc_bounds:nn { \c_one } {#1} , + \__ctex_calc_bounds:nn { \c_three } {#1} + } + } +\clist_new:N \l__ctex_punct_bounds_clist +\cs_new_nopar:Npn \__ctex_calc_bounds:nn #1#2 + { + \fp_eval:n + { + round + ( + \dim_to_decimal_in_unit:nn + { 100 \XeTeXglyphbounds #1 ~ #2 } + { 1 em } + ) + } + } +\ExplSyntaxOff +%% +%% +%% End of file `ctexspamacro.tex'. diff --git a/Master/texmf-dist/tex/generic/ctex/zhadobefonts.tex b/Master/texmf-dist/tex/generic/ctex/zhadobefonts.tex new file mode 100644 index 00000000000..bd63bc0c8af --- /dev/null +++ b/Master/texmf-dist/tex/generic/ctex/zhadobefonts.tex @@ -0,0 +1,106 @@ +%% +%% This is file `zhadobefonts.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% ctex.dtx (with options: `zhmap,adobe') +%% +%% Copyright (C) 2003--2015 +%% CTEX.ORG and any individual authors listed in the documentation. +%% ------------------------------------------------------------------------------ +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and 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 Maintainers of this work are Leo Liu, Qing Lee and Liam Huang. +%% +%% ------------------------------------------------------------------------------ +%% +\begingroup\catcode61\catcode48\catcode32=10\relax% + \catcode 35=6 % # + \catcode123=1 % { + \catcode125=2 % } + \toks0{\endlinechar=\the\endlinechar\relax}% + \toks2{\endlinechar=13 }% + \def\x#1 #2 {% + \toks0\expandafter{\the\toks0 \catcode#1=\the\catcode#1\relax}% + \toks2\expandafter{\the\toks2 \catcode#1=#2 }}% + \x 13 5 % carriage return + \x 32 10 % space + \x 35 6 % # + \x 40 12 % ( + \x 41 12 % ) + \x 45 12 % - + \x 46 12 % . + \x 47 12 % / + \x 58 12 % : + \x 60 12 % < + \x 61 12 % = + \x 64 11 % @ + \x 91 12 % [ + \x 93 12 % ] + \x 123 1 % { + \x 125 2 % } + \edef\x#1{\endgroup% + \edef\noexpand#1{% + \the\toks0 % + \let\noexpand\noexpand\noexpand#1% + \noexpand\noexpand\noexpand\undefined% + \noexpand\noexpand\noexpand\endinput}% + \the\toks2}% +\expandafter\x\csname ctex@zhmap@endinput\endcsname +\input ifpdf.sty\relax +\begingroup +\expandafter\ifx\csname ProvidesFile\endcsname\relax + \long\def\x#1\ProvidesFile#2[#3]{% + #1% + \immediate\write-1{File: #2 #3}% + \expandafter\xdef\csname ver@#2\endcsname{#3}} + \expandafter\x% +\fi +\endgroup +\ProvidesFile{zhadobefonts.tex}% + [2014/06/03 v2.0 Adobe font map loader for DVIPDFMx (CTEX)] + +\ifpdf +%% pdfTeX does not support OTF fonts + +\else + \special{pdf:mapline gbk@UGBK@ UniGB-UTF16-H AdobeSongStd-Light.otf} + \special{pdf:mapline gbksong@UGBK@ UniGB-UTF16-H AdobeSongStd-Light.otf} + \special{pdf:mapline gbkkai@UGBK@ UniGB-UTF16-H AdobeKaitiStd-Regular.otf} + \special{pdf:mapline gbkhei@UGBK@ UniGB-UTF16-H AdobeHeitiStd-Regular.otf} + \special{pdf:mapline gbkfs@UGBK@ UniGB-UTF16-H AdobeFangsongStd-Regular.otf} + + \special{pdf:mapline cyberb@Unicode@ UniGB-UTF16-H AdobeSongStd-Light.otf} + \special{pdf:mapline unisong@Unicode@ UniGB-UTF16-H AdobeSongStd-Light.otf} + \special{pdf:mapline unikai@Unicode@ UniGB-UTF16-H AdobeKaitiStd-Regular.otf} + \special{pdf:mapline unihei@Unicode@ UniGB-UTF16-H AdobeHeitiStd-Regular.otf} + \special{pdf:mapline unifs@Unicode@ UniGB-UTF16-H AdobeFangsongStd-Regular.otf} + + \special{pdf:mapline gbksongsl@UGBK@ UniGB-UTF16-H AdobeSongStd-Light.otf -s .167} + \special{pdf:mapline gbkkaisl@UGBK@ UniGB-UTF16-H AdobeKaitiStd-Regular.otf -s .167} + \special{pdf:mapline gbkheisl@UGBK@ UniGB-UTF16-H AdobeHeitiStd-Regular.otf -s .167} + \special{pdf:mapline gbkfssl@UGBK@ UniGB-UTF16-H AdobeFangsongStd-Regular.otf -s .167} + + \special{pdf:mapline unisongsl@Unicode@ UniGB-UTF16-H AdobeSongStd-Light.otf -s .167} + \special{pdf:mapline unikaisl@Unicode@ UniGB-UTF16-H AdobeKaitiStd-Regular.otf -s .167} + \special{pdf:mapline uniheisl@Unicode@ UniGB-UTF16-H AdobeHeitiStd-Regular.otf -s .167} + \special{pdf:mapline unifssl@Unicode@ UniGB-UTF16-H AdobeFangsongStd-Regular.otf -s .167} + +\fi + +\ctex@zhmap@endinput +%% +%% +%% End of file `zhadobefonts.tex'. diff --git a/Master/texmf-dist/tex/generic/ctex/zhfandolfonts.tex b/Master/texmf-dist/tex/generic/ctex/zhfandolfonts.tex new file mode 100644 index 00000000000..3d2806f552d --- /dev/null +++ b/Master/texmf-dist/tex/generic/ctex/zhfandolfonts.tex @@ -0,0 +1,106 @@ +%% +%% This is file `zhfandolfonts.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% ctex.dtx (with options: `zhmap,fandol') +%% +%% Copyright (C) 2003--2015 +%% CTEX.ORG and any individual authors listed in the documentation. +%% ------------------------------------------------------------------------------ +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and 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 Maintainers of this work are Leo Liu, Qing Lee and Liam Huang. +%% +%% ------------------------------------------------------------------------------ +%% +\begingroup\catcode61\catcode48\catcode32=10\relax% + \catcode 35=6 % # + \catcode123=1 % { + \catcode125=2 % } + \toks0{\endlinechar=\the\endlinechar\relax}% + \toks2{\endlinechar=13 }% + \def\x#1 #2 {% + \toks0\expandafter{\the\toks0 \catcode#1=\the\catcode#1\relax}% + \toks2\expandafter{\the\toks2 \catcode#1=#2 }}% + \x 13 5 % carriage return + \x 32 10 % space + \x 35 6 % # + \x 40 12 % ( + \x 41 12 % ) + \x 45 12 % - + \x 46 12 % . + \x 47 12 % / + \x 58 12 % : + \x 60 12 % < + \x 61 12 % = + \x 64 11 % @ + \x 91 12 % [ + \x 93 12 % ] + \x 123 1 % { + \x 125 2 % } + \edef\x#1{\endgroup% + \edef\noexpand#1{% + \the\toks0 % + \let\noexpand\noexpand\noexpand#1% + \noexpand\noexpand\noexpand\undefined% + \noexpand\noexpand\noexpand\endinput}% + \the\toks2}% +\expandafter\x\csname ctex@zhmap@endinput\endcsname +\input ifpdf.sty\relax +\begingroup +\expandafter\ifx\csname ProvidesFile\endcsname\relax + \long\def\x#1\ProvidesFile#2[#3]{% + #1% + \immediate\write-1{File: #2 #3}% + \expandafter\xdef\csname ver@#2\endcsname{#3}} + \expandafter\x% +\fi +\endgroup +\ProvidesFile{zhfandolfonts.tex}% + [2014/06/03 v2.0 Fandol font map loader for DVIPDFMx (CTEX)] + +\ifpdf +%% pdfTeX does not support OTF fonts + +\else + \special{pdf:mapline gbk@UGBK@ UniGB-UTF16-H FandolSong-Regular.otf} + \special{pdf:mapline gbksong@UGBK@ UniGB-UTF16-H FandolSong-Regular.otf} + \special{pdf:mapline gbkkai@UGBK@ UniGB-UTF16-H FandolKai-Regular.otf} + \special{pdf:mapline gbkhei@UGBK@ UniGB-UTF16-H FandolHei-Regular.otf} + \special{pdf:mapline gbkfs@UGBK@ UniGB-UTF16-H FandolFang-Regular.otf} + + \special{pdf:mapline cyberb@Unicode@ UniGB-UTF16-H FandolSong-Regular.otf} + \special{pdf:mapline unisong@Unicode@ UniGB-UTF16-H FandolSong-Regular.otf} + \special{pdf:mapline unikai@Unicode@ UniGB-UTF16-H FandolKai-Regular.otf} + \special{pdf:mapline unihei@Unicode@ UniGB-UTF16-H FandolHei-Regular.otf} + \special{pdf:mapline unifs@Unicode@ UniGB-UTF16-H FandolFang-Regular.otf} + + \special{pdf:mapline gbksongsl@UGBK@ UniGB-UTF16-H FandolSong-Regular.otf -s .167} + \special{pdf:mapline gbkkaisl@UGBK@ UniGB-UTF16-H FandolKai-Regular.otf -s .167} + \special{pdf:mapline gbkheisl@UGBK@ UniGB-UTF16-H FandolHei-Regular.otf -s .167} + \special{pdf:mapline gbkfssl@UGBK@ UniGB-UTF16-H FandolFang-Regular.otf -s .167} + + \special{pdf:mapline unisongsl@Unicode@ UniGB-UTF16-H FandolSong-Regular.otf -s .167} + \special{pdf:mapline unikaisl@Unicode@ UniGB-UTF16-H FandolKai-Regular.otf -s .167} + \special{pdf:mapline uniheisl@Unicode@ UniGB-UTF16-H FandolHei-Regular.otf -s .167} + \special{pdf:mapline unifssl@Unicode@ UniGB-UTF16-H FandolFang-Regular.otf -s .167} + +\fi + +\ctex@zhmap@endinput +%% +%% +%% End of file `zhfandolfonts.tex'. diff --git a/Master/texmf-dist/tex/generic/ctex/zhfounderfonts.tex b/Master/texmf-dist/tex/generic/ctex/zhfounderfonts.tex new file mode 100644 index 00000000000..763eb012fce --- /dev/null +++ b/Master/texmf-dist/tex/generic/ctex/zhfounderfonts.tex @@ -0,0 +1,142 @@ +%% +%% This is file `zhfounderfonts.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% ctex.dtx (with options: `zhmap,founder') +%% +%% Copyright (C) 2003--2015 +%% CTEX.ORG and any individual authors listed in the documentation. +%% ------------------------------------------------------------------------------ +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and 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 Maintainers of this work are Leo Liu, Qing Lee and Liam Huang. +%% +%% ------------------------------------------------------------------------------ +%% +\begingroup\catcode61\catcode48\catcode32=10\relax% + \catcode 35=6 % # + \catcode123=1 % { + \catcode125=2 % } + \toks0{\endlinechar=\the\endlinechar\relax}% + \toks2{\endlinechar=13 }% + \def\x#1 #2 {% + \toks0\expandafter{\the\toks0 \catcode#1=\the\catcode#1\relax}% + \toks2\expandafter{\the\toks2 \catcode#1=#2 }}% + \x 13 5 % carriage return + \x 32 10 % space + \x 35 6 % # + \x 40 12 % ( + \x 41 12 % ) + \x 45 12 % - + \x 46 12 % . + \x 47 12 % / + \x 58 12 % : + \x 60 12 % < + \x 61 12 % = + \x 64 11 % @ + \x 91 12 % [ + \x 93 12 % ] + \x 123 1 % { + \x 125 2 % } + \edef\x#1{\endgroup% + \edef\noexpand#1{% + \the\toks0 % + \let\noexpand\noexpand\noexpand#1% + \noexpand\noexpand\noexpand\undefined% + \noexpand\noexpand\noexpand\endinput}% + \the\toks2}% +\expandafter\x\csname ctex@zhmap@endinput\endcsname +\input ifpdf.sty\relax +\begingroup +\expandafter\ifx\csname ProvidesFile\endcsname\relax + \long\def\x#1\ProvidesFile#2[#3]{% + #1% + \immediate\write-1{File: #2 #3}% + \expandafter\xdef\csname ver@#2\endcsname{#3}} + \expandafter\x% +\fi +\endgroup +\ProvidesFile{zhfounderfonts.tex}% + [2014/06/03 v2.0 Founder font map loader for pdfTeX and DVIPDFMx (CTEX)] + +\ifpdf + \pdfmapline{=gbk@UGBK@