Re: Is it ok to use @ref in cases where @xref/@pxref can be used?
Denis 'GNUtoo' Carikli <[email protected]> Sat, 23 Nov 2024 15:26:06 +0100
| Newsgroups | gmane.comp.tex.texinfo.general |
|---|---|
| Message-ID | <20241123152606.7a0d2bca@primary_laptop> |
On Sat, 23 Nov 2024 14:30:52 +0100 Patrice Dumas <[email protected]> wrote: > On Sat, Nov 23, 2024 at 01:12:11AM +0100, Denis 'GNUtoo' Carikli > wrote: > > Hi, > > > > Are there project that avoided things like xref/pxref in favor of > > ref? Did that create issues (with translations to other formats or > > languages for instance)? > > I am not part of the Lilypond project, but my understanding is that > they use @ref{} only. I indeed found a lot of @ref{} inside lilypond, however they also have @xref{} and I found this commit that looks relatively recent: > f34f86e83e97056a8b176e179669c27a3b554ad5 > Author: Werner Lemberg <[email protected]> > Date: Fri Mar 31 10:43:33 2023 +0200 > > running.itely: Use `@xref` and `@pxref` where appropriate > > diff --git a/Documentation/en/usage/running.itely > b/Documentation/en/usage/running.itely index a70ae80add..c5397067ae > 100644 --- a/Documentation/en/usage/running.itely > +++ b/Documentation/en/usage/running.itely > @@ -226,7 +226,7 @@ The following options are supported. > @table @asis > > @item @code{-d}, @code{--define-default=}@var{var}[@code{=}@var{val}] > -See @ref{Advanced command-line options for LilyPond}. > +@xref{Advanced command-line options for LilyPond}. So maybe they do accept @ref to lower the bar required to contribute and then convert them to @xref/@pxref afterward as there are still a lot of 'See @ref'. > They have a system for the translation of manuals that seems to be > quite elaborate, so I guesss that they do not miss the in-built > translation of See in @xref{} based on @documentlanguage. That looks very interesting indeed, especially given the amount of language they have and the size of the documentation. Denis.
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAmdB5f4ACgkQX138wUF3 4mNfcQ/+OudH5/xW+WpEilaWpOWYe6r7fcpASrQFHw98V6q/tVofJDAwTlBvbXSu cmGlgC/+00F4r1sfAjPgVH4Jo+Akqzk+9iTFPGri9ianR81dqbdxuo8pbtPuZCnX /do/0UB/ZYUbrvGvhugn12hxmghF1/zBELBp73IEZLpIm+oKjh4rO0V6Jh+xVq8u SC85e5xyZ3CVuxWvwTXHULhnjfISFSoXSGzrqpCVkbvc6O+Rk2Bfw8iSI09x2vOq uCi14uklB1SLIPI+wQFfWdqfWN9w2h0KZhwJDq/gL/UVPnSErdeYbbTFc3ReUKyN SppF8X4+NtyizG5hDx1jxZmfASB2bKHMqqd0tIm31KPQwrakm5wE6MpNdwcap3oK 4ePg+j1/iBTQWc2Sfk5kt+b95Sx1SiCU+nkRdQiD9ozslLadCgJn1eyDf0B20yDh 3F5PVhz+vA70ks3xnD6dUcp4savGjdS0OO/xPEcvR5RJO0Y2GZQcd/rN5fbii1Zh fRtwHzjhabXuGjPyH9M96zphKlFjh+vcbtssdYHQlPV6ideCgakEhiiVTnodURlS sdTwIL3CmlS6mMfLfVP2nROb0hPmhR849mRKPhf0n3rOnMbYuEyxekRACUXkF/xW bh5Dr0hR2zT5uCA671u/WeEX+dUSgcG/TZxe6I2vVQ1fvrFQJ40= =Bc/x -----END PGP SIGNATURE-----