Em qua., 4 de mar. de 2026 às 20:40, Patrice Dumas <[email protected]> escreveu: > > On Tue, Mar 03, 2026 at 10:22:54PM -0300, Jamenson Espindula wrote: > > > > Please, as an example, could you write here the _exact commands_ I > > should emit to get 'See' translated as 'Veja-se'? > > I attached an init file that can be used to set the translations. > texi2any should be called like that to use the init file: > > texi2any --html --init-file t2a_modify_translations.pm my_manual.texi > > The strings to translate are commented-out, like > # 'Next' => {'NodeNext direction string' => ''}, > You should replace the last string by the translation, as shown for > the following example: > 'See {reference_name}' => {'' => 'Veja-se {reference_name}'}, > > I collected the strings to translate by converting some manual. But the > string for your manual may be different. To get the strings to be > translated, you can use the same init file and uncomment the 9 lines > after the line: > # uncomment next lines to have the strings to translate being printed > > Then the non translated string that are output by texi2any will be > output on the standard error, with the same format as the commented-out > strings as explained above. > > -- > Pat Thank you Patrice for your patience and help.
I confirm that the texi2any '--init-file t2a_modify_translations.pm' option works perfectly. Some changes were mandatory: 'pt' does not work, as the input file, 'texinfo.pt_BR.texi', has an '@documentlanguage pt_BR' Texinfo @-command. That said, some words are being put in the HTML with strange characters. Below are some examples: Sumário should be Sumário SumarÃssimo should be Sumaríssimo However, some words are fine. Below is two lines to help understand: <link href="#SEC_Contents" rel="contents" title="Sumário"> <- that line is wrong <link href="#Condi_00e7_00f5es-de-C_00f3pia" rel="next" title="Condições de Cópia"> <- that line is fine Indeed, the HTML output seems to lack the idiom statement: <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> But, it has an statement about the body of the document: <body lang="pt_BR"> Please, how can I solve that issue? Thank you once more! Jamenson Espindula
