Re: using pic with -Thtml

2023-11-29 Thread Gaius Mulley
hbezemer--- via writes: > Dear all, > > I'm trying to create a html file with some graphics created by pic. > Maybe I'm missing the obvious but I'm not able to get it to work. > The following command: > echo ".PS\nbox\n.PE" | pic | groff -Thtml -U > > results in: > > > "http://www.w3.org/TR/ht

Re: using pic with -Thtml

2023-11-29 Thread hbezemer--- via
Dear Gaius, Good point, I wanted to create a minimal working example, which created the same (missing) output as my reallife example. And it did, but I think there's another issue. When changing -ms to -mm (the macro I'm using): No images are created. Thus, groff -p -mm -Thtml foo.n results in:

Re: using pic with -Thtml

2023-11-29 Thread Dave Kemper
On 11/29/23, hbezemer--- via wrote: > When changing -ms to -mm (the macro I'm using): No images are created. > > Maybe groff_mm(7) is the culprit? Different macro packages provide different definitions of .PS and .PE. Some seem to work with grohtml and some not: $ cat foo.n .PS box .PE $ groff -

Re: using pic with -Thtml

2023-11-29 Thread hbezemer--- via
Thanks Dave, that makes it clear for me. I've tried my first minimal example. but now with -ms and this gives a good result. Thus: echo ".PS\nbox\n.PE" | pic | groff -Thtml -ms works. Would it be useful to modify the -mm PS and PE macros so that they work with grohtml since the macro package i

Re: using pic with -Thtml

2023-11-29 Thread hbezemer--- via
From comparing the different PS and PE macros of ms and mm I learned the adding .HTML-IMAGE and .HTML-IMAGE-END respectively does the trick. At least it works in my case. Hans hbezemer--- via wrote: > Thanks Dave, that makes it clear for me. > > I've tried my first minimal example. but now wi

Re: using pic with -Thtml

2023-11-29 Thread G. Branden Robinson
At 2023-11-29T19:11:27+0100, hbezemer--- via wrote: > Thanks Dave, that makes it clear for me. > > I've tried my first minimal example. but now with -ms and this gives a > good result. Thus: echo ".PS\nbox\n.PE" | pic | groff -Thtml -ms > works. > > Would it be useful to modify the -mm PS and PE