On Thu, Feb 06, 2025 at 07:38:58PM +0100, [email protected] wrote:
> On Thu, Feb 06, 2025 at 05:19:17PM +0000, Gavin Smith wrote:
> > >
> > > .... To handle such cases, texi2any offers the
> > > --transliterate-file-names command line option. This option enables
> > > transliteration of node names into ASCII characters for the purposes of
> > > file name creation and referencing. The transliteration is based on
> > > phonetic principles, which makes the generated file names more easily
> > > understandable.
> > >
> > > This is the default.
> >
> > Did this change to be the default at some point?
>
> Here is the initial discussion, I think:
> https://lists.gnu.org/archive/html/bug-texinfo/2005-10/msg00001.html
> Text::Unidecode enters here:
> https://lists.gnu.org/archive/html/bug-texinfo/2006-01/msg00066.html
Well, I checked the sources of Texinfo 4.13 and transliterate_file_names
appears to be off by default:
makeinfo/makeinfo.h:
/* Transliterate file names into ASCII */
DECLARE (int, transliterate_file_names, 0);
DECLARE is a macro that can use the third argument as the initial
value.
Transliteration is only done if this variable is non-zero:
makeinfo/lang.c:
const char *
lang_transliterate_char (byte_t ch)
{
if (transliterate_file_names
&& document_encoding_code != no_encoding)
return cm_search_iso_map_char (ch);
return NULL;
}
I haven't compiled and tested makeinfo 4.13 to check, but this appears to
confirm that the option wasn't on for this version (from 2008).
I checked Texinfo 5.2 (September 2013) and it was on by default for that
release, with 'TRANSLITERATE_FILE_NAMES' => 1 in %defaults in
tp/Texinfo/Convert/HTML.pm.
So apparently the default setting changed with Texinfo 5, without
a corresponding change to the documentation.