[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Texi2html-bug] 'Contents' link in about page uses outdir/outdir/fil
From: |
Reinhold Kainhofer |
Subject: |
Re: [Texi2html-bug] 'Contents' link in about page uses outdir/outdir/filename_toc.html |
Date: |
Fri, 8 Aug 2008 12:56:45 +0200 |
User-agent: |
KMail/1.9.9 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Patrice,
Am Donnerstag, 7. August 2008 schrieb Reinhold Kainhofer:
> If you use --out=outdir together with split=section, then in the about page
> the [Contents] link at the top of the page points to
> outdir/filename_toc.html rather than to the correct filename_toc.html:
I've now done a little digging:
The 'file' keys of the %misc_page_infos hash (line 6956 of texi2html.pl) uses
the file name relative to the .texi file and unfortunately that path is used
later on in the call to file_target_href. Since that function assumes that
the path passed as argument is relative to the output file, things fail as
soon as the output is placed in a subdirectory.
All other calls to file_target_href use the file name relative to the output
directory, only the header navigation buttons on the special pages pass the
path relative to the input file.
I see two possible solutions:
1) Add a 'relative_file' key to %misc_page_infos, which specifies the file
name relative to the output file, and use that key in the call to
file_target_href rather than the actual file path relative to the input file.
That's the easy hack, patch is attached.
2) Extend file_target_href so that it compares the orig and dest pathes and
turns the dest path into a relative path. I couldn't find a function in
texi2html to do this, so I didn't implement a patch for this.
Cheers,
Reinhold
- --
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
* Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
* K Desktop Environment, http://www.kde.org, KOrganizer maintainer
* Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFInCZxTqjEwhXvPN0RAsS3AJ4943PjXM8L1oThuUrk5RLsrjhpmgCcDvVy
sVx7jZjmmDrQXn9+HnEMwKk=
=K9B0
-----END PGP SIGNATURE-----
2008-08-08_texi2html_fix_abt_wrong_navlink.patch
Description: Text Data