From owner-FreeBSD-users-jp@jp.freebsd.org  Mon May 17 03:10:45 1999
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id DAA38508;
	Mon, 17 May 1999 03:10:45 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from us2.famille.ne.jp (us2.famille.ne.jp [203.140.48.26])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id DAA38502
	for <FreeBSD-users-jp@jp.freebsd.org>; Mon, 17 May 1999 03:10:45 +0900 (JST)
	(envelope-from higutaka@ruby.famille.ne.jp)
Received: from DBT48206 (kwsk8DS84.kng.mesh.ad.jp [210.147.46.84])
	by us2.famille.ne.jp (8.9.3/3.7W-98101511) with SMTP id DAA10743
	for <FreeBSD-users-jp@jp.freebsd.org>; Mon, 17 May 1999 03:10:38 +0900 (JST)
Message-Id: <199905161810.DAA10743@us2.famille.ne.jp>
To: FreeBSD-users-jp@jp.freebsd.org
From: Takashi Higuchi <higutaka@ruby.famille.ne.jp>
X-Mailer: Winbiff [Version 2.11 PL3]
References: <19990516213034D.ueta@pixy.issp.u-tokyo.ac.jp>
Date: Mon, 17 May 1999 03:07:35 +0900
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-2022-jp
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990430
X-Sequence: FreeBSD-users-jp 42324
Subject: [FreeBSD-users-jp 42324] Re: About Printer Setup
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org
X-Originator: higutaka@ruby.famille.ne.jp

<19990516213034D.ueta@pixy.issp.u-tokyo.ac.jp> $B$N!"(B
   "[FreeBSD-users-jp 42315] Re: About Printer Setup" $B$K$*$$$F!"(B
   "Ueta Masateru <ueta@pixy.issp.u-tokyo.ac.jp>"$B$5$s$O=q$-$^$7$?!'(B

> $B$3$s$K$A$O?"ED$G$9!#(B
> From: Takashi Higuchi <higutaka@ruby.famille.ne.jp>
> Subject: [FreeBSD-users-jp 42311] Re2: About Printer Setup
> Date: Sun, 16 May 1999 20:07:30 +0900
> Message-ID: <199905161110.UAA03344@us2.famille.ne.jp>
> > > escpf$B$r%$%s%9%H!<%k$7$F!"(B/etc/printcap$B$K0J2<$N@_Dj$r$7!"(Blpr -Pescp$B$K0u(B
> > > $B:~$7$?$$%U%!%$%k$r?)$o$;$k$HF|K\8l0u:~$G$-$^$9!#(B
> > > escp|ESC/P printer on local port:\
> > > 	:lp=/dev/lpt0:sh:sd=/var/spool/output/lpd/escp:\
> > > 	:lf=/var/log/lpd-errs:\
> > > 	:pl#66:\
> > > 	:if=/usr/local/libexec/escpf:
> 
> $B$H$j$"$($:!"(Bghostscript $B$r7PM3$7$F(B Postscript file $B$r0u;z$9$k$N$H$O!"(B
> $B0c$&J}K!(B(=text $B$r!"(B escpf $B$r;H$C$F(B ESC/P $B$N7A<0$KJQ49$7!"$=$NJQ49$5$l(B
> $B$?%G!<%?$r%W%j%s%?$K=PNO(B)$B$r$H$i$l$k$3$H$K$7$?$N$G$9$M!#(B

$B$3$NJ}K!$G$O$&$^$/$$$-$^$7$?!#(B

FreeBSD$BE0DlF~Lg$+$i;29M$K$7$F(BPS$B%U%!%$%k$r(BStar JJ-100$B$K%W%j%s%H%"%&%H$9$k$h$&$K$7$?$H$3$m(B
(ja-vhghostscript-2.6.2$B$r%$%s%9%H!<%k$7$^$7$?(B)lp$B$,L5$$$H$$$&%a%C%;!<%8$,$G$F%W%j%s%H%"%&%H$G$-$^$;$s$G$7$?!#(B
/etc/printcap$B$rE:IU$7$^$9!#(B
#	@(#)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.
#
lp|PostScript through ghostscript\
        :lp=/dev/lpt0:sh:\
        :sd=/var/spool/output/lpd:\
        :lf=/var/log/lpd-errs:\
	;if=/usr/local/libexec/psprint.sh:
#
# 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:

$B$^$?!"(B/usr/local/libexec/psprint.sh$B$K$O0J2<$N$h$&$KF~NO$7$^$7$?!#(B
#!/bin/sh
gs -q -dNOPAUSE -sDEVICE=jj100 -sOutputFile=- - quit.ps

$B$J$K$,860x$@$+$o$+$k?M$O65$($F$/$@$5$$!#(B
$BAjJQ$o$i$:(Bps$B%U%!%$%k$N%=!<%9$,%W%j%s%H%"%&%H$5$l$F$$$^$9!#(B

--
Takashi Higuchi
higutaka@ruby.famille.ne.jp
http://www3.famille.ne.jp/~higutaka/
