Merge the changes from the English version (1.60->1.61).

This commit is contained in:
Hiroki Sato 2002-12-14 15:39:17 +00:00
parent 52dad2700b
commit f9dff3d8d4
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=15337

View file

@ -1886,7 +1886,7 @@ $%&'()*+,-./01234567
# Installed in /usr/local/libexec/psif
#
read first_line
IFS="" read -r first_line
first_two_chars=`expr "$first_line" : '\(..\)'`
if [ "$first_two_chars" = "%!" ]; then
@ -1912,29 +1912,6 @@ fi</programlisting>
を参照してください) には、<literal>a2ps</literal>
と呼ばれるテキストから
PostScript に変換するプログラムが入っています。</para>
<!-- 2002/11/02:hrs - needs clarification, see [doc-jp 10242] -->
<!-- temporarily commented out...
<note>
<title>訳注</title>
<para>
上記スクリプトでは、
先頭の行を読み込むために read を使っていますが、
困ったことに、
read は読み込んだ文字列の先頭の空白文字を取り除いてしまいます。
従って、
これらの空白文字は印字されないことになり、
印字結果がファイルのイメージと異なる場合が出てきます。
この事情は csh を利用した場合でも変わりません。
仮に、先頭の空白文字を除去しない read コマンドを作ったとしても、
「echo $first_line」の $first_line
変数の内容をシェルが展開する際に $first_line
の先頭の空白文字が失われるため、問題の解決にはなりません。
残念ながら、
訳者はこの問題をシェルプログラムだけで解決する方法をしりません。
perl か C 言語の力を借りないと解決できないと思います。</para>
</note>
-->
</sect3>
<sect3 id="printing-advanced-ps">
@ -1998,7 +1975,7 @@ printf "\033&amp;k2G" || exit 2
#
# Read first two characters of the file
#
read first_line
IFS="" read -r first_line
first_two_chars=`expr "$first_line" : '\(..\)'`
if [ "$first_two_chars" = "%!" ]; then
@ -2026,7 +2003,8 @@ else
# Plain text or HP/PCL, so just print it directly; print a form
# at the end to eject the last page.
#
echo $first_line &amp;&amp; cat &amp;&amp; printf "\033&amp;l0H" &amp;&amp; exit 0
echo "$first_line" &amp;&amp; cat &amp;&amp; printf "\033&amp;l0H" &amp;&amp;
exit 0
fi
exit 2</programlisting>