Artifacts Associated With Ticket 1c722347fe
Ticket change [83e2711d38] (rid 257362) by anonymous on 2026-10-06 21:28:20:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
tools/tcltk-man2html.tcl and tcltk-man2html-utils.tcl generate HTML files for the user documentation including cross-references and index-pages. This tool-set writes wrong target values for several name, id and href-anchor, which results in about 580 not linked pages. A target can not include a space or newline (e.g. command with sub-command, like "file exists"). Usually proc "nospace-text" is called, but not at every needed place (after "#"). Additionally this proc replaces only spaces. But there are pages with more than (single) spaces and/or newlines. At least the letter "3" is needed for keyword "3D". My propose correct these points and add a meta-viewport in the HTML-head section. Please see the attached ZIP with my changes (complete files, because I can't use "diff -u"). The problems of not right ordered/cascaded tags ol, dt, dd, dl, and dt I can't solve, sorry. Best greetings from Germany, Thomas [TWu]
- foundin initialized to: "50/9.0"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to:
Tool generate wrong links for targets containing spaces/newlines
- type initialized to: "Bug"
Add attachment "tools_tcltk-man2html.zip" [c28a55925c] (rid 257363) by anonymous on 2026-10-06 21:37:45.
Ticket change [3cbc223ebf] (rid 257429) by anonymous on 2026-10-07 20:40:54:
- comment changed to:
tools/tcltk-man2html.tcl and tcltk-man2html-utils.tcl generate HTML files for the user documentation including cross-references and index-pages. This tool-set writes wrong target values for several name, id and href-anchor, which results in about 580 not linked pages. A target can not include a space or newline (e.g. command with sub-command, like "file exists"). Usually proc "nospace-text" is called, but not at every needed place (after "#"). Additionally this proc replaces only spaces. But there are pages with more than (single) spaces and/or newlines. At least the letter "3" is needed for keyword "3D". My propose correct these points and add a meta-viewport in the HTML-head section. Please see the attached ZIP with my changes (complete files, because I can't use "diff -u"). The problems of not right ordered/cascaded tags ol, dd, dl, and dt I can't solve, sorry. Best greetings from Germany, Thomas [TWu]
- icomment:
I'm sorry to have a left-out copy-paste mistake in the utils-script. After the inserted opening bracket one "nospace-text " was forgotten.
- login: "anonymous"
- mimetype: "text/plain"
- username: "Thomas [TWu]"
- comment changed to:
Ticket change [1bcf5e6b06] (rid 259412) by serhiy.storchaka on 2026-10-20 12:57:54:
- foundin changed to: "9.1.0"
- icomment:
Thank you, Thomas. The attached ZIP is not available to me, so I made the fix from your description. Confirmed on main: a link check of the HTML generated for Tcl and Tk finds 302 dead anchors and one dead page. The links in the KEYWORDS sections did not go through <tt>nospace-text</tt>, which also replaced only single spaces (some keywords contain a newline), and there was no Keywords page for "3D". Proposed fix in branch [/timeline?r=man2html-keyword-anchors|man2html-keyword-anchors]: use <tt>nospace-text</tt> for these links, map any whitespace in it, and add index pages for keywords starting with a digit. The link check then finds no dead links; otherwise only the link targets change. The meta viewport is the separate request [7f6005a867]; the nesting of ol, dd, dl and dt is not changed.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
Ticket change [0c0a9d8163] (rid 259581) by anonymous on 2026-10-20 20:57:05:
- icomment:
Thank You very much, Serhiy! Unfortunately this is not the complete request. The anchors are left. Probably our URI-check found only the connection to the main commands or does not check the name=/id= values at all as local targets from other pages. I use "CSS HTML Validator 2026" to found all problems in the doc of 9.0.4 version. I save my solution to https://blindenfreizeiten.de/TCL/tools_tcltk-man2html.zip so You can make a diff. Also the line-breaks are not handled. Please have a look at it. Many thanks again, Thomas [TWu]
- login: "anonymous"
- mimetype: "text/plain"
- username: "Thomas [TWu]"
- icomment:
Ticket change [bc4d085dd0] (rid 259634) by serhiy.storchaka on 2026-10-20 21:48:56:
- icomment:
Thank you, Thomas, the ZIP is available now. Most of it was already in the branch (<tt>nospace-text</tt> maps any whitespace, including newlines, and there are Keywords pages for names starting with a digit). The remaining links now also go through <tt>nospace-text</tt> in [d61292cc5f]: the three <tt>#$here</tt> links of the tables of contents, the <tt>M$name</tt> standard option link and the <tt>#$manual(...-id-...)</tt> cross-reference. Their targets already used it, so for the current pages this makes no difference. In the HTML that the branch generates for Tcl and Tk there are no name/id or href values with whitespace and no links to missing anchors. The published 9.0.4 pages you checked were generated before this fix: the branch is not merged yet, and it is not in 9.0. The meta viewport is in branch [/timeline?r=man2html-meta-viewport|man2html-meta-viewport], for [7f6005a867].
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [2a4775e22f] (rid 259809) by anonymous on 2026-10-21 16:26:38:
- icomment:
I accept the both fix-points for version 9.1.0 - thank You, Serhiy! @Harald: Can they merged too? I will look on the remaining dl, dd, dt and ol fails, open a new ticket on finding a solution...
- login: "anonymous"
- mimetype: "text/plain"
- username: "Thomas [TWu]"
- icomment:
Ticket change [a7a3c93087] (rid 259810) by serhiy.storchaka on 2026-10-21 17:17:16:
- icomment:
The meta viewport is merged now, into trunk ([785fa0c704]), core-9-0-branch and core-8-6-branch.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- icomment: