Larry Kollar <[EMAIL PROTECTED]> writes: > Putting a PS file before the '.TL' in a -ms file causes grohtml to hang at > the > beginning of generating HTML. This used to work, but I think it broke > between 1.19.1 and 1.19.2. Here's an example file: > > .\" ---- begin ---- > \& > .sp 2i > .tm output = \*[.T] > .PSPIC logo.eps 1i > .TL > .ie '\*[.T]'html' .HTML Release 5.0 Widget\[tm]<br />Documentation Plan > .el \{\ > Release 5.0 Widget\[em] > .br > Documentation Plan > .\} > .AU > Issue 1.0, 14 November 2006 > .AB no > .LP > Information subject to change without notice. > .LP > Any hard copy of this document is an uncontrolled copy. > .AE > .NH 1 > Introduction > .LP > This is a test... > .\" ----- end ----- > > Here's what trace turns up (not much): > > $ awk -f htbl.awk test.ms | groff -ms -mtrace -mwww -Thtml -P-n -P-r - > >test.html > *** de trace enter: .www:@test_substring > *** trace exit: .www:@test_substring > *** de trace enter: .LINKSTYLE "blue" "C" "\[la]" "\[ra]" > *** trace exit: .LINKSTYLE "blue" "C" "\[la]" "\[ra]" > output = ps > *** de trace enter: .HTML-DO-IMAGE "logo.eps" "c" > *** trace exit: .HTML-DO-IMAGE "logo.eps" "c" > *** de trace enter: .HTML-IMAGE-END > *** trace exit: .HTML-IMAGE-END > *** de trace enter: .tl "''''" > *** trace exit: .tl "''''" > grops:logo.eps (stdin):13: missing argument > output = html > (hangs) > > Any suggestions? > > -- Larry
Hi Larry, what does your awk script transform the input file into? Here is my test which passes with groff-1.19.3 $ groff -ms -Thtml -P-n -P-r larry-eps.n output = ps output = html <!-- Creator : groff version 1.19.3 --> <!-- CreationDate: Mon Nov 13 19:40:21 2006 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta name="generator" content="groff -Thtml, see www.gnu.org"> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <meta name="Content-Style" content="text/css"> <style type="text/css"> p { margin-top: 0; margin-bottom: 0; } pre { margin-top: 0; margin-bottom: 0; } table { margin-top: 0; margin-bottom: 0; } </style> <title>Release 5.0 Widget™<br />Documentation Plan</title> </head> <body> <h1 align=center>Release 5.0 Widget™<br />Documentation Plan</h1> <a href="#heading1">1. Introduction</a><br> <p align=center style="margin-top: 1em" valign="top"><img src="logo.eps.png" alt="Image logo.eps.png"></p> <p align=center valign="top"><i>Issue 1.0, 14 November 2006</i></p> <p valign="top">Information subject to change without notice.</p> <p style="margin-top: 1em" valign="top">Any hard copy of this document is an uncontrolled copy.</p> <a name="heading1"></a> <h2>1. Introduction</h2> <p style="margin-top: 1em" valign="top">This is a test...</p> </body> </html> $ groff -v GNU groff version 1.19.3 Copyright (C) 2005 Free Software Foundation, Inc. GNU groff comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of groff and its subprograms under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. called subprograms: GNU grops (groff) version 1.19.3 GNU troff (groff) version 1.19.3 regards, Gaius _______________________________________________ Groff mailing list Groff@gnu.org http://lists.gnu.org/mailman/listinfo/groff