[9fans] mpictures and ms: text before is gone
  Home FAQ Contact Sign in
comp.os.plan9 only
 
Advanced search
POPULAR GROUPS

more...

comp.os.plan9 Profile…
 Up
[9fans] mpictures and ms: text before is gone         


Author: Pietro Gagliardi
Date: Apr 26, 2008 15:39

Hello. I decided to take advantage of mpicture's wrapping text.
However, when I do so, the text before the picture and the wrapped
text disappears, leaving space. I tried prefixing with .fl to flush
everything, but to no avail. What's going on?
5 Comments
Re: [9fans] mpictures and ms: text before is gone         


Author: Russ Cox
Date: Apr 27, 2008 09:46

> Hello. I decided to take advantage of mpicture's wrapping text.
> However, when I do so, the text before the picture and the wrapped
> text disappears, leaving space. I tried prefixing with .fl to flush
> everything, but to no avail. What's going on?

"I did something and it doesn't work. Why?"
is far less useful than a detailed concrete example.
For example, narrow the broken file down to
ten lines or so of troff and a small EPS file
and then post that.

My first guess would be that your EPS file is
non-conforming and is covering all the
text that came before it, even outside the
bounding box. But it's hard to say anything
without details.

Russ
4 Comments
Re: [9fans] mpictures and ms: text before is gone         


Author: Pietro Gagliardi
Date: Apr 27, 2008 14:01

/n/sources/contrib/pietro/saturn.tar has an example of what I mean.

troff -ms -mpictures tmac.colors saturnhd.ms history.ms

On Apr 27, 2008, at 12:43 PM, Russ Cox wrote:
Show full article (0.87Kb)
3 Comments
Re: [9fans] mpictures and ms: text before is gone         


Author: Russ Cox
Date: Apr 28, 2008 01:39

> /n/sources/contrib/pietro/saturn.tar has an example of what I mean.
>
> troff -ms -mpictures tmac.colors saturnhd.ms history.ms

cpu%% tar xf /n/sources/contrib/pietro/saturn.tar
cpu%% for (i in *.ps) echo $i `{sed 1q $i}
pioneer11.ps %%!PS-Adobe-2.0 div 112 page header - research!pg
saturnsymbol.ps %%!PS-Adobe-2.0 div 112 page header - research!pg
cpu%%

Each of these files begins with an lp-style banner page.
That postscript code reinitializes the postscript interpreter,
among other things, clearing the page.

Things will work better if you generate the files without
the banner pages. Running

aux/p9bitpost file.bit > file.ps

will produce postscript without the banner page.

I'm quite confused as to how they could have gotten there.

Russ
2 Comments
Re: [9fans] mpictures and ms: text before is gone         


Author: Pietro Gagliardi
Date: Apr 28, 2008 03:17

Probable bug in lp? I did

hget ... | jpg -9 | lp -dstdout -pp9bitpost > ... # this is a school
project
hget | lp -dstdout -pjpgpost > ... # when I realized it existed

However, there is one GIF in my project and that didn't cause any
problems, so it makes me wonder...

The only postscript I know is the color changing code (which I learned
from your talk slides); this problem confused me.

On Apr 28, 2008, at 4:32 AM, Russ Cox wrote:
Show full article (1.26Kb)
1 Comment
Re: [9fans] mpictures and ms: text before is gone         


Author: Russ Cox
Date: Apr 30, 2008 11:32

> Probable bug in lp? I did
>
> hget ... | jpg -9 | lp -dstdout -pp9bitpost > ... # this is a school
> project
> hget | lp -dstdout -pjpgpost > ... # when I realized it existed
>
> However, there is one GIF in my project and that didn't cause any
> problems, so it makes me wonder...

It turns out that using -p does in
fact tickle a bug in lp that ignores
the "nohead" setting for -dstdout.
I've submitted a patch.

Until then, you don't need the -p options
anyway. Lp can figure out what kind of
input you're giving it.

Russ
no comments