On Sat, Jun 28, 2025 at 05:28:07PM +0200, Patrice Dumas wrote: > Hello, > > In the Info reader, the node name for "Index" is checked in addition to > the presence of an index (with (node->flags & N_IsIndex), and possibly > the presence of non empty menu). > > I think that it is wrong to do that, firstly because having (node->flags & > N_IsIndex) > is more accurante, an Index in a node name after the indices could lead > to the indices not being found, and if there is no "Index" in nodes > names, the indices will not be found. In addition "Index" is good to > find indices for some languages only. > > What about using (node->flags & N_IsIndex) only?
As I remember, the marker for an index node (^@^H[index^@^H]) was not added by older versions of texi2any/makeinfo. So there are Info files out there that do not have such a marker in Info nodes. So what I suggest (if it is not the case already), is that if there are any nodes with such a marker, only the marker is used to determine which nodes are index nodes. Only if no nodes are thus marked, should the "Index" string in the node name then indicate an index node.
