[Top][All Lists]

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

Re: Some manual @ref @xref @pxref fail when untranslated

From: Meiyo Peng
Subject: Re: Some manual @ref @xref @pxref fail when untranslated
Date: Thu, 23 May 2019 12:05:24 +0800

Hi Florian,

pelzflorian (Florian Pelz) writes:

> Meiyo Peng reports at 
> <>
> On Tue, May 14, 2019 at 10:29:35AM +0800, Meiyo Peng wrote:
>> I just find out that the @pxref{Packages with Multiple Outputs} in
>> doc/contributing.texi has to be translated.  Or I will get an error
>> while running make:
>> #+begin_example
>>   doc/contributing.zh_CN.texi:567: @pxref reference to nonexistent node 
>> `Packages with Multiple Outputs'
>> #+end_example
>> I guess it's because the node name is in doc/guix.texi (another file
>> than doc/contributing.texi).  Any idea?
> The reason appears to be that when not translating (using the first
> attached patch that reverts back to @pxref{Packages with Multiple
> Outputs}), po4a-translate transforms
> @item
> Take a look at the profile reported by @command{guix size}
> (@pxref{Invoking guix size}).  This will allow you to notice references
> to other packages unwillingly retained.  It may also help determine
> whether to split the package (@pxref{Packages with Multiple Outputs}),
> and which optional dependencies should be used.  In particular, avoid adding
> @code{texlive} as a dependency: because of its extreme size, use
> @code{texlive-tiny} or @code{texlive-union} instead.
> to
> @item
> address@hidden address@hidden guix
> address@hidden
> with Multiple
> address@hidden@address@hidden
> with the pxref split over three lines because the surrounding context
> has no space characters.  doc/’s xref_command can only deal
> with two lines however.

There is no space separator for Chinese words.  Typesetting of CJK
languages is always a headache for FLOSS developers.

> The second attached patch makes xref_command grep three-line
> references too, so it finds the translation, *however* I cannot get
> this multiline sed to actually insert the translation into three line
> references.  Perhaps it would be better to just replace this complex
> xref_command with Guile code?  I will not do it however.

Thank you for the work.  I have found only one such case in the Guix
manual, so that's fine.  I can manually translate this @pxref.

Meiyo Peng

reply via email to

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