bug-texinfo
[Top][All Lists]
Advanced

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

Re: bug with anchors containing special characters in split HTML output


From: Patrice Dumas
Subject: Re: bug with anchors containing special characters in split HTML output
Date: Sat, 1 Nov 2008 18:01:05 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On Wed, Oct 22, 2008 at 11:11:14PM +0200, Thorsten Meyer wrote:
> Hi,
> 
> when
>   - output is relocated to another directory (e.g. --output HTML)
> then
>   - references to this anchor do not work in html, because the html tag
> does not point to the right directory (i.e. HTML instead of a directory
> with the name of the info file)

As Karl said, the issue is not with special characters, but with the
manual name (sample) in the @ref{mi-ma,,meine mami,sample} invocation.
The result follows the specification for HTML Xrefs, see the node
'HTML Xref Link Basics' in the texinfo manual.

Also note that fiddling with the manual argument won't lead to something
different, since:

   Any directory part in the filename argument of the source
 cross-reference command is ignored.  Thus, address@hidden,,,../foo}' and
 address@hidden,,,foo}' both use `foo' as the manual name.  This is because any
 such attempted hardwiring of the directory is very unlikely to be
 useful for both Info and HTML output.

In my tests, both texi2html and makeinfo --html do the right thing.
It could be possible to do something when the cross-reference manual
name is the same than the current manual, but I don't think it would be
right.

Another possible change would be to have the link relative to the
directory where the texinfo file is, so that the link would be 
 ../../sample/mi_002dma.html#mi_002dma
with an additional ../ because the manual is in the HTML/ subdirectory,
instead of 
 ../sample/mi_002dma.html#mi_002dma

But I think it is better to avoid such complications, this issue popped
up before about images, and it was decided that the links were
considered to be relative to the output directory irrespective of the 
--output switch.

--
Pat




reply via email to

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