From owner-freebsd-questions Sun Dec 8 01:54:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id BAA03894 for questions-outgoing; Sun, 8 Dec 1996 01:54:04 -0800 (PST) Received: from tulpi.interconnect.com.au (root@tulpi.interconnect.com.au [192.189.54.18]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id BAA03889 for ; Sun, 8 Dec 1996 01:53:55 -0800 (PST) Received: from solsbury-hill.home (acc3-ppp59.mel.interconnect.com.au [210.8.0.59]) by tulpi.interconnect.com.au with ESMTP id UAA03051 (8.7.6/IDA-1.6); Sun, 8 Dec 1996 20:53:40 +1100 (EST) Received: from localhost (suttonj@localhost) by solsbury-hill.home (8.7.5/8.7.3) with SMTP id UAA00658; Sun, 8 Dec 1996 20:29:16 +1100 (EST) Date: Sun, 8 Dec 1996 20:29:15 +1100 (EST) From: Joel Sutton X-Sender: suttonj@solsbury-hill.home Reply-To: Joel Sutton To: Robert Burns cc: questions@freebsd.org Subject: Re: Canon BJC-210 printcap In-Reply-To: <199611222227.OAA16776@zen1.lanzen.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Robert, I've been catching up on my email and I noticed that your question didn't appear to have an answer. I hope I'm not to late. If I am then at least this will go into the mail archive. :-> On Fri, 22 Nov 1996, Robert Burns wrote: > Has anyone managed to configure a filter that works for the bubblejet > 210? I can't seem to get the necessary control codes from Canon and this > printer does not have any dip switches. I have set up two different print queues on my system - one for plain text (lp) and one for postscript (ps). My printcap file looks something like this: lp|line printer:\ :lp=/dev/lpt0:sd=/var/spool/lpd/lp:lf=/var/log/lpd-errs:sh:\ :pw=80:pl=66:if=/usr/local/sbin/lp-bjif: ps|Postscript Printer:\ :lp=/dev/lpt0:sd=/var/spool/lpd/ps:lf=/var/log/lpd-errs:sh:\ :if=/usr/local/sbin/ps-bjif: Most of the above can be tailored to your own needs but the important option is the if=. I've created two scripts which look like this. lp-bjif: #!/usr/local/bin/perl # # Cannon BJC-210 # while () { $_ =~ s/\n/\r\n/g ; print $_ ; } print "\f" ; # # EOF This is a simple perl script which does crlf changes and drops a form feed on the end so that the printer ejects the paper. Probably could be improved. You could re-write using sed if you don't like perl. #!/bin/sh # # Cannon BJC-210 Postscript filter script # # /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=bj200 -r360 -sOutputFile=- - exit 0 # # EOF This is the bare bone minimum filter as outlined in the ghostscript documentation. I find that it does a reasonable job of producing output but when I need letter quality text then I print directly from one of my windows 95 boxes. You'll need to make both scripts publically executable but NOT writable. Fingers crossed and using lpr should produce some decent results. Also, I found a number of the printer codes in the BJC-210 Dos manual for the printer. I hope this helps. Good luck, Joel...