xlator_call.8
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 8 代码 · 共 114 行
8
114 行
.TH xlator_call 8.SH Namexlator_call \- shell script to invoke PostScript translators.SH Syntax.B xlator_call.I datatype.I orientation.I pagesize.I width.I length.I indent.SH DescriptionThis Bourne shell script can be called by the.PN lpdline printer daemon to invoke the appropriate translator to convert eachdata type to PostScript.The data type passed by.PN lpdmay be specified by using the.PN lprcommand with the \fB\-D\fIdatatype\fR option,or by using the \fBDa=datatype\fR capability in the.PN printcapfile..PPFor a file in a data syntax to be translated to PostScript, the.PN xlator_callscript must contain a case branch which recognizes the data type string andcalls a suitable filter.The supplied.PN xlator_callrecognizes the ANSI, ASCII, ReGIS and Tektronix 4014 data types..SH Arguments.I datatype.brThe valid data types are:.PN ansi , .PN ascii , .PN postscript , .PN regis , .PN tek4014 ,or any other for which a translator has been installed..PP.I orientation.brThe valid orientations are:.Iportrait \fRor\fI landscape..PP.I pagesize.brThe valid page sizes are:.PN letter , .PN a , .PN ledger , .PN b , .PN legal , .PN executive , .PN a5 , .PN a4 , .PN a3 , .PN b5 ,or.PN b4 ..PP.I width.brThe width (in characters) of the page..PP.I length.brThe length (in lines) of the page..PP.I indent.brThe amount (in spaces) the output is to be indented..PPAll the valid arguments are described in detail by the.PN lpr(1)reference page..SH ExamplesAn example shell script is shown below:.EXcase $datatype inansi) exec ansi_ps \-F $pagesize \-O $orientation \-e "$@";;ascii) echo "(\\004) cvn {} def" exec ln03rof \-w$width \-l$length \-i$indent;;postscript) exec cat;;tek4014) exec tek4014_ps \-F $pagesize \-O $orientation;;regis) exec regis_ps \-F $pagesize \-O $orientation;;*) echo "$0: Translator for data type $datatype not installed" >&2esac.EE.PPWhen the shell script is called, the path searched is:.EX/usr/local/lib/lpdfilters:/usr/ucb:/bin:/usr/bin: /usr/lib:/usr/lib/lpdfilters.EE.SH Files.TP 40.PN /usr/lib/lpdfilters/xlator_callThe.PN xlator_callscript.SH See Alsolno3rof(8), printcap(5), ansi_ps(8), lpd(8)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?