The translation is temporarily closed for contributions due to maintenance, please come back later.

Translation

(itstool) path: sect2/programlisting
English
lp:\ <co xml:id="printing-lpd-co-name"/>
:lp=/dev/unlpt0:\ <co xml:id="printing-lpd-co-device"/>
:sh:\ <co xml:id="printing-lpd-co-header"/>
:mx#0:\ <co xml:id="printing-lpd-co-mx"/>
:sd=/var/spool/lpd/lp:\ <co xml:id="printing-lpd-co-sd"/>
:lf=/var/log/lpd-errs: <co xml:id="printing-lpd-co-lf"/>
Context English Chinese (Simplified) (zh_CN) State
For the easiest printing, choose a printer that supports <trademark class="registered">PostScript</trademark>. Printers that support <acronym>PCL</acronym> are the next preferred. With <package role="port">print/ghostscript9-base</package>, these printers can be used as if they understood <trademark class="registered">PostScript</trademark> natively. Printers that support <trademark class="registered">PostScript</trademark> or <acronym>PCL</acronym> directly almost always support direct printing of plain <acronym>ASCII</acronym> text files also. 为简化打印过程,请选择支持<trademark class="registered">PostScript</trademark>的打印机。其次是支持<acronym>PCL</acronym>的打印机。通过使用<package role="port">print/ghostscript9-base</package>,这些打印机可以直接打印<trademark class="registered">PostScript</trademark>文件。支持<trademark class="registered">PostScript</trademark>或<acronym>PCL</acronym>的打印机几乎总是支持直接打印纯<acronym>ASCII</acronym>文本文件。
Line-based printers like typical inkjets usually do not support <trademark class="registered">PostScript</trademark> or <acronym>PCL</acronym>. They often can print plain <acronym>ASCII</acronym> text files. <package role="port">print/ghostscript9-base</package> supports the <acronym>PDL</acronym>s used by some of these printers. However, printing an entire graphic-based page on these printers is often very slow due to the large amount of data to be transferred and printed. 行式打印机,如典型的喷墨打印机通常不支持<trademark class="registered">PostScript</trademark><acronym>或PCL</acronym>。他们通常可以打印纯<acronym>ASCII</acronym>文本文件。<package role="port">print/ghostscript9-base</package>支持其中一些打印机使用的<acronym>PDL</acronym>。但是,由于这些打印机上打印整个图形页面通常非常缓慢,因为要传输和打印了大量数据。
Host-based printers are often more difficult to set up. Some cannot be used at all because of proprietary <acronym>PDL</acronym>s. Avoid these printers when possible. 以主机为基础的打印机通常较难设定,有些会因为用了专用的<acronym>PDL</acronym>而无法使用,尽可能避免使用这类的打印机。
Descriptions of many <acronym>PDL</acronym>s can be found at <link xlink:href="http://www.undocprint.org/formats/page_description_languages"/>. The particular <acronym>PDL</acronym> used by various models of printers can be found at <link xlink:href="http://www.openprinting.org/printers"/>. 有关各种<acronym>PDL</acronym>的介绍可至<link xlink:href="http://www.undocprint.org/formats/page_description_languages"/>。各种型号打印机所使用的特定<acronym>PDL</acronym>可至<link xlink:href="http:// www.openprinting.org/printers"/>查询。
Direct Printing 直接打印
For occasional printing, files can be sent directly to a printer device without any setup. For example, a file called <filename>sample.txt</filename> can be sent to a <acronym>USB</acronym> printer: 对于偶尔打印,文件可以直接传送到打印机装置,无需做任何设定。例如,要传送一个名称为<filename>sample.txt</filename>的文件到<acronym>USB</acronym>打印机:
<prompt>#</prompt> <userinput>cp sample.txt /dev/unlpt0</userinput> <prompt>#</prompt> <userinput>cp sample.txt /dev/unlpt0</userinput>
Direct printing to network printers depends on the abilities of the printer, but most accept print jobs on port 9100, and <citerefentry><refentrytitle>nc</refentrytitle><manvolnum>1</manvolnum></citerefentry> can be used with them. To print the same file to a printer with the <acronym>DNS</acronym> hostname of <replaceable>netlaser</replaceable>: 要直接使用网络打印机打印需看该打印机支持的功能,但大多数会接受端口号9100的打印作业,可使用<citerefentry><refentrytitle>nc</refentrytitle><manvolnum>1</manvolnum></citerefentry>来完成。要使用<acronym>DNS</acronym>主机名称为<replaceable>netlaser</replaceable>的打印机打印与上述相同的文件可:
<prompt>#</prompt> <userinput>nc <replaceable>netlaser</replaceable> 9100 &lt; sample.txt</userinput> <prompt>#</prompt> <userinput>nc <replaceable>netlaser</replaceable> 9100 &lt; sample.txt</userinput>
<acronym>LPD</acronym> (Line Printer Daemon) <acronym>LPD</acronym>(行列式打印机Daemon)
Printing a file in the background is called <emphasis>spooling</emphasis>. A spooler allows the user to continue with other programs on the computer without waiting for the printer to slowly complete the print job. 在背景打印一个文件称作<emphasis>Spooling</emphasis>,缓冲程序(Spooler)让使用者能够继续执行电脑的其他程序而不需要等候打印机缓慢的完成打印工作。
FreeBSD includes a spooler called <citerefentry><refentrytitle>lpd</refentrytitle><manvolnum>8</manvolnum></citerefentry>. Print jobs are submitted with <citerefentry><refentrytitle>lpr</refentrytitle><manvolnum>1</manvolnum></citerefentry>. FreeBSD内含的缓冲程序(Spooler)称作<citerefentry><refentrytitle>lpd</refentrytitle><manvolnum>8</manvolnum></citerefentry>,而打印工作会使用<citerefentry><refentrytitle>lpr</refentrytitle><manvolnum>1</manvolnum></citerefentry>来提交。
Initial Setup 初始设定
A directory for storing print jobs is created, ownership is set, and the permissions are set to prevent other users from viewing the contents of those files: 建立要用来储存打印工作的目录、设定拥有关系以及权限来避免其他使用者可以检视这些文件的内容:
Printers are defined in <filename>/etc/printcap</filename>. An entry for each printer includes details like a name, the port where it is attached, and various other settings. Create <filename>/etc/printcap</filename> with these contents: 印表机会定义在<filename>/etc/printcap</filename>,每台打印机项目所包含的详细数据有名称、连接的接头以及各种其他设定。建立<filename>/etc/printcap</filename>使用以下内容:
lp:\ <co xml:id="printing-lpd-co-name"/>
:lp=/dev/unlpt0:\ <co xml:id="printing-lpd-co-device"/>
:sh:\ <co xml:id="printing-lpd-co-header"/>
:mx#0:\ <co xml:id="printing-lpd-co-mx"/>
:sd=/var/spool/lpd/lp:\ <co xml:id="printing-lpd-co-sd"/>
:lf=/var/log/lpd-errs: <co xml:id="printing-lpd-co-lf"/>
lp:\ <co xml:id="printing-lpd-co-name"/>
:lp=/dev/unlpt0:\ <co xml:id="printing-lpd-co-device"/>
:sh:\ <co xml:id="printing-lpd-co-header"/>
:mx#0:\ <co xml:id="printing-lpd-co-mx"/>
:sd=/var/spool/lpd/lp:\ <co xml:id="printing-lpd-co-sd"/>
:lf=/var/log/lpd-errs: <co xml:id="printing-lpd-co-lf"/>
The name of this printer. <citerefentry><refentrytitle>lpr</refentrytitle><manvolnum>1</manvolnum></citerefentry> sends print jobs to the <literal>lp</literal> printer unless another printer is specified with <option>-P</option>, so the default printer should be named <literal>lp</literal>. 打印机的名称。<citerefentry><refentrytitle>lpr</refentrytitle><manvolnum>1</manvolnum></citerefentry>会传送打印工作到<literal>lp</literal>打印机,除非有使用<option>-P</option>来指定其他打印机,所以预的打印机名称应使用<literal>lp</literal>。
The device where the printer is connected. Replace this line with the appropriate one for the connection type shown here. 打印机所连接到装置。替换此行为正确的联机类型,如此处所示。
Connection Type 联机类型
Device Entry in <filename>/etc/printcap</filename> 在<filename>/etc/printcap</filename>的装置项目
:lp=/dev/unlpt0:\ :lp=/dev/unlpt0:\
This is the <emphasis>non-resetting</emphasis> <acronym>USB</acronym> printer device. If problems are experienced, use <filename>ulpt0</filename> instead, which resets the <acronym>USB</acronym> port on each use. 此为<emphasis>不会重设</emphasis> <acronym>USB</acronym>打印机的装置,若使用上发生问题,请改使用<filename>ulpt0</filename>,这个装置会在每次使用后重设<acronym>USB</acronym>端口。
Parallel 并列
For a printer supporting the <acronym>LPD</acronym> protocol: 针对支持<acronym>LPD</acronym>通信协定的打印机:
For printers supporting port 9100 printing: 针对支持使用端口号9100打印的打印机:
:lp=9100@<replaceable>network-printer-name</replaceable>:\ :lp=9100@<replaceable>network-printer-name</replaceable>:\
For both types, replace <replaceable>network-printer-name</replaceable> with the <acronym>DNS</acronym> host name of the network printer. 针对两者皆支持的打印机,请替换<replaceable>network-printer-name</replaceable>为网络打印机的<acronym>DNS</acronym>主机名称。
Serial 序列
:lp=/dev/cuau0:br=9600:pa=none:\ :lp=/dev/cuau0:br=9600:pa=none:\
These values are for a typical serial printer connected to a motherboard serial port. The baud rate is 9600, and no parity is used. 这些是一般序列打印机连接到主板序列端口会采用的数值,传输速率(Baud rate)是9600且无同位检查(No Parity)。
Suppress the printing of a header page at the start of a print job. 在打印工作开始时不打印首页。

