Em ter., 3 de mar. de 2026 às 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-Translator-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=teste-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/Internationalization-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/Translated-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
