From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <72C3E623-EFBE-4750-A43E-EB0754D894B3@mac.com> From: Pietro Gagliardi To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-Reply-To: <20080428083512.AE1361E8C4D@holo.morphisms.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Mon, 28 Apr 2008 06:14:23 -0400 References: <20080428083512.AE1361E8C4D@holo.morphisms.net> Subject: Re: [9fans] mpictures and ms: text before is gone Topicbox-Message-UUID: 9a24cde2-ead3-11e9-9d60-3106f5b1d025 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: >> /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 > >