From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Lepiller Subject: Re: Some manual @ref @xref @pxref fail when untranslated Date: Sat, 18 May 2019 09:40:42 +0200 Message-ID: <6AC44E83-CD88-4DB6-AA71-A134378DAAC9@lepiller.eu> References: <87sgu8hmmr.fsf@gnu.org> <20190423155219.03d067f5@sybil.lepiller.eu> <87zhof3mod.fsf@riseup.net> <9D0C4E9F-D30E-426B-A079-C71F233F77F3@lepiller.eu> <878sv922gg.fsf@riseup.net> <20190517224826.4cy2aymsxaa5sehz@pelzflorian.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20190517224826.4cy2aymsxaa5sehz@pelzflorian.localdomain> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: "pelzflorian (Florian Pelz)" , Meiyo Peng Cc: Guix-devel , bug-guix@gnu.org List-Id: bug-guix.gnu.org Le 18 mai 2019 00:48:26 GMT+02:00, "pelzflorian (Florian Pelz)" a =C3=A9crit : >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=2Etexi has to be translated=2E Or I will get an error >> while running make: >>=20 >> #+begin_example >> doc/contributing=2Ezh_CN=2Etexi:567: @pxref reference to nonexistent >node `Packages with Multiple Outputs' >> #+end_example >>=20 >> I guess it's because the node name is in doc/guix=2Etexi (another file >> than doc/contributing=2Etexi)=2E Any idea? >>=20 > >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})=2E This will allow you to notice references >to other packages unwillingly retained=2E It may also help determine >whether to split the package (@pxref{Packages with Multiple Outputs}), >and which optional dependencies should be used=2E In particular, avoid >adding >@code{texlive} as a dependency: because of its extreme size, use >@code{texlive-tiny} or @code{texlive-union} instead=2E > >to > >@item >=E7=9C=8B=E4=B8=80=E4=B8=8B@command{guix size}=EF=BC=88@pxref{Invoking gu= ix >size}=EF=BC=89=E7=9A=84=E5=88=86=E6=9E=90=E6=8A=A5=E5=91=8A=E3=80=82=E8= =BF=99=E4=BC=9A=E8=AE=A9=E4=BD=A0=E6=B3=A8=E6=84=8F=E5=88=B0=E5=AF=B9=E5=85= =B6=E5=AE=83=E8=BD=AF=E4=BB=B6=E5=8C=85=E6=97=A0=E6=84=8F=E4=B8=AD=E7=9A=84= =E5=BC=95=E7=94=A8=E3=80=82=E5=AE=83=E4=B9=9F=E5=8F=AF=E4=BB=A5=E5=B8=AE=E5= =8A=A9=E5=86=B3=E5=AE=9A=E6=98=AF=E5=90=A6=E8=A6=81=E6=8A=8A=E4=B8=80=E4=B8= =AA=E8=BD=AF=E4=BB=B6=E5=8C=85=E5=88=86=E5=89=B2=E6=88=90=E5=87=A0=E4=B8=AA= =E8=BE=93=E5=87=BA=EF=BC=88@pxref{Packages >with Multiple >Outputs}=EF=BC=89=EF=BC=8C=E4=BB=A5=E5=8F=8A=E9=9C=80=E8=A6=81=E4=BD=BF= =E7=94=A8=E5=93=AA=E4=BA=9B=E5=8F=AF=E9=80=89=E7=9A=84=E4=BE=9D=E8=B5=96=E3= =80=82=E7=89=B9=E5=88=AB=E5=9C=B0=EF=BC=8C=E9=81=BF=E5=85=8D=E6=8A=8A@code{= texlive}=E6=B7=BB=E5=8A=A0=E4=B8=BA=E4=BE=9D=E8=B5=96=EF=BC=9A=E5=9B=A0=E4= =B8=BA=E5=AE=83=E5=A4=AA=E5=A4=A7=E4=BA=86=EF=BC=8C=E8=AF=B7=E4=BD=BF=E7=94= =A8@code{texlive-tiny}=E6=88=96@code{texlive-union}=E4=BB=A3=E6=9B=BF=E5=AE= =83=E3=80=82 > >with the pxref split over three lines because the surrounding context >has no space characters=2E doc/local=2Emk=E2=80=99s xref_command can onl= y deal >with two lines however=2E > >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=2E Perhaps it would be better to just replace this complex >xref_command with Guile code? I will not do it however=2E > >I am Cc=E2=80=99ing the bug-guix@gnu=2Eorg; I hope this is OK=2E > >Regards, >Florian We have some guile code for doing exactly that in guix pull, so we could r= euse it here=2E