From owner-freebsd-questions@FreeBSD.ORG Wed Aug 25 23:39:38 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06B2B16A4CE for ; Wed, 25 Aug 2004 23:39:38 +0000 (GMT) Received: from tpa6.isomedia.com (mailout.isomedia.com [207.115.64.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id E079643D46 for ; Wed, 25 Aug 2004 23:39:37 +0000 (GMT) (envelope-from chip@wiegand.org) Received: from tpa6.isomedia.com (localhost.localdomain [127.0.0.1]) by tpa6.isomedia.com (Postfix) with ESMTP id B04791C86B1; Wed, 25 Aug 2004 16:39:37 -0700 (PDT) Received: from tpa6.isomedia.com ([127.0.0.1])port 10024) with ESMTP id 14613-09; Wed, 25 Aug 2004 16:39:34 -0700 (PDT) Received: from linhost01.isomedia.com (linhost01.isomedia.com [207.115.64.63]) by tpa6.isomedia.com (Postfix) with ESMTP id 41E7A1C82B5; Wed, 25 Aug 2004 16:39:34 -0700 (PDT) Received: from wiegand.org (pia152-128.pioneernet.net [66.114.152.128]) (authenticated bits=0)i7PNdXU8003161; Wed, 25 Aug 2004 16:39:33 -0700 Message-ID: <412D24AE.1060508@wiegand.org> Date: Wed, 25 Aug 2004 16:45:50 -0700 From: Chip User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031208 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Malcolm Kay References: <4474c439a3.439a34474c@prodigy.net.mx> <412BDCCE.1070209@wiegand.org> <200408260140.03653.malcolm.kay@internode.on.net> In-Reply-To: <200408260140.03653.malcolm.kay@internode.on.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at isomedia.com X-Spam-Status: No, hits=-4.9 tagged_above=-999.0 required=999.0 tests=BAYES_00 X-Spam-Level: X-MailScanner-SpamCheck: LEVEL= cc: FreeBSD Question Subject: Epson C62 WAS: Re: apsfilter and Epson Stylus C63 on Current X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2004 23:39:38 -0000 Thanks for the reply. I just discovered that if I save a email to a .ps file, then open it in GhostView, it will print perfectly. It's only when printed from within Mozilla Thunderbird that it prints the .ps code. In GhostView it prints to lp, in thunderbird it prints to Postscript/default which the properties show as lpr -Plp. In GhostView it shows properties for lp as local printer and Generic UNIX LPD Print System. I guess I can save every email I want to print to a file, but I shouldn't have to, and really don't want to. Regards, Chip Malcolm Kay wrote: > There is really no absolute way of detecting postscript. Most of these > filters assume that if the first two characters passed are %! then it > is postscript code but this character pair does not have to be at the > start of PS code or even anywhere in the code -- it's just a convention > that it should start with these characters; a convention that is mostly > followed. > > So it would appear likely your e-mail application is not following > the convention. Maybe a blank line precedes the traditional opening > PS line. Or maybe that line is not there at all. > > You could perhaps print the e-mail to a file and examine in detail > how it begins. With this information it should be possible to adapt > the print filter script to detect the alternative PS introduction. > Or even write a prefilter script that recognises the alternate > PS start and converts it to a more conventional start. It might > for example only need to drop a leading new line character. > > Malcolm >