When generating --docbook output, the name in an @anchor
does not get mangled, but the link does.
Using the latest texinfo from cvs:
$ cat test.texi
@setfilename test.info
@documentencoding UTF-8
@settitle A Test manual
@node Top, , (dir), (dir)
@top A Test manual
Allocating arrays (@pxref{Creating new Java arrays}) uses the same pattern.
@subsection Creating new Java arrays
@anchor{Creating new Java arrays}
$ /home/bothner/GNU/texinfo-cvs/+installed+/bin/texi2any --docbook
test.texi
$ cat test.xml
<?xml version="1.0"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
<!ENTITY tex "TeX">
<!ENTITY latex "LaTeX">
]>
<book id="test.xml" lang="en">
<title>A Test manual</title>
<chapter label="" xreflabel="A Test manual" id="Top">
<title>A Test manual</title>
<para>Allocating arrays (see <xref
linkend="Creating-new-Java-arrays"></xref>) uses the same pattern.
</para>
</chapter>
<sect2 label="1">
<title>Creating new Java arrays</title>
<para><anchor id="Creating new Java arrays"></anchor>
</para></sect2>
</book>
[both...@lenny tmp]$
Notice <anchor id="Creating new Java arrays"> (using spaces)
vs <xref linkend="Creating-new-Java-arrays"></xref> (using hyphens).
--
--Per Bothner
[email protected] http://per.bothner.com/