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/).
