Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5244f82f63ee85f6d6acc27705d17ff8020e7ded
Ticket: 3600058fffffffffffffffffffffffffffffffff
Doctools nroff/groff output not supported by tcltk-man2html
User & Date: twylite on 2013-01-15 16:37:48
Changes

  1. icomment:
    For #1, #6 and #7 (not entirely appropriate nroff output by doctools) my intention was to warn (but not crash) and be able to continue sanely.  This is the fastest route to working doc generation for tcllib, and gives time for fixes upstream.
    
    #3 (doctools generates redundant font changes), not that the "previous font" is a state not a stack, so doctools cannot safely generate /fB.../fP if there is a chance that the contents contain a font change.  The specific case here is that docidx.man contains '...contains a
    file [file idx.[term foo]]. If yes...', which doctools transforms into '...contains a file "\fIidx.\fIfoo\fR\fR". If yes...'.  If [file] and [term] produced \fI...\fP instead, the result would be '...contains a file "\fIidx.\fIfoo\fP\fP". If yes...', which (because font previous doesn't stack, per nroff docs) would render 'If yes...' in italics.
    
    The logic of the change is to say that if you have an nroff paragraph with a series of font changes 'text1/fItext2/fBtext3/fR...' then you can transform this into a logic structure { regular => "text1", italics => "text2", bold => "text3", regular => "..." } and from there generate HTML start and end tags for each text fragment (regular needs no tags): text1<i>text2</i><b>text3</b>.
    
    I'll look at the /fP hack you mention - I didn't notice it.
    
    For #4 (copyright) I don't think tcltk-man2html should handle every conceivable way of declaring copyright.  Handling a reasonable subset and warning for the rest is good enough, and these can be fixed upstream.
    
    Thanks for the clarification on #9.  I agree that #8 (.TP) and #9 (NAME with spaces) should be fixed upstream, and no workaround introduced to tcltk-man2html.
    
    I will update the code for #5 as suggested.
    
    
  2. login: "twylite"
  3. mimetype: "text/plain"
  4. username: "twylite"