Re: Re: Localized English words ('See', 'see', 'Short Table of Contents') (TeX output)
Jamenson Espindula <[email protected]> Thu, 5 Mar 2026 01:13:29 -0300
| Newsgroups | gmane.comp.tex.texinfo.general |
|---|---|
| Message-ID | <CAOW_YOmb9hGhLCLASu1kU0Tg8SUzGm0GTje9Z+WhojDsRQuf1w@mail.gmail.com> |
Em qua., 4 de mar. de 2026 =C3=A0s 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' =3D> {'NodeNext direction string' =3D> ''}, > You should replace the last string by the translation, as shown for > the following example: > 'See {reference_name}' =3D> {'' =3D> '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=C3=83=C2=A1rio should be Sum=C3=A1rio Sumar=C3=83=C2=ADssimo should be Sumar=C3=ADssimo However, some words are fine. Below is two lines to help understand: <link href=3D"#SEC_Contents" rel=3D"contents" title=3D"Sum=C3=83=C2=A1rio">= <- that line is wrong <link href=3D"#Condi_00e7_00f5es-de-C_00f3pia" rel=3D"next" title=3D"Condi=C3=A7=C3=B5es de C=C3=B3pia"> <- that line is fine Indeed, the HTML output seems to lack the idiom statement: <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8"> But, it has an statement about the body of the document: <body lang=3D"pt_BR"> Please, how can I solve that issue? Thank you once more! Jamenson Espindula