Преглед изворни кода

chapter06: Translate bc instruction

Xi Ruoyao пре 7 година
родитељ
комит
4c8d41d8a8
1 измењених фајлова са 26 додато и 17 уклоњено
  1. 26 17
      chapter06/bc.xml

+ 26 - 17
chapter06/bc.xml

@@ -23,8 +23,7 @@
   <sect2 role="package">
     <title/>
 
-    <para>The Bc package contains an arbitrary precision numeric processing 
-    language.</para>
+    <para>Bc 软件包包含一个任意精度数值处理语言。</para>
 
     <segmentedlist>
       <segtitle>&buildtime;</segtitle>
@@ -39,10 +38,10 @@
   </sect2>
 
   <sect2 role="installation">
-    <title>安装Bc</title>
+    <title>安装 Bc</title>
 
-    <para>First, change an internal script to use <command>sed</command> instead 
-    of <command>ed</command>:</para>
+    <para>首先修改一个内部脚本,使它使用 <command>sed</command>,
+    而不是 <command>ed</command>:</para>
 
 <screen><userinput remap="pre">cat &gt; bc/fix-libmath_h &lt;&lt; "EOF"
 #! /bin/bash
@@ -56,17 +55,20 @@ sed -e '$ s/$/0}/' \
     -i libmath.h
 EOF</userinput></screen> 
 
-    <para>Create temporary symbolic links so the package can find
+    <!--para>Create temporary symbolic links so the package can find
     the readline library and confirm that its required libncurses
     library is available. Even though the libraries are in /tools/lib
     at this point, the system will use /usr/lib at the end of
-    this chapter.</para>
+    this chapter.</para-->
+	<para> 创建一个临时的符号链接,使该软件包可以找到 readline 库,
+		并确认它需要的 libncurses 库可用。虽然目前它还在 /tools/lib
+		中,但在本章结束时系统会使用 /usr/lib 中的最后版本。 </para>
 
 <screen><userinput remap="pre">ln -sv /tools/lib/libncursesw.so.6 /usr/lib/libncursesw.so.6
 ln -sfv libncurses.so.6 /usr/lib/libncurses.so</userinput></screen>
 
-    <para>Fix an issue in <command>configure</command> due to missing
-    files in the early stages of LFS:</para>
+	<para>由于LFS 早期阶段缺失了一些文件,需要修正
+		<command>configure</command> 中的一个问题:</para>
 
 <screen><userinput remap="pre">sed -i -e '/flex/s/as_fn_error/: ;; # &amp;/' configure</userinput></screen>
 
@@ -78,15 +80,18 @@ ln -sfv libncurses.so.6 /usr/lib/libncurses.so</userinput></screen>
             --infodir=/usr/share/info</userinput></screen>
 
     <variablelist>
-      <title>The meaning of the configure options:</title>
+      <title>配置选项的含义:</title>
 
       <varlistentry>
         <term><parameter>--with-readline</parameter></term>
         <listitem>
-          <para>This option tells Bc to use the <filename
+          <!--para>This option tells Bc to use the <filename
           class="libraryfile">readline</filename> library that is already
           installed on the system rather than using its own readline
-          version.</para>
+          version.</para-->
+          <para>该选项告诉 Bc 使用系统中已经安装好的
+			  <filename class="libraryfile">readline</filename>
+			  库,而不是它自己附带的 readline 。</para>
         </listitem>
       </varlistentry>
 
@@ -96,10 +101,14 @@ ln -sfv libncurses.so.6 /usr/lib/libncurses.so</userinput></screen>
 
 <screen><userinput remap="make">make</userinput></screen>
 
-    <para>To test bc, run the commands below. There is quite a bit of output,
+    <!--para>To test bc, run the commands below. There is quite a bit of output,
     so you may want to redirect it to a file. There are a very small percentage
     of tests (10 of 12,144) that will indicate a round off error at the last
-    digit.</para>
+    digit.</para-->
+    <para>为了测试 bc,执行下列命令。它会输出很多内容,
+		因此您可能希望把输出重定向到文件。
+		少量测试 (12144 个测试中有 10 个)会在最后一位出现舍入误差。
+	</para>
 
 <screen><userinput remap="test">echo "quit" | ./bc/bc -l Test/checklib.b</userinput></screen>
 
@@ -116,7 +125,7 @@ ln -sfv libncurses.so.6 /usr/lib/libncurses.so</userinput></screen>
       <segtitle>安装的程序</segtitle>
 
       <seglistitem>
-        <seg>bc and dc</seg>
+        <seg>bc  dc</seg>
       </seglistitem>
     </segmentedlist>
 
@@ -128,7 +137,7 @@ ln -sfv libncurses.so.6 /usr/lib/libncurses.so</userinput></screen>
       <varlistentry id="bc">
         <term><command>bc</command></term>
         <listitem>
-          <para>A command line calculator</para>
+          <para>一个命令行计算器</para>
           <indexterm zone="ch-system-bc bc">
             <primary sortas="b-bc">bc</primary>
           </indexterm>
@@ -138,7 +147,7 @@ ln -sfv libncurses.so.6 /usr/lib/libncurses.so</userinput></screen>
       <varlistentry id="dc">
         <term><command>dc</command></term>
         <listitem>
-          <para>A reverse-polish command line calculator</para>
+          <para>一个逆波兰式命令行计算器</para>
           <indexterm zone="ch-system-bc dc">
             <primary sortas="b-dc">dc</primary>
           </indexterm>