On Mon, Feb 10, 2025 at 03:11:03PM +0100, [email protected] wrote:
> However, any customization of transliteration bears the risk of
> cross-references across manuals being non-functional. That's why it is
> necessary to settle on a choice that is good enough but that cannot be
> perfect for all the users. In particular, we cannot really have
> different possibilities based on the user locale or @documentlanguage,
> because there is no reason for those to be the same where a
> cross-reference is generated. It could be possible to add the
> information to htmlxref.cnf. I doubt that this would be used
> much, but we could accept patches for that kind of functionality.
While playing with this I found a bug. Line numbers in htmlxref.cnf may
not be correctly reported.
I created a file under a top-level test directory, then linked htmlxref.cnf
with "ln -s ../util/htmlxref.cnf .".
I then edited htmlxref.cnf to see what happens for an unknown "type":
diff --git a/util/htmlxref.cnf b/util/htmlxref.cnf
index da6d86314e..1dd3ee345d 100644
--- a/util/htmlxref.cnf
+++ b/util/htmlxref.cnf
@@ -70,8 +70,8 @@ automake node ${GS}/automake/manual/html_node/
avl node http://adtinfo.org/libavl.html/
-bash mono ${GS}/bash/manual/bash.html
-bash node ${GS}/bash/manual/html_node/
+bash mono.utf8 ${GS}/bashx/manual/bash.html
+bash node.utf8 ${GS}/bashx/manual/html_node/
BINUTILS = https://sourceware.org/binutils/docs
binutils mono ${BINUTILS}/binutils.html
Running texi2any on a test file, with:
$ ../tta/perl/texi2any.pl test.texi --html --no-split
I get the error messages:
./htmlxref.cnf:73: warning: unrecognised type: mono.utf8
./htmlxref.cnf:74: warning: unrecognised type: node.utf8
./htmlxref.cnf:874: warning: unrecognised type: mono.utf8
./htmlxref.cnf:875: warning: unrecognised type: node.utf8
./htmlxref.cnf:1675: warning: unrecognised type: mono.utf8
./htmlxref.cnf:1676: warning: unrecognised type: node.utf8
../tta/perl//../../util/htmlxref.cnf:3277: warning: unrecognised type: mono.utf8
../tta/perl//../../util/htmlxref.cnf:3278: warning: unrecognised type: node.utf8
The lines 73 and 74 are correct, but 874, 1675, etc. are completely wrong.
I note that the edition of htmlxref.cnf I am using has exactly 801 lines
so it is as if the line counter for htmlxref.cnf is not reset when a new
file is read.