bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

missing @anchor mangling for docbook output


From: Per Bothner
Subject: missing @anchor mangling for docbook output
Date: Tue, 26 Oct 2010 08:38:14 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Thunderbird/3.1.4

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>
address@hidden tmp]$

Notice <anchor id="Creating new Java arrays"> (using spaces)
vs <xref linkend="Creating-new-Java-arrays"></xref> (using hyphens).
--
        --Per Bothner
address@hidden   http://per.bothner.com/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]