OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / lpr-linux / draft / man5 / printcap.5
1 .\" Copyright (c) 1983, 1991 Regents of the University of California.
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\"    must display the following acknowledgement:
14 .\"     This product includes software developed by the University of
15 .\"     California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\"    may be used to endorse or promote products derived from this software
18 .\"    without specific prior written permission.
19 .\"
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" SUCH DAMAGE.
31 .\"
32 .\"     @(#)printcap.5  6.6 (Berkeley) 5/10/91
33 .\"
34 .\" Japanese Version Copyright (c) 2000 Hirohisa AMAN,
35 .\"     <aman@soft.comp.kyutech.ac.jp> all right reserved.
36 .\"
37 .\"O .Dd May 10, 1991
38 .\"O .Dt PRINTCAP 5
39 .\"O .Os BSD 4.2
40 .\"O
41 .Dd May 10, 1991
42 .Dt PRINTCAP 5
43 .Os BSD 4.2
44 .\"O
45 .\"O .Sh NAME
46 .\"O .Nm printcap
47 .\"O .Nd printer capability data base
48 .\"O
49 .Sh Ì¾Á°
50 .Nm printcap
51 .Nd ¥×¥ê¥ó¥¿ ¥±¥¤¥Ñ¥Ó¥ê¥Æ¥£ ¥Ç¡¼¥¿¥Ù¡¼¥¹
52 .\"O
53 .\"O .Sh SYNOPSIS
54 .\"O .Nm printcap
55 .\"O
56 .Sh ½ñ¼°
57 .Nm printcap
58 .\"O
59 .\"O .Sh DESCRIPTION
60 .\"O The
61 .\"O .Nm Printcap
62 .\"O function
63 .\"O is a simplified version of the
64 .\"O .Xr termcap 5
65 .\"O data base
66 .\"O used to describe line printers.  The spooling system accesses the
67 .\"O .Nm printcap
68 .\"O file every time it is used, allowing dynamic
69 .\"O addition and deletion of printers.  Each entry in the data base
70 .\"O is used to describe one printer.  This data base may not be
71 .\"O substituted for, as is possible for 
72 .\"O .Xr termcap ,
73 .\"O because it may allow accounting to be bypassed.
74 .\"O .Pp
75 .\"O
76 .Sh ÀâÌÀ
77 .Nm printcap 
78 ¤Ï
79 .Xr termcap 5
80 ¥Ç¡¼¥¿¥Ù¡¼¥¹¤ò´Êñ¤Ë¤·¤¿¤â¤Î¤Ç¤¢¤ê¡¢¥é¥¤¥ó¥×¥ê¥ó¥¿¤òµ­½Ò¤¹¤ë¤Î¤Ë»È¤ï¤ì¤ë¡£
81 ¥¹¥×¡¼¥ê¥ó¥°¥·¥¹¥Æ¥à¤Ï¡¢»ÈÍѤµ¤ì¤ë¤¿¤Ó¤Ë
82 .Nm printcap
83 ¥Õ¥¡¥¤¥ë¤Ë¥¢¥¯¥»¥¹¤·¡¢¥×¥ê¥ó¥¿¤ÎưŪ¤ÊÄɲäȺï½ü¤ò²Äǽ¤Ë¤·¤Æ¤¤¤ë¡£
84 ¥Ç¡¼¥¿¥Ù¡¼¥¹¤Ë¤ª¤±¤ë³Æ¥¨¥ó¥È¥ê¤Ï¡¢1 ¤Ä¤Î¥×¥ê¥ó¥¿¤òµ­½Ò¤¹¤ë¤Î¤Ë»È¤ï¤ì¤ë¡£
85 ¤³¤Î¥Ç¡¼¥¿¥Ù¡¼¥¹¤Ï½ñ¤­¹þ¤ß²Äǽ¤Ë¤·¤Æ¤ª¤¤¤Æ¤Ï¤Ê¤é¤Ê¤¤(
86 .Xr termcap
87 ¥Ç¡¼¥¿¥Ù¡¼¥¹¤ÏÉáÄ̽ñ¤­¹þ¤ß²Äǽ¤Ë¤Ê¤Ã¤Æ¤¤¤ë)¡£
88 ¤Ê¤¼¤Ê¤é¡¢¤½¤ì¤Ë¤è¤Ã¤Æ¥¢¥«¥¦¥ó¥Æ¥£¥ó¥°(accounting)¤ò¤¹¤êÈ´¤±¤ë¤³¤È¤¬
89 ²Äǽ¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¦¤«¤é¤Ç¤¢¤ë¡£
90 .Pp
91 .\"O
92 .\"O The default printer is normally 
93 .\"O .Em lp ,
94 .\"O though the environment variable
95 .\"O .Ev PRINTER
96 .\"O may be used to override this.  Each spooling utility supports an option,
97 .\"O .Fl P Ar printer ,
98 .\"O to allow explicit naming of a destination printer.
99 .\"O .Pp
100 .\"O
101 Ä̾¥Ç¥Õ¥©¥ë¥È¥×¥ê¥ó¥¿¤Ï
102 .Em lp
103 ¤Ç¤¢¤ë¡£¤¿¤À¤·¡¢´Ä¶­ÊÑ¿ô
104 .Ev PRINTER
105 ¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ì¤Ð¡¢¤½¤Á¤é¤¬Í¥À褵¤ì¤ë¡£
106 ³Æ¥¹¥×¡¼¥ê¥ó¥°¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï¡¢ÌÜŪ¤Î¥×¥ê¥ó¥¿¤òÌÀ¼¨Åª¤Ë»ØÄê¤Ç¤­¤ë¤è¤¦¡¢
107 ¥ª¥×¥·¥ç¥ó
108 .Fl P Ar printer
109 ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¡£
110 .Pp
111 .\"O
112 .\"O Refer to the
113 .\"O .%T "4.3 BSD Line Printer Spooler Manual"
114 .\"O for a complete discussion on how setup the database for a given printer.
115 .\"O
116 ¤¢¤ëÆÃÄê¤Î¥×¥ê¥ó¥¿¤ËÂФ¹¤ë¤³¤Î¥Ç¡¼¥¿¥Ù¡¼¥¹¤ÎÀßÄê¤Î¾ÜºÙ¤Ï
117 .%T "4.3 BSD Line Printer Spooler Manual"
118 ¤ò»²¾È¤»¤è¡£
119 .\"O
120 .\"O .Sh CAPABILITIES
121 .\"O Refer to
122 .\"O .Xr termcap 5
123 .\"O for a description of the file layout.
124 .\"O
125 .Sh ¥±¥¤¥Ñ¥Ó¥ê¥Æ¥£
126 ¥Õ¥¡¥¤¥ë¥ì¥¤¥¢¥¦¥È¤ÎÀâÌÀ¤Ë¤Ä¤¤¤Æ¤Ï
127 .Xr termcap 5
128 ¤ò»²¾È¤»¤è¡£
129 .\"O
130 .\"O .Bl -column Namexxx Typexx "/var/spool/lpdxxxxx"
131 .\"O .Sy Name   Type    Description
132 .\"O .It "af    str" Ta Dv NULL Ta No "name of accounting file"
133 .\"O .It "br    num     none    if lp is a tty, set the baud rate"
134 .\"O .Pf ( Xr ioctl 2
135 .\"O call)
136 .\"O .It "cf    str" Ta Dv NULL Ta No "cifplot data filter"
137 .\"O .It "df    str" Ta Dv NULL Ta No "tex data filter"
138 .\"O .Pf ( Tn DVI
139 .\"O format)
140 .\"O .It "fc    num     0       if lp is a tty, clear flag bits"
141 .\"O .Pq Pa sgtty.h
142 .\"O .It "ff    str" Ta So Li \ef Sc Ta No "string to send for a form feed"
143 .\"O .It "fo    bool    false   print a form feed when device is opened"
144 .\"O .It "fs    num     0       like `fc' but set bits"
145 .\"O .It "gf    str" Ta Dv NULL Ta No "graph data filter"
146 .\"O .Pf ( Xr plot 3
147 .\"O format
148 .\"O .It "hl    bool    false   print the burst header page last"
149 .\"O .It "ic    bool    false   driver supports (non standard) ioctl to indent printout"
150 .\"O .It "if    str" Ta Dv NULL Ta No "name of text filter which does accounting"
151 .\"O .It "lf    str" Ta Pa /dev/console Ta No "error logging file name"
152 .\"O .It "lo    str" Ta Pa lock Ta No "name of lock file"
153 .\"O .It "lp    str" Ta Pa /dev/lp Ta No "device name to open for output"
154 .\"O .It "mx    num     1000    maximum file size (in"
155 .\"O .Dv BUFSIZ
156 .\"O blocks), zero = unlimited
157 .\"O .It "nd    str" Ta Dv NULL Ta No "next directory for list of queues (unimplemented)"
158 .\"O .It "nf    str" Ta Dv NULL Ta No "ditroff data filter (device independent troff)"
159 .\"O .It "of    str" Ta Dv NULL Ta No "name of output filtering program"
160 .\"O .It "pc    num     200     price per foot or page in hundredths of cents"
161 .\"O .It "pl    num     66      page length (in lines)"
162 .\"O .It "pw    num     132     page width (in characters)"
163 .\"O .It "px    num     0       page width in pixels (horizontal)"
164 .\"O .It "py    num     0       page length in pixels (vertical)"
165 .\"O .It "rf    str" Ta Dv NULL Ta No "filter for printing"
166 .\"O .Tn FORTRAN
167 .\"O style text files
168 .\"O .It "rg    str" Ta Dv NULL Ta No "restricted group. Only members of group allowed access"
169 .\"O .It "rm    str" Ta Dv NULL Ta No "machine name for remote printer"
170 .\"O .It "rp    str     ``lp''  remote printer name argument"
171 .\"O .It "rs    bool    false   restrict remote users to those with local accounts"
172 .\"O .It "rw    bool    false   open the printer device for reading and writing"
173 .\"O .It "sb    bool    false   short banner (one line only)"
174 .\"O .It "sc    bool    false   suppress multiple copies"
175 .\"O .It "sd    str" Ta Pa /var/spool/lpd Ta No "spool directory"
176 .\"O .It "sf    bool    false   suppress form feeds"
177 .\"O .It "sh    bool    false   suppress printing of burst page header"
178 .\"O .It "st    str" Ta Pa status Ta No "status file name"
179 .\"O .It "tf    str" Ta Dv NULL Ta No "troff data filter (cat phototypesetter)"
180 .\"O .It "tr    str" Ta Dv NULL Ta No "trailer string to print when queue empties"
181 .\"O .It "vf    str" Ta Dv NULL Ta No "raster image filter"
182 .\"O .El
183 .\"O .Pp
184 .\"O
185 .Bl -column Namexxx Typexx "/var/spool/lpdxxxxx"
186 .Sy Name        Type    Description
187 .It "af str" Ta Dv NULL Ta No "¥¢¥«¥¦¥ó¥È¥Õ¥¡¥¤¥ë̾"
188 .It "br num     none    lp ¤¬ tty ¤Î¾ì¹ç, ¤½¤Î¥Ü¡¼¥ì¡¼¥È¤òÀßÄꤹ¤ë"
189 .Pf ( Xr ioctl 2
190 ¥³¡¼¥ë)
191 .It "cf str" Ta Dv NULL Ta No "cifplot ¥Ç¡¼¥¿ÍÑ¥Õ¥£¥ë¥¿"
192 .It "df str" Ta Dv NULL Ta No "tex ¥Ç¡¼¥¿"
193 .Pf ( Tn DVI
194 ¥Õ¥©¡¼¥Þ¥Ã¥È)
195 ÍÑ¥Õ¥£¥ë¥¿
196 .It "fc num     0       lp ¤¬ tty ¤Î¾ì¹ç, ¥Õ¥é¥°¥Ó¥Ã¥È¤ò¥¯¥ê¥¢¡¼¤¹¤ë"
197 .Pq Pa sgtty.h
198 .It "ff str" Ta So Li \ef Sc Ta No "²þ¥Ú¡¼¥¸(form feed) ¤Î¤¿¤á¤ËÁ÷¿®¤¹¤ëʸ»úÎó"
199 .It "fo bool    false   ¥Ç¥Ð¥¤¥¹¥ª¡¼¥×¥ó»þ¤Ë²þ¥Ú¡¼¥¸(form feed)¤ò°õºþ¤¹¤ë"
200 .It "fs num     0       `fc' ¤ÈƱÍͤÀ¤¬¡¢¤³¤Á¤é¤Ï¥Ó¥Ã¥È¤ò¥»¥Ã¥È¤¹¤ë"
201 .It "gf str" Ta Dv NULL Ta No "¥°¥é¥Õ¥Ç¡¼¥¿ÍÑ¥Õ¥£¥ë¥¿"
202 .Pf ( Xr plot 3
203 ¥Õ¥©¡¼¥Þ¥Ã¥È )
204 .It "hl bool    false   ºÇ¸å¤Ë¥Ð¡¼¥¹¥È¥Ø¥Ã¥À¡¼¥Ú¡¼¥¸¤ò°õºþ¤¹¤ë"
205 .It "ic bool    false   ¥É¥é¥¤¥Ð¤Ï¥¤¥ó¥Ç¥ó¥ÈÉÕ¤­°õºþ¤Î¤¿¤á¤Ë (Èóɸ½à¤Î) ioctl ¤ò¥µ¥Ý¡¼¥È¤¹¤ë"
206 .It "if str" Ta Dv NULL Ta No "¥¢¥«¥¦¥ó¥È¤Î¤¿¤á¤Î¥Æ¥­¥¹¥È¥Õ¥£¥ë¥¿Ì¾"
207 .It "lf str" Ta Pa /dev/console Ta No "¥¨¥é¡¼¥í¥°¥Õ¥¡¥¤¥ë̾"
208 .It "lo str" Ta Pa lock Ta No "¥í¥Ã¥¯¥Õ¥¡¥¤¥ë̾"
209 .It "lp str" Ta Pa /dev/lp Ta No "½ÐÎϤËÂФ·¤Æ¥ª¡¼¥×¥ó¤¹¤ë¥Ç¥Ð¥¤¥¹Ì¾"
210 .It "mx num     1000    ºÇÂç¥Õ¥¡¥¤¥ë¥µ¥¤¥º ("
211 .Dv BUFSIZ
212 ¥Ö¥í¥Ã¥¯¤Î¿ô¤Ç»ØÄê), 0 = À©¸Â¤Ê¤·
213 .It "nd str" Ta Dv NULL Ta No "¥­¥å¡¼¥ê¥¹¥È¤Î¤¿¤á¤Î¼¡¤Î¥Ç¥£¥ì¥¯¥È¥ê (̤¼ÂÁõ)"
214 .It "nf str" Ta Dv NULL Ta No "ditroff ¥Ç¡¼¥¿(¥Ç¥Ð¥¤¥¹Èó°Í¸ troff)ÍÑ¥Õ¥£¥ë¥¿ "
215 .It "of str" Ta Dv NULL Ta No "½ÐÎÏ¥Õ¥£¥ë¥¿¥×¥í¥°¥é¥à̾"
216 .It "pc num     200     1 ¥Õ¥£¡¼¥È¤â¤·¤¯¤Ï 1 ¥Ú¡¼¥¸¤¢¤¿¤ê¤Î²Á³Ê(1/100 ¥»¥ó¥Èñ°Ì)"
217 .It "pl num     66      ¥Ú¡¼¥¸Ä¹ (¹Ô¿ô)"
218 .It "pw num     132     ¥Ú¡¼¥¸Éý (ʸ»ú¿ô)"
219 .It "px num     0       ¥Ô¥¯¥»¥ëñ°Ì¤Ç¤Î¥Ú¡¼¥¸Éý (¿åÊ¿Êý¸þ)"
220 .It "py num     0       ¥Ô¥¯¥»¥ëñ°Ì¤Ç¤Î¥Ú¡¼¥¸Ä¹ (¿âľÊý¸þ)"
221 .It "rf str" Ta Dv NULL Ta No ""
222 .Tn FORTRAN
223 ¥¹¥¿¥¤¥ë¤Î¥Æ¥­¥¹¥È¥Õ¥¡¥¤¥ë¤ò°õºþ¤¹¤ë¤¿¤á¤Î¥Õ¥£¥ë¥¿
224 .It "rg str" Ta Dv NULL Ta No "À©¸Â¥°¥ë¡¼¥×¡£¤³¤Î¥°¥ë¡¼¥×¤Î¥á¥ó¥Ð¡¼¤Î¤ß¥¢¥¯¥»¥¹¤¬µö¤µ¤ì¤ë"
225 .It "rm str" Ta Dv NULL Ta No "¥ê¥â¡¼¥È¥×¥ê¥ó¥¿¤Î¤¿¤á¤Î¥Þ¥·¥ó̾"
226 .It "rp str     ``lp''  ¥ê¥â¡¼¥È¥×¥ê¥ó¥¿Ì¾°ú¿ô"
227 .It "rs bool    false   ¥í¡¼¥«¥ë¤Ë¥¢¥«¥¦¥ó¥È¤ò¤â¤Ã¤¿¥ê¥â¡¼¥È¥æ¡¼¥¶¤Ë¸ÂÄꤹ¤ë"
228 .It "rw bool    false   Æɤ߽ñ¤­¤Î¤¿¤á¤Ë¥×¥ê¥ó¥¿¥Ç¥Ð¥¤¥¹¤ò¥ª¡¼¥×¥ó¤¹¤ë"
229 .It "sb bool    false   ¥·¥ç¡¼¥È¥Ð¥Ê¡¼(short banner) (1 ¹Ô¤Î¤ß)"
230 .It "sc bool    false   Ê£¿ô¥³¥Ô¡¼¤òÍÞÀ©¤¹¤ë"
231 .It "sd str" Ta Pa /var/spool/lpd Ta No "¥¹¥×¡¼¥ë¥Ç¥£¥ì¥¯¥È¥ê"
232 .It "sf bool    false   ²þ¥Ú¡¼¥¸(form feed)¤òÍÞÀ©¤¹¤ë"
233 .It "sh bool    false   ¥Ð¡¼¥¹¥È¥Ú¡¼¥¸¥Ø¥Ã¥À¡¼¤Î°õºþ¤òÍÞÀ©¤¹¤ë"
234 .It "st str" Ta Pa status Ta No "¥¹¥Æ¡¼¥¿¥¹¥Õ¥¡¥¤¥ë̾"
235 .It "tf str" Ta Dv NULL Ta No "troff ¥Ç¡¼¥¿(cat ¼Ì¿¢)ÍÑ¥Õ¥£¥ë¥¿ "
236 .It "tr str" Ta Dv NULL Ta No "¥­¥å¡¼¤¬¶õ¤Î¾ì¹ç¤Ë°õºþ¤¹¤ë¤¿¤á¤Î¸å½ñ¤­Ê¸»úÎó(trailer string)"
237 .It "vf str" Ta Dv NULL Ta No "¥é¥¹¥¿¥¤¥á¡¼¥¸(raster image)ÍÑ¥Õ¥£¥ë¥¿"
238 .El
239 .Pp
240 .\"O
241 .\"O If the local line printer driver supports indentation, the daemon
242 .\"O must understand how to invoke it.
243 .\"O
244 ¥í¡¼¥«¥ë¤Î¥é¥¤¥ó¥×¥ê¥ó¥¿¥É¥é¥¤¥Ð¤¬»ú²¼¤²¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤Ê¤é¤Ð¡¢
245 ¥Ç¡¼¥â¥ó¤Ï¤½¤ÎÊýË¡¤òÍý²ò¤Ç¤­¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
246 .\"O
247 .\"O .Sh FILTERS
248 .\"O The
249 .\"O .Xr lpd 8
250 .\"O daemon creates a pipeline of
251 .\"O .Em filters
252 .\"O to process files for various printer types.
253 .\"O The filters selected depend on the flags passed to
254 .\"O .Xr lpr 1 .
255 .\"O
256 .Sh ¥Õ¥£¥ë¥¿
257 .Xr lpd 8
258 ¥Ç¡¼¥â¥ó¤Ï¡¢¤µ¤Þ¤¶¤Þ¤Ê¥×¥ê¥ó¥¿¤Î¥¿¥¤¥×¤Ë±þ¤¸¤Æ¥Õ¥¡¥¤¥ë¤ò½èÍý¤¹¤ë¤¿¤á¤Ë¡¢
259 .Em filters
260 (¥Õ¥£¥ë¥¿)
261 ¤Î¥Ñ¥¤¥×¥é¥¤¥ó¤ò¹½ÃÛ¤·¤Æ¤¤¤ë¡£
262 ÁªÂò¤µ¤ì¤ë¥Õ¥£¥ë¥¿¤Ï¡¢
263 .Xr lpr 1 
264 ¤ØÅϤµ¤ì¤ë¥Õ¥é¥°¤Ë°Í¸¤·¤Æ¤¤¤ë¡£
265 .\"O
266 .\"O The pipeline set up is:
267 .\"O .Bd -literal -offset indent
268 .\"O p  pr | if regular text + pr(1)
269 .\"O none       if      regular text
270 .\"O c  cf      cifplot
271 .\"O d  df      DVI (tex)
272 .\"O g  gf      plot(3)
273 .\"O n  nf      ditroff
274 .\"O f  rf      Fortran
275 .\"O t  tf      troff
276 .\"O v  vf      raster image
277 .\"O .Ed
278 .\"O .Pp
279 .\"O
280 ¥Ñ¥¤¥×¥é¥¤¥ó¤Î¹½Ãۤϡ¢¼¡¤Î¤è¤¦¤Ë¤Ê¤ë :
281 .Bd -literal -offset indent
282 p       pr | if Ä̾ï¥Æ¥­¥¹¥È + pr(1)
283 none    if      Ä̾ï¥Æ¥­¥¹¥È
284 c       cf      cifplot
285 d       df      DVI (tex)
286 g       gf      plot(3)
287 n       nf      ditroff
288 f       rf      Fortran
289 t       tf      troff
290 v       vf      ¥é¥¹¥¿¥¤¥á¡¼¥¸(raster image)
291 .Ed
292 .Pp
293 .\"O
294 .\"O The
295 .\"O .Sy if
296 .\"O filter is invoked with arguments:
297 .\"O .Bd -filled -offset indent
298 .\"O .Cm if
299 .\"O .Op Fl c
300 .\"O .Fl w Ns Ar width
301 .\"O .Fl l Ns Ar length
302 .\"O .Fl i Ns Ar indent
303 .\"O .Fl n Ar login
304 .\"O .Fl h Ar host acct-file
305 .\"O .Ed
306 .\"O .Pp
307 .\"O
308 .Sy if
309 ¥Õ¥£¥ë¥¿¤Ï¡¢¼¡¤Î°ú¿ô¤È¤È¤â¤Ë¸Æ¤Ó½Ð¤µ¤ì¤ë:
310 .Bd -filled -offset indent
311 .Cm if
312 .Op Fl c
313 .Fl w Ns Ar width
314 .Fl l Ns Ar length
315 .Fl i Ns Ar indent
316 .Fl n Ar login
317 .Fl h Ar host acct-file
318 .Ed
319 .Pp
320 .\"O
321 .\"O The
322 .\"O .Fl c
323 .\"O flag is passed only if the
324 .\"O .Fl l
325 .\"O flag (pass control characters literally)
326 .\"O is specified to
327 .\"O .Xr lpr .
328 .\"O The
329 .\"O .Ar Width
330 .\"O function
331 .\"O and
332 .\"O .Ar length
333 .\"O specify the page width and length
334 .\"O (from
335 .\"O .Cm pw
336 .\"O and
337 .\"O .Cm pl
338 .\"O respectively) in characters.
339 .\"O The
340 .\"O .Fl n
341 .\"O and
342 .\"O .Fl h
343 .\"O parameters specify the login name and host name of the owner
344 .\"O of the job respectively.
345 .\"O The
346 .\"O .Ar Acct-file
347 .\"O function
348 .\"O is passed from the
349 .\"O .Cm af
350 .\"O .Nm printcap
351 .\"O entry.
352 .\"O .Pp
353 .\"O
354 .Fl c
355 ¥Õ¥é¥°¤Ï¡¢
356 .Xr lpr
357 ¤Ë
358 .Fl l
359 ¥Õ¥é¥°(À©¸æʸ»ú¤òʸ»ú¤È¤·¤Æ¤½¤Î¤Þ¤ÞÄ̤¹)¤¬»ØÄꤷ¤Æ¤¢¤ë»þ¤Ë¸Â¤Ã¤ÆÅϤµ¤ì¤ë¡£
360 .Ar width
361 ¤È
362 .Ar length
363 ¤Ï¡¢¥Ú¡¼¥¸¤ÎÉý¤ÈŤµ(¤½¤ì¤¾¤ì
364 .Cm pw
365 ¤È
366 .Cm pl
367 ¤«¤éÆÀ¤é¤ì¤ë)¤òʸ»ú¿ô¤Ç»ØÄꤹ¤ë¡£
368 .Fl n
369 ¤È
370 .Fl h
371 ¤Ï¤½¤ì¤¾¤ì¡¢¥¸¥ç¥Ö½êÍ­¼Ô¤Î¥í¥°¥¤¥ó̾¤È¥Û¥¹¥È̾¤ò»ØÄꤹ¤ë¡£
372 .Ar acct-file
373 ¤Ï¡¢
374 .Nm printcap
375 ¤Î
376 .Cm af
377 ¥¨¥ó¥È¥ê¤«¤éÅϤµ¤ì¤ë¡£
378 .Pp
379 .\"O
380 .\"O If no
381 .\"O .Cm if
382 .\"O is specified,
383 .\"O .Cm of
384 .\"O is used instead,
385 .\"O with the distinction that
386 .\"O .Cm of
387 .\"O is opened only once,
388 .\"O while
389 .\"O .Cm if
390 .\"O is opened for every individual job.
391 .\"O Thus,
392 .\"O .Cm if
393 .\"O is better suited to performing accounting.
394 .\"O The
395 .\"O .Cm of
396 .\"O is only given the
397 .\"O .Ar width
398 .\"O and
399 .\"O .Ar length
400 .\"O flags.
401 .\"O .Pp
402 .\"O
403 .Cm if
404 ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢
405 Âå¤ï¤ê¤Ë
406 .Cm of
407 ¤¬»ÈÍѤµ¤ì¤ë¡£¤³¤ì¤é¤Î´Ö¤Ë¤Ï¡¢
408 .Cm if
409 ¤¬¤½¤ì¤¾¤ì¤Î¥¸¥ç¥Ö¤ËÂФ·¤ÆËè²ó¥ª¡¼¥×¥ó¤µ¤ì¤ë¤Î¤ËÂФ·¡¢
410 .Cm of
411 ¤Ï 1 ²ó¤·¤«¥ª¡¼¥×¥ó¤µ¤ì¤Ê¤¤¤È¤¤¤¦°ã¤¤¤¬¤¢¤ë¡£
412 ¤·¤¿¤¬¤Ã¤Æ¡¢¥¢¥«¥¦¥ó¥Æ¥£¥ó¥°(accounting)¤ò¹Ô¤Ê¤¦¤Ë¤Ï
413 .Cm if
414 ¤ÎÊý¤¬Å¬¤·¤Æ¤¤¤ë¡£
415 .Cm of
416 ¤Ë¤Ï¡¢
417 .Ar width
418 ¤È
419 .Ar length
420 ¤Î 2 ¤Ä¤Î¥Õ¥é¥°¤¬Í¿¤¨¤é¤ì¤ë¤À¤±¤Ç¤¢¤ë¡£
421 .Pp
422 .\"O
423 .\"O All other filters are called as:
424 .\"O .Bd -filled -offset indent
425 .\"O .Nm filter
426 .\"O .Fl x Ns Ar width
427 .\"O .Fl y Ns Ar length
428 .\"O .Fl n Ar login
429 .\"O .Fl h Ar host acct-file
430 .\"O .Ed
431 .\"O .Pp
432 .\"O where
433 .\"O .Ar width
434 .\"O and
435 .\"O .Ar length
436 .\"O are represented in pixels,
437 .\"O specified by the
438 .\"O .Cm px
439 .\"O and
440 .\"O .Cm py
441 .\"O entries respectively.
442 .\"O .Pp
443 .\"O
444 ¾¤Î¤¹¤Ù¤Æ¤Î¥Õ¥£¥ë¥¿¤Ï¡¢¼¡¤Î¤è¤¦¤Ë¤·¤Æ¸Æ¤Ó½Ð¤µ¤ì¤ë:
445 .Bd -filled -offset indent
446 .Nm filter
447 .Fl x Ns Ar width
448 .Fl y Ns Ar length
449 .Fl n Ar login
450 .Fl h Ar host acct-file
451 .Ed
452 .Pp
453 ¤¿¤À¤·¡¢
454 .Ar width
455 ¤È
456 .Ar length
457 ¤Ï¥Ô¥¯¥»¥ëñ°Ì¤Çɽ¤µ¤ì¡¢¤½¤ì¤¾¤ì
458 .Cm px
459 ¥¨¥ó¥È¥ê¤È
460 .Cm py
461 ¥¨¥ó¥È¥ê¤Ë¤è¤Ã¤Æ»ØÄꤵ¤ì¤ë¡£
462 .Pp
463 .\"O
464 .\"O All filters take
465 .\"O .Em stdin
466 .\"O as the file,
467 .\"O .Em stdout
468 .\"O as the printer,
469 .\"O may log either to
470 .\"O .Em stderr
471 .\"O or using
472 .\"O .Xr syslog 3 ,
473 .\"O and must not ignore
474 .\"O .Dv SIGINT . 
475 .\"O
476 ¤¹¤Ù¤Æ¤Î¥Õ¥£¥ë¥¿¤Ï¡¢¤½¤Î¥Õ¥¡¥¤¥ë¤È¤·¤Æ
477 .Em stdin 
478 (ɸ½àÆþÎÏ)¤ò¡¢¥×¥ê¥ó¥¿¤È¤·¤Æ
479 .Em stdout 
480 (ɸ½à½ÐÎÏ)¤ò¤È¤ë¡£¤½¤Î¥í¥°¤Ï¡¢
481 .Em stderr 
482 (ɸ½à¥¨¥é¡¼½ÐÎÏ)¤ËÂФ·¤Æ¡¢¤â¤·¤¯¤Ï
483 .Xr syslog 3
484 ¤ò»È¤Ã¤Æ¤È¤é¤ì¤ë¡£¤Þ¤¿¡¢
485 .Dv SIGINT
486 ¤ò̵»ë¤¹¤ë¤³¤È¤Ïµö¤µ¤ì¤Ê¤¤¡£
487 .\"O
488 .\"O .Sh LOGGING
489 .\"O Error messages generated by the line printer programs themselves
490 .\"O (that is, the
491 .\"O .Xr lp Ns *
492 .\"O programs)
493 .\"O are logged by
494 .\"O .Xr syslog 3
495 .\"O using the
496 .\"O .Dv LPR
497 .\"O facility.
498 .\"O Messages printed on
499 .\"O .Em stderr
500 .\"O of one of the filters
501 .\"O are sent to the corresponding
502 .\"O .Cm lf
503 .\"O file.
504 .\"O The filters may, of course, use
505 .\"O .Xr syslog
506 .\"O themselves.
507 .\"O .Pp
508 .\"O Error messages sent to the console have a carriage return and a line
509 .\"O feed appended to them, rather than just a line feed.
510 .\"O
511 .Sh ¥í¥®¥ó¥°(LOGGING)
512 ¥é¥¤¥ó¥×¥ê¥ó¥¿¥×¥í¥°¥é¥à¼«¿È
513 (¤Ä¤Þ¤ê¡¢
514 .Xr lp Ns *
515 ¥×¥í¥°¥é¥à)
516 ¤Ë¤è¤Ã¤ÆÀ¸À®¤µ¤ì¤¿¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤Ï¡¢
517 .Dv LPR
518 ¤ò»È¤¦¤³¤È¤Ç
519 .Xr syslog 3
520 ¤Ë¤è¤Ã¤Æµ­Ï¿¤µ¤ì¤ë¡£
521 ¥Õ¥£¥ë¥¿¤Î¤¦¤Á¤Î 1 ¤Ä¤Î
522 .Em stderr
523 (ɸ½à¥¨¥é¡¼½ÐÎÏ)
524 ¾å¤Ë°õºþ¤µ¤ì¤¿¥á¥Ã¥»¡¼¥¸¤Ï¡¢¤½¤ì¤ËÂбþ¤¹¤ë
525 .Cm lf
526 ¥Õ¥¡¥¤¥ë¤Ø¤ÈÁ÷¤é¤ì¤ë¡£
527 ¤â¤Á¤í¤ó¡¢¥Õ¥£¥ë¥¿¤Ï¤½¤ì¼«¿È¤Ç
528 .Xr syslog
529 ¤ò»È¤Ã¤Æ¤â¤«¤Þ¤ï¤Ê¤¤¡£
530 .Pp
531 ¥³¥ó¥½¡¼¥ë¤ØÁ÷¤é¤ì¤ë¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤Ë¤Ï¡¢²þ¹Ô(LF)¤À¤±¤Ç¤Ï¤Ê¤¯¡¢
532 Éüµ¢(CR)¤È²þ¹Ô(LF)¤¬Äɲ䵤ì¤ë¡£
533 .\"O
534 .\"O .Sh SEE ALSO
535 .\"O .Xr termcap 5 ,
536 .\"O .Xr lpc 8 ,
537 .\"O .Xr lpd 8 ,
538 .\"O .Xr pac 8 ,
539 .\"O .Xr lpr 1 ,
540 .\"O .Xr lpq 1 ,
541 .\"O .Xr lprm 1
542 .\"O .Rs
543 .\"O .%T "4.3 BSD Line Printer Spooler Manual"
544 .\"O .Re
545 .\"O
546 .Sh ´ØÏ¢¹àÌÜ
547 .Xr termcap 5 ,
548 .Xr lpc 8 ,
549 .Xr lpd 8 ,
550 .Xr pac 8 ,
551 .Xr lpr 1 ,
552 .Xr lpq 1 ,
553 .Xr lprm 1
554 .Rs
555 .%T "4.3 BSD ¥é¥¤¥ó¥×¥ê¥ó¥¿¥¹¥×¡¼¥é¡¼¥Þ¥Ë¥å¥¢¥ë"
556 .Re
557 .\"O
558 .\"O .Sh HISTORY
559 .\"O The
560 .\"O .Nm
561 .\"O file format appeared in
562 .\"O .Bx 4.2 ..
563 .\"O
564 .Sh ÍúÎò
565 .Nm
566 ¥Õ¥¡¥¤¥ë¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï¡¢
567 .Bx 4.2 
568 ¤ÇÅо줷¤¿¡£
569
570