<i>Doctools nroff/groff output not supported by tcltk-man2html</i> status still Open with 6 other changes
by
.
D 2014-04-28T19:45:31.335
J closer nobody
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.\r\n\r\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.\r\n\r\nThere\sare\sa\snumber\sof\sissues,\sand\scomplete\ssupport\swill\sentail\schanges\sto\stcltk-man2html\sand\sfixes\sto\sdoctools.\r\n\r\nPATCH\r\n\r\nFor\sall\sissues\sbelow\swith\sproposed\sfixes,\sthe\sfix\shas\sbeen\simplemented\sand\scan\sbe\sfound\son\sthe\sbranch\sbug-(thisbug)-td.\r\n\r\nBACKGROUND\r\n\r\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'\r\n\r\nThe\stcltk-man2html\ssource\swas\smodified\sto\sprovide\smore\sdetailed\soutput\sin\ssome\scases.\r\n\r\n\r\nISSUE\s#1:\sSection\sname\swith\sno\sdescription\scrashes\r\n\r\n-----\r\nscanning\spage\sC:/User/Tcl_BUILD/tcl-8.6.0/tcllib/doc/pkg/doc/coro_auto.n\r\ncoro_auto:\sNAME:\soutput-name:\sbad\ssection\sname:\scoroutine::auto\s-\r\ncan't\sread\s"head":\sno\ssuch\svariable\r\ncan't\sread\s"head":\sno\ssuch\svariable\r\n\s\s\s\swhile\sexecuting\r\n"man-puts\s"$head\s—\s$tail""\r\n\s\s\s\s(procedure\s"output-name"\sline\s8)\r\n-----\r\n\r\nProposed\sfix:\sAdjust\sthe\sregex\sin\soutput-name\sto\snot\srequire\sa\sspace\safter\sthe\sdash\s(consume\s1\soptional\swhitespace).\r\n\r\n\r\nISSUE\s#2:\sDoctools\sescapes\ssingle\squote\sat\sstart\sof\sline\r\n\r\n-----\r\nscanning\spage\sC:/User/Tcl_BUILD/tcl-8.6.0/tcllib/doc/pkg/doc/csv.n\r\ncsv:\sprocess-text:\suncaught\sbackslash:\r\nIN\s{Takes\sa\s\\fImatrix\\fR\sobject\sfollowing\sthe\sAPI\sspecified\sfor\sthe\r\nstruct::matrix\spackage\sand\sreturns\sa\sstring\sin\sCSV\sformat\scontaining\r\nthese\svalues.\sThe\sseparator\scharacter\scan\sbe\sdefined\sby\sthe\scaller,\r\nbut\sthis\sis\soptional.\sThe\sdefault\sis\s",".\sThe\squoting\scharacter\r\ncan\sbe\sdefined\sby\sthe\scaller,\sbut\sthis\sis\soptional.\sThe\sdefault\sis\r\n\\'"'.\sEach\srow\sof\sthe\smatrix\sis\sconsidered\sa\srecord,\sthese\sare\r\nseparated\sby\snewlines\sin\sthe\sresult.\sThe\selements\sof\seach\srecord\sare\r\nformatted\sas\susual\s(via\s\\fB::csv::join\\fR).}\r\nOUT\s{Takes\sa\s<I>matrix</I>\sobject\sfollowing\sthe\sAPI\sspecified\sfor\sthe\r\nstruct::matrix\spackage\sand\sreturns\sa\sstring\sin\sCSV\sformat\scontaining\r\nthese\svalues.\sThe\sseparator\scharacter\scan\sbe\sdefined\sby\sthe\scaller,\r\nbut\sthis\sis\soptional.\sThe\sdefault\sis\s",".\sThe\squoting\scharacter\r\ncan\sbe\sdefined\sby\sthe\scaller,\sbut\sthis\sis\soptional.\sThe\sdefault\sis\r\n\\'"'.\sEach\srow\sof\sthe\smatrix\sis\sconsidered\sa\srecord,\sthese\sare\r\nseparated\sby\snewlines\sin\sthe\sresult.\sThe\selements\sof\seach\srecord\sare\r\nformatted\sas\susual\s(via\s\\fB::csv::join\\fR).}\r\n-----\r\n\r\ncsv.man\scontains:\s\r\n-----\r\nTakes\sa\slist\sof\svalues\sand\sreturns\sa\sstring\sin\sCSV\sformat\scontaining\r\nthese\svalues.\sThe\sseparator\scharacter\scan\sbe\sdefined\sby\sthe\scaller,\r\nbut\sthis\sis\soptional.\sThe\sdefault\sis\s",".\sThe\squoting\scharacter\scan\r\nbe\sdefined\sby\sthe\scaller,\sbut\sthis\sis\soptional.\sThe\sdefault\sis\s'"'.\r\n-----\r\n\r\ncsv.n\scontains:\s\r\n-----\r\nTakes\sa\s\\fImatrix\\fR\sobject\sfollowing\sthe\sAPI\sspecified\sfor\sthe\r\nstruct::matrix\spackage\sand\sreturns\sa\sstring\sin\sCSV\sformat\scontaining\r\nthese\svalues.\sThe\sseparator\scharacter\scan\sbe\sdefined\sby\sthe\scaller,\r\nbut\sthis\sis\soptional.\sThe\sdefault\sis\s",".\sThe\squoting\scharacter\r\ncan\sbe\sdefined\sby\sthe\scaller,\sbut\sthis\sis\soptional.\sThe\sdefault\sis\r\n\\'"'.\sEach\srow\sof\sthe\smatrix\sis\sconsidered\sa\srecord,\sthese\sare\r\nseparated\sby\snewlines\sin\sthe\sresult.\sThe\selements\sof\seach\srecord\sare\r\nformatted\sas\susual\s(via\s\\fB::csv::join\\fR).\r\n-----\r\n\r\nProposed\sfix:\sadd\spair\s(\s{\\'}\s"'"\s)\sto\scharmap\sin\sprocess-text.\r\n\r\n\r\nISSUE\s#3:\sDoctools\smay\sgenerate\sredundant\sfont\schanges,\swhich\sare\signored\sbut\sresult\sin\san\sunhandled\sbackslash\serror\r\n\r\n-----\r\nscanning\spage\sC:/User/Tcl_BUILD/tcl-8.6.0/tcllib/doc/pkg/doc/docidx.n\r\ndocidx:\sprocess-text:\simpotent\sfont\schange:\sIf\snot,\sthe\slist\sof\sper-object\ssearch\spaths\sis\ssearched.\sFor\seach\r\ndirectory\sin\sthe\slist\sthe\spackage\schecks\sif\sthat\sdirectory\scontains\sa\r\nfile\s"\\fIidx.\\fIfoo\\fR\\fR".\sIf\syes,\sthen\sthat\sfile\sis\staken\sas\sthe\r\nimplementation.\r\ndocidx:\sprocess-text:\suncaught\sbackslash:\sIN\s{If\snot,\sthe\slist\sof\sper-object\ssearch\spaths\sis\ssearched.\sFor\seach\r\ndirectory\sin\sthe\slist\sthe\spackage\schecks\sif\sthat\sdirectory\scontains\sa\r\nfile\s"\\fIidx.\\fIfoo\\fR\\fR".\sIf\syes,\sthen\sthat\sfile\sis\staken\sas\sthe\r\nimplementation.}\sOUT\s{If\snot,\sthe\slist\sof\sper-object\ssearch\spaths\sis\ssearched.\sFor\seach\r\ndirectory\sin\sthe\slist\sthe\spackage\schecks\sif\sthat\sdirectory\scontains\sa\r\nfile\s"<I>idx.foo</I>\\fR".\sIf\syes,\sthen\sthat\sfile\sis\staken\sas\sthe\r\nimplementation.}\r\n-----\r\n\r\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.\r\n\r\n\r\nISSUE\s#4:\soops:\sCopyright\s(c)\r\n\r\nThere\sare\sa\snumber\sof\sthese\sdue\sto\sthe\svariety\sof\scopyright\sstatement\sstyles\sin\sTcllib.\r\n\r\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.\r\n\r\n\r\nISSUE\s#5:\sCrash\sfrom\streating\sstring\sas\slist\r\n\r\n-----\r\nscanning\spage\sC:/User/Tcl_BUILD/tcl-8.6.0/tcllib/doc/pkg/doc/snitfaq.n\r\nlist\selement\sin\squotes\sfollowed\sby\s"INFO""\sinstead\sof\sspace\r\nlist\selement\sin\squotes\sfollowed\sby\s"INFO""\sinstead\sof\sspace\r\n\s\s\s\swhile\sexecuting\r\n"llength\s$rest"\r\n\s\s\s\s(procedure\s"make-manpage-section"\sline\s100)\r\n\s\s\s\sinvoked\sfrom\swithin\r\n"make-manpage-section\s$html\s$arg"\r\n\s\s\s\s(procedure\s"make-man-pages"\sline\s35)\r\n\s\s\s\sinvoked\sfrom\swithin\r\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\r\nesc."]\s\s[plus-base\s..."\r\n\s\s\s\s("try"\sbody\sline\s94)\r\n-----\r\n\r\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{}}.\r\n\r\n\r\nISSUE\s#6:\sunrecognised\sformat\sdirective\sin\s.CS\sblock\r\n\r\n-----\r\nscanning\spage\sC:/User/Tcl_BUILD/tcl-8.6.0/tcllib/doc/pkg/doc/docidx_lang_intro.n\r\ndocidx_lang_intro:\smake-manpage-section:\sunrecognized\sformat\sdirective:\s...\r\ndocidx_lang_intro:\smake-manpage-section:\sunrecognized\sformat\sdirective:\s...\r\ndocidx_lang_intro:\sADVANCED\sSTRUCTURE:\soutput-directive:\sunexpected\s.CS\sformat:\r\n[<B>include\sFILE</B>]\r\n[<B>vset\sVAR\sVALUE</B>]\r\n[index_begin\sGROUPTITLE\sTITLE]\r\n\r\n[index_end]\r\n\r\ndocidx_lang_intro:\sADVANCED\sSTRUCTURE:\soutput-directive:\sunexpected\s.CE\r\n-----\r\n\r\ndocidx_lang_intro.n\scontains:\r\n-----\r\n.CS\r\n[\\fBinclude\sFILE\\fR]\r\n[\\fBvset\sVAR\sVALUE\\fR]\r\n[index_begin\sGROUPTITLE\sTITLE]\r\n...\r\n[index_end]\r\n.CE\r\n-----\r\n\r\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.\r\n\r\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.\r\n\r\n\r\nISSUE\s#7:\sEmpty\s.CS\sblock\sis\sunupported\r\n\r\nWhile\sprocessing\spki.n:\r\n-----\r\npki:\sEXAMPLES:\soutput-directive:\sunexpected\s.CS\sformat:\r\n.CE\r\n\r\n.CS\r\npki:\sEXAMPLES:\soutput-directive:\sunexpected\s.CE\r\n-----\r\n\r\npki.n\scontains:\r\n-----\r\n.SH\sEXAMPLES\r\n.CS\r\n\r\n\r\n\r\n.CE\r\n.CS\r\n\r\n\r\n\r\n.CE\r\n-----\r\n\r\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.\r\n\r\n\r\nISSUE\s#8:\sUnsupported\s.TP\s\\fB...\\fR\r\n\r\n-----\r\nscanning\spage\sC:/User/Tcl_BUILD/tcl-8.6.0/tcllib/doc/pkg/doc/struct_list.n\r\nstruct_list:\smake-manpage-section:\signoring\s.TP\safter\s.TP\r\nstruct_list:\smake-manpage-section:\signoring\s.TP\safter\s.TP\r\n-----\r\n\r\nstruct_list.n\scontains:\r\n-----\r\n.TP\s\\fB...\\fR\r\n.TP\r\n\\fBi\\fR\r\nApplication\sof\sthe\scommand\sto\sthe\sresult\sof\sthe\slast\scall\sand\sthe\r\n\\fBi\\fR'th\selement\sof\sthe\slist.\r\n.TP\s\\fB...\\fR\r\n.TP\r\n\\fBend\\fR\r\nApplication\sof\sthe\scommand\sto\sthe\sresult\sof\sthe\slast\scall\sand\sthe\slast\r\nelement\sof\sthe\slist.\sThe\sresult\sof\sthis\scall\sis\sreturned\sas\sthe\sresult\r\nof\sthe\ssubcommand.\r\n-----\r\n\r\nProposed\sfix:\sNone.\s\sThis\sappears\sto\sbe\sinvalid\smarkup\sgenerated\sby\sdoctools,\sand\sshould\sbe\sfixed\sthere.\r\n\r\n\r\nISSUE\s#9:\sSpaces\sin\spackage\snames\r\n\r\n-----\r\nscanning\spage\sC:/User/Tcl_BUILD/tcl-8.6.0/tcllib/doc/pkg/doc/graph1.n\r\ngraph1:\sNAME:\soutput-name:\sname\shas\sa\sspace:\s{struct::graph\sv1}\r\nfrom:\sstruct::graph\sv1\s-\sCreate\sand\smanipulate\sdirected\sgraph\sobjects\r\n...\r\nscanning\spage\sC:/User/Tcl_BUILD/tcl-8.6.0/tcllib/doc/pkg/doc/matrix1.n\r\nmatrix1:\sNAME:\soutput-name:\sname\shas\sa\sspace:\s{struct::matrix\sv1}\r\nfrom:\sstruct::matrix\sv1\s-\sCreate\sand\smanipulate\smatrix\sobjects\r\n...\r\nscanning\spage\sC:/User/Tcl_BUILD/tcl-8.6.0/tcllib/doc/pkg/doc/struct_tree1.n\r\nstruct_tree1:\sNAME:\soutput-name:\sname\shas\sa\sspace:\s{struct::tree\sv1}\r\nfrom:\sstruct::tree\sv1\s-\sCreate\sand\smanipulate\stree\sobjects\r\n-----\r\n\r\nProposed\sfix:\sUnknown.
J icomment Final\supdates\sare\sin\sbranch\s[bug-3600058-td],\scommit\s[cdb671dd50].\s\sTcllib\sfixes\shave\sbeen\sincorporated\sinto\sthe\strunk\sof\sthat\sproject.\r\n\r\nThis\sbranch\sDOES\sNOT\smerge\scleanly\sonto\strunk:\s3\sminor\sconflicts\shave\sto\sbe\sresolved.\s\sIt\sdoes\smerge\scleanly\sonto\score-8-6-0\s(which\sis\sthe\sbaseline\sI'm\sworking\sagainst).\r\n\r\nSummary\sof\sall\schanges\sin\sbranch:\r\n\s\s-\sAdd\s".SH\sCATEGORY"\sto\sall\sTcl\sdoc\sfiles\s(.1,\s.3\sand\s.n)\r\n\s\s-\sIntroduce\san\soption\s"--pkgdir"\s(default\s$tcldir/pkgs)\sto\stcltk-man2html.tcl.\sThe\stool\swill\ssource\sin\sthis\sfolder\sfor\ssubfolders\scontaining\s'configure.in',\s'configure.ac'\sor\s'unix/configure.in',\sand\sif\sfound\streat\sthe\sfolder\sas\sa\spackage.\s\sThe\stool\swill\salso\slook\sin\s--pkgdir\s*in\saddition\sto\s$tcldir/pkgs*\sfor\sa\spackages.list.txt\sfile.\r\n\s\s-\sSeparated\sstatus\s(stdout)\sand\serror\s(stderr)\soutputs\sin\sthe\stool.\r\n\s\s-\sFixed\shandling\sof\snroff\smarkup\sto\saccommodate\soutput\sfrom\sTcllib\sdoctools.\r\n\s\s-\sAdded\ssupport\sfor\scategory\sheaders\s(.SH\sCATEGORY)\sin\sman\spages.\s\sA\scategorised\stable\sof\scommands\sis\sdisplayed\son\sthe\spackage\scontents\spage\sbelow\sthe\salphabetical\slist\sof\scommands.\s\sThe\salphabetical\slist\sis\snow\srendered\susing\sCSS\scolumns\s(used\sto\sbe\sa\stable).\r\n\s\s-\sMore\sforgiving\sparsing\sof\sCopyright\smessages,\sto\saccommodate\scopyrights\sin\sTcllib\sand\sother\spackages.\r\n\r\nThe\stwo\sproblems\snoted\sin\sthe\sprevious\scomment\son\sthis\sbug\s(multiple\sdefinitions\sand\s\\fP)\shave\snot\sbeen\sresolved\s-\sthis\sis\sbad\sdata\scoming\sfrom\sTcllib\sand\sneeds\sto\sbe\saddressed\sthere.\r\n\r\nI\sbelieve\sthe\sbug\sis\snow\saddressed;\sany\sfurther\sissues\scan\sbe\sraised\sindependently.\r\n\r\nPlease\sreview\sthis\schange\sand\slet\sme\sknow\swhether\sto\scommit\sto\strunk,\sor\swhat\sto\sfix.\s\sThanks.
J login twylite
J mimetype text/plain
J severity Minor
K 3600058fffffffffffffffffffffffffffffffff
U twylite
Z 90af4560b759403ae296da6207fecc63