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: Gavin Smith
Subject: Re: My problems on translating a texinfo document to chinese
Date: Mon, 12 Feb 2024 16:03:19 +0000

On Mon, Feb 12, 2024 at 05:40:24PM +0800, Ralph Lin wrote:
 This is a follow-up for my last email.
> 
> I didn't get your method working with the tex file short-sample-
> zh.texi. 
> 
> The working method is by installing auctex(a emacs package) and
> use Texing options - Xetex engine, then use C-c C-a to compile.
> 
> After that, it complains me about Metric TFM files not found, and
> there are some cross-references and TOC not found.
> 
> I'm actually working on the Emacs Manual(see attached files), and
> by removing @cite, the whole Preface section is now working, but
> the rest of the book can't be printed even with converting dvi to
> pdf.
> 
> Thanks.

On Linux Mint 21.2 I had to install the packages

texlive-lang-chinese
texlive-xetex
fonts-arphic-ukai

(I don't keep these installed usually because of the disk space they
take up.)

I started by simply running "xetex emacs.texi" in the files you sent me.
I had an error message about nested footnotes:

(./commands.texi 章 2
! Nested footnotes not supported in texinfo.tex, even though they work in makei
nfo; sorry.
@footnote ... though they work in makeinfo; sorry}
                                                   
l.49 labeled @key{Alt})@footnote
                                {We refer to @key{Alt} as @key{Meta} for

Inside screen.texi, which is included by emacs.texi before commands.texi,
there appears to be an unterminated footnote:

  所选窗口中的光标显示大多数编辑命令生效的位置,称为 @dfn{光标}@footnote{''光标'' 来自字符 @samp{.},这是 
TECO(Emacs的编写语言)中用于访问编辑位置的命令。 许多 Emacs 命令将光标移动到缓冲区中的不同位置;例如,您可以通过单击鼠标按钮 
1(通哦常是左键)将点放置在所需位置。


Supplying an extra closing brace led the rest of the input to appear in
the output "emacs.pdf".

  所选窗口中的光标显示大多数编辑命令生效的位置,称为 @dfn{光标}@footnote{''光标'' 来自字符 @samp{.},这是 
TECO(Emacs的编写语言)中用于访问编辑位置的命令。 许多 Emacs 命令将光标移动到缓冲区中的不同位置;例如,您可以通过单击鼠标按钮 
1(通哦常是左键)将点放置在所需位置。}

(I just stuck the } on the end but it probably is supposed to appear earlier.)

I suspect the issue with @cite may be due to missing font files.  I found
that @cite changes the font for Chinese text.  For example, the output for

@cite{散文} 散文

looks as in the attached image.

By adding \XeTeXtracingfonts=1\relax to the beginning of the file, I
got the following in the log file:

Requested font "[NotoSerifCJK-Regular.ttc:2]:mapping=tex-text" at 10.78pt
 -> /usr/share/fonts/opentype/noto/NotoSerifCJK-Regular.ttc
Requested font "[ukai.ttc]:mapping=tex-text" at 10.78pt
 -> /usr/share/fonts/truetype/arphic/ukai.ttc
Requested font "[NotoSerifCJK-Regular.ttc:2]:mapping=tex-text" at 8.66pt
 -> /usr/share/fonts/opentype/noto/NotoSerifCJK-Regular.ttc
Requested font "[ukai.ttc]:mapping=tex-text" at 8.66pt
 -> /usr/share/fonts/truetype/arphic/ukai.ttc
Requested font "[NotoSerifCJK-Regular.ttc:2]:mapping=tex-text" at 7.7pt
 -> /usr/share/fonts/opentype/noto/NotoSerifCJK-Regular.ttc
Requested font "[ukai.ttc]:mapping=tex-text" at 7.7pt
 -> /usr/share/fonts/truetype/arphic/ukai.ttc
Requested font "[NotoSerifCJK-Regular.ttc:2]:mapping=tex-text" at 19.63pt
 -> /usr/share/fonts/opentype/noto/NotoSerifCJK-Regular.ttc
Requested font "[ukai.ttc]:mapping=tex-text" at 19.63pt
 -> /usr/share/fonts/truetype/arphic/ukai.ttc
Requested font "[NotoSerifCJK-Regular.ttc:2]:mapping=tex-text" at 16.63pt
 -> /usr/share/fonts/opentype/noto/NotoSerifCJK-Regular.ttc
Requested font "[ukai.ttc]:mapping=tex-text" at 16.63pt
 -> /usr/share/fonts/truetype/arphic/ukai.ttc
Requested font "[NotoSerifCJK-Regular.ttc:2]:mapping=tex-text" at 13.86pt
 -> /usr/share/fonts/opentype/noto/NotoSerifCJK-Regular.ttc
Requested font "[ukai.ttc]:mapping=tex-text" at 13.86pt
 -> /usr/share/fonts/truetype/arphic/ukai.ttc
Requested font "[NotoSerifCJK-Regular.ttc:2]:mapping=tex-text" at 12.65pt
 -> /usr/share/fonts/opentype/noto/NotoSerifCJK-Regular.ttc
Requested font "[ukai.ttc]:mapping=tex-text" at 12.65pt
 -> /usr/share/fonts/truetype/arphic/ukai.ttc
Requested font "[NotoSerifCJK-Regular.ttc:2]:mapping=tex-text" at 9.62pt
 -> /usr/share/fonts/opentype/noto/NotoSerifCJK-Regular.ttc
Requested font "[ukai.ttc]:mapping=tex-text" at 9.62pt
 -> /usr/share/fonts/truetype/arphic/ukai.ttc
Requested font "[NotoSerifCJK-Regular.ttc:2]:mapping=tex-text" at 11.55pt
 -> /usr/share/fonts/opentype/noto/NotoSerifCJK-Regular.ttc
Requested font "[ukai.ttc]:mapping=tex-text" at 11.55pt
 -> /usr/share/fonts/truetype/arphic/ukai.ttc

Hopefully this will help you install the necessary fonts.

Attachment: xetex-zh-cite-font.png
Description: PNG image


reply via email to

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