Skip to content
Tcl Source Code Artifact [4c02825f5e]
Login

Artifact [4c02825f5e]

Artifact 4c02825f5e88de29c8714be71f7a30bd94eed585:

Ticket change [4c02825f5e] - New ticket [3600058fffffffff|3600058fff] <i>Doctools nroff/groff output not supported by tcltk-man2html</i>. by twylite on 2013-01-09 09:20:41.
D 2013-01-09T09:20:41
J assignee hobbs
J cmimetype text/plain
J comment Tcl's\stools/tcltk-man2html\sis\sused\sto\sgenerate\sHTML\sdocumentation\sfrom\snroff/groff\ssources\son\smultiple\splatforms.\s\sIt\ssupports\sa\ssubset\sof\snroff\sthat\sis\sused\sby\sthe\sman\spages\sin\sthe\sTcl\score\sand\sbundled\spackages.\n\nDoctools,\sas\sused\sfor\sdocumentation\sin\sTcllib,\sproduces\snroff\soutput\sthat\sis\snot\ssupported\sby\stcltk-man2html.\s\sThis\smeans\sthat\sthe\sTcl\score\sutilities\sfor\sHTML\sdoc\sgeneration\scannot\salso\sgenerate\sTcllib\sdocumentation\sin\sthe\ssame\sstyle.\s\sIt\swould\sbe\sdesirable\sto\sextend\stcltk-man2html\sto\ssupport\sdoctools\soutput.\n\nThere\sare\sa\snumber\sof\sissues,\sand\scomplete\ssupport\swill\sentail\schanges\sto\stcltk-man2html\sand\sfixes\sto\sdoctools.\n\nPATCH\n\nFor\sall\sissues\sbelow\swith\sproposed\sfixes,\sthe\sfix\shas\sbeen\simplemented\sand\scan\sbe\sfound\son\sthe\sbranch\sbug-(thisbug)-td.\n\nBACKGROUND\n\nTcllib\snroff\sdocumentation\sis\sgenerated\susing\s'tclsh\ssak.tcl\sdoc\snroff'\swhich\splaces\sthe\s.n\sfiles\sin\sdoc/nroff.\s\sThe\sfiles\sare\sthen\smoved\sto\sbe\sdirectly\sunder\sdoc/\sso\sthat\sthey\scan\sbe\sfound\sby\stcltk-man2html,\swhich\sis\sinvoked\sas\s'tclsh\stcltk-man2html.tcl\s--tcl\s--pkgdir=..\\..\\\s--verbose=1'\n\nThe\stcltk-man2html\ssource\swas\smodified\sto\sprovide\smore\sdetailed\soutput\sin\ssome\scases.\n\n\nISSUE\s#1:\sSection\sname\swith\sno\sdescription\scrashes\n\n-----\nscanning\spage\sC:/User/Tcl_BUILD/tcl-8.6.0/tcllib/doc/pkg/doc/coro_auto.n\ncoro_auto:\sNAME:\soutput-name:\sbad\ssection\sname:\scoroutine::auto\s-\ncan't\sread\s"head":\sno\ssuch\svariable\ncan't\sread\s"head":\sno\ssuch\svariable\n\s\s\s\swhile\sexecuting\n"man-puts\s"$head\s&mdash;\s$tail""\n\s\s\s\s(procedure\s"output-name"\sline\s8)\n-----\n\nProposed\sfix:\sAdjust\sthe\sregex\sin\soutput-name\sto\snot\srequire\sa\sspace\safter\sthe\sdash\s(consume\s1\soptional\swhitespace).\n\n\nISSUE\s#2:\sDoctools\sescapes\ssingle\squote\sat\sstart\sof\sline\n\n-----\nscanning\spage\sC:/User/Tcl_BUILD/tcl-8.6.0/tcllib/doc/pkg/doc/csv.n\ncsv:\sprocess-text:\suncaught\sbackslash:\nIN\s{Takes\sa\s\\fImatrix\\fR\sobject\sfollowing\sthe\sAPI\sspecified\sfor\sthe\nstruct::matrix\spackage\sand\sreturns\sa\sstring\sin\sCSV\sformat\scontaining\nthese\svalues.\sThe\sseparator\scharacter\scan\sbe\sdefined\sby\sthe\scaller,\nbut\sthis\sis\soptional.\sThe\sdefault\sis\s",".\sThe\squoting\scharacter\ncan\sbe\sdefined\sby\sthe\scaller,\sbut\sthis\sis\soptional.\sThe\sdefault\sis\n\\'"'.\sEach\srow\sof\sthe\smatrix\sis\sconsidered\sa\srecord,\sthese\sare\nseparated\sby\snewlines\sin\sthe\sresult.\sThe\selements\sof\seach\srecord\sare\nformatted\sas\susual\s(via\s\\fB::csv::join\\fR).}\nOUT\s{Takes\sa\s<I>matrix</I>\sobject\sfollowing\sthe\sAPI\sspecified\sfor\sthe\nstruct::matrix\spackage\sand\sreturns\sa\sstring\sin\sCSV\sformat\scontaining\nthese\svalues.\sThe\sseparator\scharacter\scan\sbe\sdefined\sby\sthe\scaller,\nbut\sthis\sis\soptional.\sThe\sdefault\sis\s",".\sThe\squoting\scharacter\ncan\sbe\sdefined\sby\sthe\scaller,\sbut\sthis\sis\soptional.\sThe\sdefault\sis\n\\'"'.\sEach\srow\sof\sthe\smatrix\sis\sconsidered\sa\srecord,\sthese\sare\nseparated\sby\snewlines\sin\sthe\sresult.\sThe\selements\sof\seach\srecord\sare\nformatted\sas\susual\s(via\s\\fB::csv::join\\fR).}\n-----\n\ncsv.man\scontains:\s\n-----\nTakes\sa\slist\sof\svalues\sand\sreturns\sa\sstring\sin\sCSV\sformat\scontaining\nthese\svalues.\sThe\sseparator\scharacter\scan\sbe\sdefined\sby\sthe\scaller,\nbut\sthis\sis\soptional.\sThe\sdefault\sis\s",".\sThe\squoting\scharacter\scan\nbe\sdefined\sby\sthe\scaller,\sbut\sthis\sis\soptional.\sThe\sdefault\sis\s'"'.\n-----\n\ncsv.n\scontains:\s\n-----\nTakes\sa\s\\fImatrix\\fR\sobject\sfollowing\sthe\sAPI\sspecified\sfor\sthe\nstruct::matrix\spackage\sand\sreturns\sa\sstring\sin\sCSV\sformat\scontaining\nthese\svalues.\sThe\sseparator\scharacter\scan\sbe\sdefined\sby\sthe\scaller,\nbut\sthis\sis\soptional.\sThe\sdefault\sis\s",".\sThe\squoting\scharacter\ncan\sbe\sdefined\sby\sthe\scaller,\sbut\sthis\sis\soptional.\sThe\sdefault\sis\n\\'"'.\sEach\srow\sof\sthe\smatrix\sis\sconsidered\sa\srecord,\sthese\sare\nseparated\sby\snewlines\sin\sthe\sresult.\sThe\selements\sof\seach\srecord\sare\nformatted\sas\susual\s(via\s\\fB::csv::join\\fR).\n-----\n\nProposed\sfix:\sadd\spair\s(\s{\\'}\s"'"\s)\sto\scharmap\sin\sprocess-text.\n\n\nISSUE\s#3:\sDoctools\smay\sgenerate\sredundant\sfont\schanges,\swhich\sare\signored\sbut\sresult\sin\san\sunhandled\sbackslash\serror\n\n-----\nscanning\spage\sC:/User/Tcl_BUILD/tcl-8.6.0/tcllib/doc/pkg/doc/docidx.n\ndocidx:\sprocess-text:\simpotent\sfont\schange:\sIf\snot,\sthe\slist\sof\sper-object\ssearch\spaths\sis\ssearched.\sFor\seach\ndirectory\sin\sthe\slist\sthe\spackage\schecks\sif\sthat\sdirectory\scontains\sa\nfile\s"\\fIidx.\\fIfoo\\fR\\fR".\sIf\syes,\sthen\sthat\sfile\sis\staken\sas\sthe\nimplementation.\ndocidx:\sprocess-text:\suncaught\sbackslash:\sIN\s{If\snot,\sthe\slist\sof\sper-object\ssearch\spaths\sis\ssearched.\sFor\seach\ndirectory\sin\sthe\slist\sthe\spackage\schecks\sif\sthat\sdirectory\scontains\sa\nfile\s"\\fIidx.\\fIfoo\\fR\\fR".\sIf\syes,\sthen\sthat\sfile\sis\staken\sas\sthe\nimplementation.}\sOUT\s{If\snot,\sthe\slist\sof\sper-object\ssearch\spaths\sis\ssearched.\sFor\seach\ndirectory\sin\sthe\slist\sthe\spackage\schecks\sif\sthat\sdirectory\scontains\sa\nfile\s"<I>idx.foo</I>\\fR".\sIf\syes,\sthen\sthat\sfile\sis\staken\sas\sthe\nimplementation.}\n-----\n\nProposed\sfix:\sdoctools\sis\sarguably\sgenerating\sa\sredundant\s\\fR,\sbut\swe\sshouldn't\sbe\scrashing\sout\sbecause\sof\sit.\s\sThe\sfont\shandling\slogic\scould\sbe\srewritten\sto\sgive\severy\sspan\sof\stext\sterminated\sby\sa\s\\\\fx\sor\s\\\\f(xy\sits\sown\sopen\sand\sclose\sfonts,\sso\swe\scan\sgenerically\shandle\snested\sand\sredundant\scases.\n\n\nISSUE\s#4:\soops:\sCopyright\s(c)\n\nThere\sare\sa\snumber\sof\sthese\sdue\sto\sthe\svariety\sof\scopyright\sstatement\sstyles\sin\sTcllib.\n\nProposed\sfix:\sSupport\scommon\sstyles\s"Copyright\s(c)\sYEAR,\s..."\sand\s"Copyright\s(c)\sYEAR,YEAR,YEAR,...\s...",\sand\spossibly\s"YEAR-YEAR,YEAR,...".\s\sLess\scommon\sstyles\sshould\sbe\shandled\sby\swarning\s(as\scurrently)\sand\sfixing\sthe\ssource\sin\sTcllib.\n\n\nISSUE\s#5:\sCrash\sfrom\streating\sstring\sas\slist\n\n-----\nscanning\spage\sC:/User/Tcl_BUILD/tcl-8.6.0/tcllib/doc/pkg/doc/snitfaq.n\nlist\selement\sin\squotes\sfollowed\sby\s"INFO""\sinstead\sof\sspace\nlist\selement\sin\squotes\sfollowed\sby\s"INFO""\sinstead\sof\sspace\n\s\s\s\swhile\sexecuting\n"llength\s$rest"\n\s\s\s\s(procedure\s"make-manpage-section"\sline\s100)\n\s\s\s\sinvoked\sfrom\swithin\n"make-manpage-section\s$html\s$arg"\n\s\s\s\s(procedure\s"make-man-pages"\sline\s35)\n\s\s\s\sinvoked\sfrom\swithin\n"make-man-pages\s$webdir\s\s[list\s$tcltkdir/{$appdir}/doc/*.1\s"$tcltkdesc\sApplications"\sUserCmd\s\s"The\sinterpreters\swhich\simplement\s$cmd\nesc."]\s\s[plus-base\s..."\n\s\s\s\s("try"\sbody\sline\s94)\n-----\n\nProposed\sfix:\sIn\smake-manpage-section\sthe\s.SS\scase\sdoes\sa\scheck\s{[llength\s$rest]\s==\s0},\sbut\srest\sis\sa\sstring\s(not\snecessarily\sa\svalid\slist).\s\sCheck\sshould\sbe\s{$rest\seq\s{}}.\n\n\nISSUE\s#6:\sunrecognised\sformat\sdirective\sin\s.CS\sblock\n\n-----\nscanning\spage\sC:/User/Tcl_BUILD/tcl-8.6.0/tcllib/doc/pkg/doc/docidx_lang_intro.n\ndocidx_lang_intro:\smake-manpage-section:\sunrecognized\sformat\sdirective:\s...\ndocidx_lang_intro:\smake-manpage-section:\sunrecognized\sformat\sdirective:\s...\ndocidx_lang_intro:\sADVANCED\sSTRUCTURE:\soutput-directive:\sunexpected\s.CS\sformat:\n[<B>include\sFILE</B>]\n[<B>vset\sVAR\sVALUE</B>]\n[index_begin\sGROUPTITLE\sTITLE]\n\n[index_end]\n\ndocidx_lang_intro:\sADVANCED\sSTRUCTURE:\soutput-directive:\sunexpected\s.CE\n-----\n\ndocidx_lang_intro.n\scontains:\n-----\n.CS\n[\\fBinclude\sFILE\\fR]\n[\\fBvset\sVAR\sVALUE\\fR]\n[index_begin\sGROUPTITLE\sTITLE]\n...\n[index_end]\n.CE\n-----\n\nProposed\sfix:\sVarious\sother\spages\shave\sexample\slines\sstarting\swith\sa\speriod\s(some\sare\swidget\snames,\se.g.\s.text\sin\ssitfaq.n,\s.plot\sin\sstatistics.n).\s\sThis\sis\s(to\smy\sknowledge)\sinvalid\soutput\sgenerated\sby\sdoctools,\sand\sshould\sbe\sfixed\sin\sdoctools.\s\sAs\sa\sworkaround\sthe\shandling\sof\san\sunrecognised\sdirective\sshould\sbe\sadjusted\sto\streat\sthe\sline\sas\stext\sif\sin\sa\s.CS\sblock\s(a\scommon\scase).\s\sOutside\sa\s.CS\sblock\sthe\scurrent\sbehaviour\s(ignore\sline)\sshould\sbe\smaintained.\n\nThe\sreason\sfor\sthe\sworkaround\sin\sthe\s.CS\scase\sis\sthat\san\sunrecognised\sdirective\sin\sthe\smiddle\sof\stext\swill\scause\sthe\sline\sbuffer\sto\scontain\s".CS\stext\stext\s.CE"\sinstead\sof\s".CS\stext\s.CE"\swhich\scauses\sthe\s.CS/.CE\soutput\sprocessing\sto\sfail.\n\n\nISSUE\s#7:\sEmpty\s.CS\sblock\sis\sunupported\n\nWhile\sprocessing\spki.n:\n-----\npki:\sEXAMPLES:\soutput-directive:\sunexpected\s.CS\sformat:\n.CE\n\n.CS\npki:\sEXAMPLES:\soutput-directive:\sunexpected\s.CE\n-----\n\npki.n\scontains:\n-----\n.SH\sEXAMPLES\n.CS\n\n\n\n.CE\n.CS\n\n\n\n.CE\n-----\n\nProposed\sfix:\sThis\soccurs\sbecause\sthe\sempty\slines\scause\sthe\sline\sbuffer\sto\scontain\s".CS\s.CE"\sinstead\sof\s".CS\stext\s.CE",\swhich\scauses\sthe\s.CS/.CE\soutput\sprocessing\sto\sfail.\s\sPermit\sempty\scode\ssection\sby\shaving\sthe\s.CE\shandler\sforce\sthe\sline\sbuffer\sto\sflush,\seven\sif\sit\sis\sempty.\n\n\nISSUE\s#8:\sUnsupported\s.TP\s\\fB...\\fR\n\n-----\nscanning\spage\sC:/User/Tcl_BUILD/tcl-8.6.0/tcllib/doc/pkg/doc/struct_list.n\nstruct_list:\smake-manpage-section:\signoring\s.TP\safter\s.TP\nstruct_list:\smake-manpage-section:\signoring\s.TP\safter\s.TP\n-----\n\nstruct_list.n\scontains:\n-----\n.TP\s\\fB...\\fR\n.TP\n\\fBi\\fR\nApplication\sof\sthe\scommand\sto\sthe\sresult\sof\sthe\slast\scall\sand\sthe\n\\fBi\\fR'th\selement\sof\sthe\slist.\n.TP\s\\fB...\\fR\n.TP\n\\fBend\\fR\nApplication\sof\sthe\scommand\sto\sthe\sresult\sof\sthe\slast\scall\sand\sthe\slast\nelement\sof\sthe\slist.\sThe\sresult\sof\sthis\scall\sis\sreturned\sas\sthe\sresult\nof\sthe\ssubcommand.\n-----\n\nProposed\sfix:\sNone.\s\sThis\sappears\sto\sbe\sinvalid\smarkup\sgenerated\sby\sdoctools,\sand\sshould\sbe\sfixed\sthere.\n\n\nISSUE\s#9:\sSpaces\sin\spackage\snames\n\n-----\nscanning\spage\sC:/User/Tcl_BUILD/tcl-8.6.0/tcllib/doc/pkg/doc/graph1.n\ngraph1:\sNAME:\soutput-name:\sname\shas\sa\sspace:\s{struct::graph\sv1}\nfrom:\sstruct::graph\sv1\s-\sCreate\sand\smanipulate\sdirected\sgraph\sobjects\n...\nscanning\spage\sC:/User/Tcl_BUILD/tcl-8.6.0/tcllib/doc/pkg/doc/matrix1.n\nmatrix1:\sNAME:\soutput-name:\sname\shas\sa\sspace:\s{struct::matrix\sv1}\nfrom:\sstruct::matrix\sv1\s-\sCreate\sand\smanipulate\smatrix\sobjects\n...\nscanning\spage\sC:/User/Tcl_BUILD/tcl-8.6.0/tcllib/doc/pkg/doc/struct_tree1.n\nstruct_tree1:\sNAME:\soutput-name:\sname\shas\sa\sspace:\s{struct::tree\sv1}\nfrom:\sstruct::tree\sv1\s-\sCreate\sand\smanipulate\stree\sobjects\n-----\n\nProposed\sfix:\sUnknown.\n
J foundin current:\s8.6.0
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter twylite
J subsystem 55.\sOther\sTools
J title Doctools\snroff/groff\soutput\snot\ssupported\sby\stcltk-man2html
J type Bug
K 3600058fffffffffffffffffffffffffffffffff
U twylite
Z ba5446f280679dab5c4d87df4b7b5965