help-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: My problems on translating a texinfo document to chinese


From: Lin Ralph
Subject: Re: My problems on translating a texinfo document to chinese
Date: Mon, 12 Feb 2024 06:03:18 +0000


Sort of...

I can get Chinese output to work for few pages, but it stops working after @cite and @url.

After them, no pages of output.

I think there is an issue with texinfo itself, not with the source


发件人: Gavin Smith <gavinsmith0123@gmail.com>
发送时间: 2024年2月12日 5:17
收件人: Lin Ralph <ralphlin24@hotmail.com>
抄送: help-texinfo@gnu.org <help-texinfo@gnu.org>
主题: Re: My problems on translating a texinfo document to chinese
 
On Tue, Feb 06, 2024 at 07:49:57PM +0000, Gavin Smith wrote:
> On Tue, Feb 06, 2024 at 03:22:59PM +0800, Ralph Lin wrote:
> > As you just said, I checked the texinfo source code, and the "txi-
> > zh" and "texinfo-zh" do exist, but not for the texinfo v6.8 that
> > I'm currently using.
> >
> > I added those files into the documentation source;
> >
> > and I run the texi2any command with argument "--pdf", it complains
> > about the lack of XeTeX.
> >
> > My machine has XeTeX installed alongside TeX Live, but I don't
> > know how to set it up as the default TeX engine.
> >
> > Thanks.
>
> Can you try running "TEX=xetex texi2pdf your-manual.texi" or
> "PDFTEX=xetex texi2pdf your-manual.texi"?

Did you get it to work?

I have added a new node to the manual, as it was not well documented
before.  The current draft is below.  Please let us know if there is
anything missing.

19 Printing Japanese and Chinese
********************************

Texinfo comes with support files for processing input in the Japanese
and Chinese languages.

   For Japanese, you use the ‘texinfo-ja.tex’ file.  Your main input
file should begin with a ‘\input texinfo-ja’ line, rather than the
standard ‘\input texinfo’.  Use the UTF-8 character encoding as usual.
You must process the files with either XeTeX or LuaTeX.

   For Chinese, you use the ‘texinfo-zh.tex’ file.  Your main input file
should begin with a ‘\input texinfo-zh’ line, rather than the standard
‘\input texinfo’.  Use the UTF-8 character encoding as usual.  You must
process the files with XeTeX.

   For example, you would run ‘PDFTEX=xetex texi2pdf MY-INPUT-FILE.TEXI’
to use XeTeX to produce PDF output.  You may have to install XeTeX (or
LuaTeX), the ‘zhspacing’ package, and/or font packages.

   Neither Japanese nor Chinese is supported with the standard TeX (or
pdfTeX) program, as it cannot support the fonts and thousands of glyphs
needed for these languages.

   The Texinfo distribution comes with a couple of sample files that you
can use to test support for these languages: ‘short-sample-ja.texi’ for
Japanese, and ‘short-sample-zh.texi’ for Chinese.

   For more information on these extensions to TeX, see the XeTeX home
page (https://tug.org/xetex/) and the LuaTeX website
(https://www.luatex.org/).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]