Loading…

lp:\ <co xml:id="printing-lpd-co-name"/>
:lp=/dev/unlpt0:\ <co xml:id="printing-lpd-co-device"/>
:sh:\ <co xml:id="printing-lpd-co-header"/>
:mx#0:\ <co xml:id="printing-lpd-co-mx"/>
:sd=/var/spool/lpd/lp:\ <co xml:id="printing-lpd-co-sd"/>
:lf=/var/log/lpd-errs: <co xml:id="printing-lpd-co-lf"/>
lp:\ <co xml:id="printing-lpd-co-name"/>
:lp=/dev/unlpt0:\ <co xml:id="printing-lpd-co-device"/>
:sh:\ <co xml:id="printing-lpd-co-header"/>
:mx#0:\ <co xml:id="printing-lpd-co-mx"/>
:sd=/var/spool/lpd/lp:\ <co xml:id="printing-lpd-co-sd"/>
:lf=/var/log/lpd-errs: <co xml:id="printing-lpd-co-lf"/>
a year ago
Browse all component changes

Things to check

Unchanged translation

Source and translation are identical

Reset

Glossary

English Chinese (Simplified) (zh_CN)
No related strings found in the glossary.

Source information

Source string comment
(itstool) path: sect2/programlisting
Flags
no-wrap
Source string location
book.translate.xml:17607
String age
a year ago
Source string age
a year ago
Translation file
books/zh_CN/handbook.po, string 2968