2008-04-21 11:39:34 |
Savvas Radevic |
description |
Binary package hint: htmldoc
Hardy heron 8.04 (alpha5 to release candidate, updated)
htmldoc:
Installed: 1.8.27-3
Candidate: 1.8.27-3
Version table:
*** 1.8.27-3 0
500 http://archive.ubuntu.com hardy/main Packages
100 /var/lib/dpkg/status
It appears that htmldoc doesn't "see" the difference of anchor bookmarks that belong to two different documents but with the same anchor name.
Example:
I tried to create a personal PDF from the Tcl 8.5 manual page, so I put everything into a folder:
wget -nd -np -N -r --level=1 -k -p http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm
then ran htmldoc, selected input type as "web page" added the contents.htm as a first page then added the rest of the .htm files.
I've set it to be output as "tcl-commands.pdf" in the same folder.
The conversion was successful, and everything was linked OK, except for one problem:
The anchor bookmarks were linked to the wrong page and to the wrong place, i.e. "string map ?-nocase? mapping string" or http://tcl.tk/man/tcl8.5/TclCmd/string.htm#M39 would be linked to http://tcl.tk/man/tcl8.5/TclCmd/tclvars.htm#M39
This only happens with multiple htm conversion. If I convert just a single htm ( for example http://tcl.tk/man/tcl8.5/TclCmd/string.htm ) to PDF the anchor bookmarks within the page are correctly linked. |
Binary package hint: htmldoc
Hardy heron 8.04 (alpha5 to release candidate, updated)
htmldoc:
Installed: 1.8.27-3
Candidate: 1.8.27-3
Version table:
*** 1.8.27-3 0
500 http://archive.ubuntu.com hardy/main Packages
100 /var/lib/dpkg/status
It appears that htmldoc doesn't "see" the difference of anchor bookmarks that belong to two different documents but with the same anchor name.
Example:
I tried to create a personal PDF from the Tcl 8.5 manual page, so I put everything into a folder:
wget -nd -np -N -r --level=1 -k -p http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm
then ran htmldoc, selected input type as "web page" added the contents.htm as a first page then added the rest of the .htm files.
I've set it to be output as "tcl-commands.pdf" in the same folder.
The conversion was successful, and everything was linked OK, except for one problem:
The anchor bookmarks were linked to the wrong page and to the wrong place, i.e. "string map ?-nocase? mapping string" linked to the wrong page of http://tcl.tk/man/tcl8.5/TclCmd/tclvars.htm#M39 instead of the correct one of http://tcl.tk/man/tcl8.5/TclCmd/string.htm#M39
This only happens with multiple htm conversion. If I convert just a single htm ( for example http://tcl.tk/man/tcl8.5/TclCmd/string.htm ) to PDF the anchor bookmarks within the page are correctly linked. |
|