Re: Localized English words ('See', 'see', 'Short Table of Contents') (TeX output)
Jamenson Espindula <[email protected]> Tue, 3 Mar 2026 22:22:54 -0300
| Newsgroups | gmane.comp.tex.texinfo.general |
|---|---|
| Message-ID | <CAOW_YOn1ttzWHfFLrbbOwdnmVvo3uANjVMkkuACYcRmGf6+88w@mail.gmail.com> |
Em ter., 3 de mar. de 2026 =C3=A0s 14:43, Patrice Dumas <[email protected]> = escreveu: > > On Tue, Mar 03, 2026 at 03:01:44AM -0300, Jamenson Espindula wrote: > > Hi all. > > > > Operating System: Linux From Scratch (LFS) 12.4 - System V Edition > > texi2any (GNU texinfo) 7.2 > > > > I just finished translating the manual for GNU Texinfo into Brazilian > > Portuguese. > > > > However, I need to change some words in the output (I generated the > > HTML version, only for inspections). > > The HTML version is not generated by TeX using 'texinfo.tex'. It is > generated by texi2any, a different program: > https://www.gnu.org/software/texinfo/manual/texinfo/html_node/Generic-Tra= nslator-texi2any.html > > The TeX 'texinfo.tex' is used when generating PDF, by using texi2pdf. > > > I found a thread that (almost) discusses the same subject: > > https://lists.gnu.org/archive/html/help-texinfo/2025-12/msg00001.html > > > > Different from that, I made some tests. I have a 'texinfo.tex' file in > > my operating system at '/usr/share/texmf/tex/texinfo/texinfo.tex'. > > > > In my 'texinfo.pt_BR.texi', in the first line, I just deleted the > > '\input texinfo.tex @c -*-texinfo-*-' line. > > > > I did expect an error from texi2any (texi2any --html --no-split > > --output=3Dteste-mono.html texinfo.pt_BR.texi). > > > > However, surprisingly, 'teste-mono.html' was output! > > texi2any do not need this line, it is needed by TeX, called through > texi2pdf. > > > That made me think '/usr/share/texmf/tex/texinfo/texinfo.tex' was not > > used. So, which 'texinfo.tex' was used? > > None when outputing HTML. > > > Same about 'txi-pt.tex' (/usr/share/texmf/tex/texinfo/txi-pt.tex). I > > need some different words from that file ('txi-pt.tex') and I can not > > get it. What am I missing? > > > > Please, in the response, tell me what commands to issue. :) > > texi2any is the right one for HTML. With texi2any, the translations of > words such as See, ... in the HTML output is done by using gettext and > translations managed by the translation project. This is explained > here: > > https://www.gnu.org/software/texinfo/manual/texinfo/html_node/Internation= alization-of-Document-Strings.html > > The corresponding page in the translation project is here: > https://translationproject.org/domain/texinfo_document.html > > If you want to change the translated strings in HTML output, it is > possible, but then you need to use the texi2any Perl customization API. > It is explained here: > https://www.gnu.org/software/texinfo/manual/texi2any_api/html_node/Transl= ated-Strings-Customization.html > > This is not straightforward, therefore, but should be doable with some > knowledge of Perl. > > -- > Pat Thank you, Patrice, for your reply. I am not a programmer. I am just a translator. I know nothing about programming in Perl, or in any other programming language. Please, as an example, could you write here the _exact commands_ I should emit to get 'See' translated as 'Veja-se'? Thank you in advance. Jamenson Espindula