Skip to content

Commit d4a3eba

Browse files
committed
[chapter01][translating] section 1.6, done
1 parent 634418d commit d4a3eba

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

chapter01.tex

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -625,15 +625,15 @@ \subsection{被忽略的空格}
625625
\def\a{\penalty200}
626626
\a 0
627627
\end{verbatim}
628-
展开的结果{\italic 并非}是(这将放置值为 \n{200} 的惩罚项,并排印数字 \n0)
628+
展开的结果\emph{不是}(设置惩罚项为 \n{200},并排版数字 \n0)
629629
\begin{verbatim}
630630
\penalty200 0
631631
\end{verbatim}
632632
而是
633633
\begin{verbatim}
634634
\penalty2000
635635
\end{verbatim}
636-
这是由于 \cs{a} 后的空格会被输入处理器忽略,从而展开处理器所得到的控制序列是
636+
这是由于输入处理器会忽略 \cs{a} 后的空格,因此展开处理器的输入流中的内容是:
637637
\begin{verbatim}
638638
\a0
639639
\end{verbatim}
@@ -646,8 +646,9 @@ \subsection{内部量值及其表示}
646646
%quantities have an external representation,
647647
%which is a string of characters, such as
648648
%\n{4711} or~\n{91.44cm}.
649-
\TeX\ 拥有多种内部量值,诸如整数和尺寸。这些内部量值的外部表示方法只有一种,
650-
那就是字符串表示,例如 \n{4711} 或者 \n{91.44cm}。
649+
\TeX 使用了多重内部量,比如说整数和尺寸。
650+
这些内部量的外部表示是同一的:字符组成的字符串。
651+
例如 \n{4711} 和 \n{91.44cm}。
651652

652653
%Conversions between the internal value and the external
653654
%representation take place on two different levels,
@@ -663,16 +664,12 @@ \subsection{内部量值及其表示}
663664
%\end{verbatim}
664665
%and all of these statements are handled by the execution
665666
%processor.
666-
内部量值与外部表示之间的转换分别发生在两个不同的层面,具体依赖于转换的方向
667-
对于字符串转换为内部量值,例如
667+
内部量与外部表示之间的转换发生在执行处理器或展开处理器中
668+
具体来说,外部表示向内部量的转换发生在执行处理器中
668669
\begin{verbatim}
669670
\pageno=12 \baselineskip=13pt
670-
\end{verbatim}
671-
或者
672-
\begin{verbatim}
673671
\vskip 5.71pt
674672
\end{verbatim}
675-
像这样的语句会在执行处理器中被处理。
676673

677674
%On the other hand, the conversion of the internal
678675
%values into a representation as a string of
@@ -682,12 +679,11 @@ \subsection{内部量值及其表示}
682679
%\the\baselineskip
683680
%\end{verbatim}
684681
%are all processed by expansion.
685-
另一方面,内部量值到外部表示的转换是由展开处理器完成的。例如
682+
内部量向外部表示的转换发生在展开处理器中
686683
\begin{verbatim}
687684
\number\pageno \romannumeral\year
688685
\the\baselineskip
689686
\end{verbatim}
690-
这些语句会被展开处理器处理为内部量值的字符串记号。
691687

692688
%As a final example, suppose \verb>\count2=45>, and
693689
%consider the statement
@@ -705,18 +701,18 @@ \subsection{内部量值及其表示}
705701
%\count0=1453
706702
%\end{verbatim}
707703
%and execute this.
708-
最后一个例子,假设 \verb>\count2=45>,看下面的语句:
704+
最后再举一例。
705+
假设 \verb|\count2=45|,
706+
则下列代码
709707
\begin{verbatim}
710708
\count0=1\number\count2 3
711709
\end{verbatim}
712-
展开处理器可将 \verb>\number\count2> 展开为字符串 \n{45},
713-
\n2 之后的空格并不会结束正在赋予的数值:
714-
它只用于定界 \cs{count} 寄存器的数字。
715-
从而下一层级的执行处理器看到的是:
710+
首先将 \verb>\number\count2>\textvisiblespace 被展开为字符串 \n{45},
711+
注意 \verb|\count2| 后的空格被用于界定计数器编号而已被展开。
712+
因此,下一级处理时,执行处理器看到并执行的是:
716713
\begin{verbatim}
717714
\count0=1453
718715
\end{verbatim}
719-
于是它便奉命行事。
720716

721717
%%\endinput
722718
%\endinput

0 commit comments

Comments
 (0)