[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/4] * doc/texinfo-zh.tex: add Chinese support for texinfo.te
From: |
Gavin Smith |
Subject: |
Re: [PATCH 1/4] * doc/texinfo-zh.tex: add Chinese support for texinfo.tex, only support XeTex now. |
Date: |
Thu, 6 Oct 2022 21:04:00 +0100 |
On Fri, Oct 07, 2022 at 01:07:11AM +0800, Wu XiangCheng wrote:
> ---
> ChangeLog | 5 +++++
> doc/texinfo-zh.tex | 53 ++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 58 insertions(+)
> create mode 100644 doc/texinfo-zh.tex
This appears to be a trivial modification of doc/texinfo-ja.tex. Is
doc/texinfo-zh.tex required as well?
If it is just a trivial modification of doc/texinfo-ja.tex but it is
better to have a separate file for Chinese output, it may be okay to
add it, depending on the other changes you also sent. I will email
you separately about the other changes.
>
> diff --git a/ChangeLog b/ChangeLog
> index 5f82758323..71b6f26661 100644
> --- a/ChangeLog
> +++ b/ChangeLog
> @@ -1,3 +1,8 @@
> +2022-10-06 Wu XiangCheng <bobwxc@yeah.net>
> +
> + * doc/texinfo-zh.tex: add Chinese support for texinfo.tex, only
> + support XeTex now.
> +
> 2022-10-05 Patrice Dumas <pertusus@free.fr>
>
> * tp/Texinfo/Common.pm, tp/Texinfo/Commands.pod,
> diff --git a/doc/texinfo-zh.tex b/doc/texinfo-zh.tex
> new file mode 100644
> index 0000000000..2d4182e258
> --- /dev/null
> +++ b/doc/texinfo-zh.tex
> @@ -0,0 +1,53 @@
> +% texinfo-zh.tex -- Chinese texinfo.tex loader
> +% Some CJK packages are necessary to load before texinfo.tex.
> +%
> +% Copyright 2016, 2017 Free Software Foundation, Inc.
> +%
> +% This program is free software; you can redistribute it and/or modify
> +% it under the terms of the GNU General Public License as published by
> +% the Free Software Foundation; either version 3 of the license, or (at
> +% your option) any later version.
> +%
> +% This program is distributed in the hope that it will be useful,
> +% but WITHOUT ANY WARRANTY; without even the implied warranty of
> +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> +% GNU General Public License for more details.
> +%
> +% You should have received a copy of the GNU General Public License
> +% along with this program. If not, see <http://www.gnu.org/licenses/>.
> +
> +%
> +% For XeTeX
> +%
> +\ifx\XeTeXrevision\thisisundefined
> +\else
> + % XeTeX 0.9998+ is required.
> + \ifnum\strcmp{\the\XeTeXversion\XeTeXrevision}{0.9998}<0
> + \errmessage{XeTeX 0.9998+ is required}
> + \fi
> + % zhspacing: Spacing for mixed CJK-English documents in XeTeX
> + % http://www.ctan.org/tex-archive/macros/xetex/generic/zhspacing
> + \openin 1 zhspacing.sty \ifeof 1
> + \errmessage{zhspacing is not found.
> + It is required for Chinese Texinfo files with XeTeX.
> + http://www.ctan.org/tex-archive/macros/xetex/generic/zhspacing
> + It might be contained in texlive-lang-chinese.}
> + \else
> + \def\zhfont{dummy} % Cancel the request of SimSun font
> + \def\zhpunctfont{dummy} % Cancel the request of SimSun font
> + \input zhspacing.sty
> + \zhspacing
> + \def\txizhpackage{zhspacing}
> + \fi
> +\fi
> +
> +%
> +% For others
> +%
> +\ifx\XeTeXrevision\thisisundefined
> + \errmessage{The TeX engine is not XeTeX.
> + XeTeX is required for Chinese Texinfo files}
> +\fi
> +
> +% Load original texinfo.tex
> +\input texinfo.tex
> --
> 2.30.2
>
- [PATCH 0/4] add Chinese support for texinfo pdf output, Wu XiangCheng, 2022/10/06
- [PATCH 4/4] * short-sample-zh.texi: add a sample file for texinfo-zh.tex., Wu XiangCheng, 2022/10/06
- [PATCH 1/4] * doc/texinfo-zh.tex: add Chinese support for texinfo.tex, only support XeTex now., Wu XiangCheng, 2022/10/06
- Re: [PATCH 1/4] * doc/texinfo-zh.tex: add Chinese support for texinfo.tex, only support XeTex now.,
Gavin Smith <=
- [PATCH 2/4] * doc/txi-zh.tex: add Chinese translations and font definitions for texinfo.tex., Wu XiangCheng, 2022/10/06
- [PATCH 3/4] * doc/txi-zh.tex: add modified \chapmacro, \sectionheading, \xrefX and \Ynumbered to fix Chinese chapter/section dispaly., Wu XiangCheng, 2022/10/06
- Re: [PATCH 3/4] * doc/txi-zh.tex: add modified \chapmacro, \sectionheading, \xrefX and \Ynumbered to fix Chinese chapter/section dispaly., Gavin Smith, 2022/10/06
- Re: [PATCH 3/4] * doc/txi-zh.tex: add modified \chapmacro, \sectionheading, \xrefX and \Ynumbered to fix Chinese chapter/section dispaly., Wu XiangCheng, 2022/10/06
- Re: [PATCH 3/4] * doc/txi-zh.tex: add modified \chapmacro, \sectionheading, \xrefX and \Ynumbered to fix Chinese chapter/section dispaly., Gavin Smith, 2022/10/07
- Re: [PATCH 3/4] * doc/txi-zh.tex: add modified \chapmacro, \sectionheading, \xrefX and \Ynumbered to fix Chinese chapter/section dispaly., Gavin Smith, 2022/10/18
- Re: [PATCH 3/4] * doc/txi-zh.tex: add modified \chapmacro, \sectionheading, \xrefX and \Ynumbered to fix Chinese chapter/section dispaly., Gavin Smith, 2022/10/18
- Re: [PATCH 3/4] * doc/txi-zh.tex: add modified \chapmacro, \sectionheading, \xrefX and \Ynumbered to fix Chinese chapter/section dispaly., Wu XiangCheng, 2022/10/18
- Re: [PATCH 3/4] * doc/txi-zh.tex: add modified \chapmacro, \sectionheading, \xrefX and \Ynumbered to fix Chinese chapter/section dispaly., Gavin Smith, 2022/10/19