From owner-FreeBSD-users-jp@jp.freebsd.org  Mon Jun 21 23:50:49 1999
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id XAA27049;
	Mon, 21 Jun 1999 23:50:49 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from meshsv62.os.mesh.ad.jp (meshsv62.os.mesh.ad.jp [133.205.64.130])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id XAA27040
	for <FreeBSD-users-jp@jp.freebsd.org>; Mon, 21 Jun 1999 23:50:42 +0900 (JST)
	(envelope-from manpou@mxp.mesh.ne.jp)
From: manpou@mxp.mesh.ne.jp
Received: from localhost (kksy3DS02.fko.mesh.ad.jp [210.147.180.94]) by meshsv62.os.mesh.ad.jp (8.8.8+2.7Wbeta7/3.5Wpl1-98033110) with ESMTP id XAA11985 for <FreeBSD-users-jp@jp.freebsd.org>; Mon, 21 Jun 1999 23:50:28 +0900 (JST)
To: FreeBSD-users-jp@jp.freebsd.org
X-Mailer: Mew version 1.93 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Message-Id: <19990622000411I.manpou@mxp.mesh.ne.jp>
Date: Tue, 22 Jun 1999 00:04:11 +0900
X-Dispatcher: imput version 980905(IM100)
Lines: 178
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990610
X-Sequence: FreeBSD-users-jp 43461
Subject: [FreeBSD-users-jp 43461] Canon BJC-400J
 =?ISO-2022-JP?B?GyRCJVclaiVzJT8hPCROQF9EahsoQg==?=(
 =?ISO-2022-JP?B?GyRCRDlKOBsoQg==?=)
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org
X-Originator: manpou@mxp.mesh.ne.jp


   $B$3$s$K$A$O!*(B $B=);3!wKL6e=#;T$G$9!#(B(from Mew-1.93 on FreeBSD 3.1R)

  Canon BJC-400J $B%W%j%s%?!<$G!"%F%-%9%H%U%!%$%k!"(BGhostscript $B$r;H$C$?(B Postscript $B%U(B
$B%!%$%k$N%b%N%/%m$H%+%i!<$N0u:~$,=PMh$k$h$&$K$J$j$^$7$?!#(B
$B$,!"$^$@@_DjFbMF$K<+?.$,;}$F$^$;$s!#7P83<T$NJ}$N::>Z$r$*4j$$$7$?$$$H;W$$$^$9!#(B

/usr/local/lib/ghostscript/ $B$N(B
 testpage.ps
/usr/local/lib/ghostscript/examples $B$N(B
 colorcir.ps     golfer.ps       tiger.ps  snowflak.ps
$B$K$D$$$F$Oe:No$K0u:~$G$-$F$$$^$9!#(B

$B%W%j%s%?!<$N%U%#%k%?!<$H$7$F!"(B

    Ghostscript file $BMQ!'(BGNU $B$N(B ja-vfghostscript-2.6.2 
    Txt file $BMQ!'(B ja-escpf-0.4b2

$B$r%Q%C%1!<%8$h$j%$%s%9%H!<%k$7$F$$$^$9!#(B

Canon BJC-400J $BMQ$N%G%P%$%9%I%i%$%P!<$H$7$F$O!"(B

  $B%b%N%/%m!'(Bbjc600j
  $B%+%i!<(B  $B!'(Bbjc600jc

$B$r;H$C$F$$$^$9!#(B

$B$=$7$F!"<!$N$h$&$K(B /etc/printcap $B$H!"(B
                   /usr/local/libexec/psprint.sh
                   /usr/local/libexec/pscprint.sh
$B$r5-=R!&:n@.$7$F$$$^$9!#(B

-------------- /etc/printcap  ----------------------

#       @(#)printcap    5.3 (Berkeley) 6/30/90
# $Id: printcap,v 1.9 1998/02/04 12:09:06 ache Exp $

#
# This enables a simple local "raw" printer, hooked up to the first
# parallel port.  No kind of filtering is done, so everything you
# pass to the "lpr" command will be printed unmodified.
#
# Remember, for further print queues you're going to add, you have to
# chose different spool directories (the "sd" capability below),
# otherwise you will greatly confuse lpd.
#
# For some advanced printing, have a look at the "apsfilter" package.
# It plugs into the lpd system, allowing you to print a variety of
# different file types by converting everything to PostScript(tm)
# format.  If you don't have a PostScript(tm) printer, don't panic,
# but do also install the "ghostscript" package.
#
# Do also refer to section 7 (Printing) of the handbook.  A local copy
# can be found under /usr/share/doc/handbook/handbook.{html,latin1}.
#
# Banner pages are now suppressed by default.  Remove the :sh:
# capability to turn them back on.
#
# -------------- /etc/printcap  ----------------------
#
# /etc/printcap for Canon BJC-400J
#
canon|local line printer as TEXT printer(Canon BJC-400J):\
                :lp=/dev/lpt0:\
                :sd=/var/spool/output/bjc400j:\
                :if=/usr/local/libexec/escpf:\
                :lf=/var/log/lpd-errs:\
                :sh:\
                :mx#0:

# for Postscript file printing

ps|local line printer as PS printer(Canon BJC-400J):\
                :lp=/dev/lpt0:\
                :sd=/var/spool/output/ps:\
                :if=/usr/local/libexec/psprint.sh:\
                :lf=/var/log/lpd-errs:\
                :sh:\
                :mx#0:

# for Postscript color file printing

psc|local line printer as PS printer(Canon BJC-400J):\
                :lp=/dev/lpt0:\
                :sd=/var/spool/output/psc:\
                :if=/usr/local/libexec/pscprint.sh:\
                :lf=/var/log/lpd-errs:\
                :sh:\
                :mx#0:

lp|local line printer:\
        :sh:\
        :lp=/dev/lpt0:\
        :sd=/var/spool/output/lpd:\
        :lf=/var/log/lpd-errs:

# Sample remote printer.  The physical printer is on machine "lphost".
# NB: you cannot perform any kind of local filtering directly.  If
# you need local filters (e.g. LF -> CR-LF conversion for HP printers),
# create a filter script that recursively calls lpd with another -P
# argument after filtering.
#
#remote|sample remote printer:\
#       :sh:\
#       :rm=lphost:sd=/var/spool/output/lphost:lf=/var/log/lpd-errs:
#
# Simple Russian printer with hardware CP866 character set, output filter
# used for KOI8-R -> CP866 conversion
#
#lp|Russian local line printer:\
#       :sh:of=/usr/libexec/lpr/ru/koi2alt:\
#       :lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
----------------------- end of /etc/printcap ----------------------------------------


--------------------- /usr/local/libexec/psprint.sh  for mono -----------------------
#!/bin/sh
/usr/local/bin/gs -q -r360 -dNOPAUSE -sDEVICE=bjc600j -sOutputFile=- - quit.ps
exit 0
--------------------------------- end of psprint.sh --------------------------------
-------------------  /usr/local/libexec/pscprint.sh for color ---------------------
#!/bin/sh
/usr/local/bin/gs -q -r360 -dNOPAUSE -sDEVICE=bjc600jc -sOutputFile=- - quit.ps
exit 0
----------------------------- end of pscprint.sh -------------------------------------

$B3F(B sh $B%U%!%$%k$K$O<!$N$h$&$K$7$F<B9T8"$r$D$1$F$$$^$9!#(B

# chmod +x psprint.sh

-rwxr-xr-x  1 root  wheel      97 Jun 14 22:43 pscprint.sh*
-rwxr-xr-x  1 root  wheel      96 Jun 14 00:18 psprint.sh*

$B$"$H!"$=$l$>$l$N%G%P%$%9MQ$N%9%W!<%k%G%#%l%/%H%j$H$7$F!"<!$N$b$N$r:n$C$F$$$^$9!#(B

/var/spool/output/bjc400j/
/var/spool/output/ps/
/var/spool/output/psc/

$B$3$3$^$G$N=`Hw$,:Q$^$;$F!"(Blpc $B%3%^%s%I$G3F%(%s%H%j!<$,F/$$$F$$$k$N$r3N$+$a$^$7$?!#(B

lpc> restart all
canon:
        no daemon to abort
canon:
        daemon started
ps:
        no daemon to abort
ps:
        daemon started
psc:
        no daemon to abort
psc:
        daemon started
lp:
        no daemon to abort
lp:
        daemon started
lpc> quit
> 

$B0u:~$O!"(B

> lpr -P ps tiger.ps
> lpr -P psc colorcir.ps
> lpr -P canon signature

$B$H$$$&%3%^%s%I$G9T$C$F$*$j$^$9!#(B
$B;d$N%7%0%M%A%e%"!"8W$N4i!"@c$N7k>=!"=w@-%4%k%U%!!<!"D3$N%b%6%$%/!"%+%i!<0u:~8+K\!"(B
$B%F%9%H%Z!<%88+K\Ey$,$3$l$G0u:~$G$-$^$7$?!#(B

# PS $B%U%!%$%k$C$F$3$s$J$s$@$C$?$s$@$J$"$H$$$&$N$,[0$m$2$KH=$j$+$1$F$-$^$7$?!#(B
# PS $B%U%!%$%k$N%=!<%9$+$i$3$&$7$?2hA|$,=P$k$J$s$F0u:~$9$k$^$GA[A|$@$K=PMh$^$;$s(B
# $B$G$7$?!#(B

---------------------------------------------------------
$B!Z(BE-mail $B![=);3(B $BK~K.(B manpou@mxp.mesh.ne.jp
$B!Z(BWebpage$B![(Bhttp://www2.biglobe.ne.jp/~akiyama/
