Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 47b4c0f

Browse files
committed
replace ASCII by macro call
1 parent 9b623b3 commit 47b4c0f

8 files changed

Lines changed: 36 additions & 36 deletions

File tree

Doc/ref/ref1.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ \section{Notation}
6565

6666
In lexical definitions (as the example above), two more conventions
6767
are used: Two literal characters separated by three dots mean a choice
68-
of any single character in the given (inclusive) range of ASCII
68+
of any single character in the given (inclusive) range of \ASCII{}
6969
characters. A phrase between angular brackets (\verb@<...>@) gives an
7070
informal description of the symbol defined; e.g. this could be used
7171
to describe the notion of `control character' if needed.

Doc/ref/ref2.tex

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -233,16 +233,16 @@ \subsection{String literals}
233233
\verb/\\/ & Backslash (\verb/\/) \\
234234
\verb/\'/ & Single quote (\verb/'/) \\
235235
\verb/\"/ & Double quote (\verb/"/) \\
236-
\verb/\a/ & ASCII Bell (BEL) \\
237-
\verb/\b/ & ASCII Backspace (BS) \\
238-
%\verb/\E/ & ASCII Escape (ESC) \\
239-
\verb/\f/ & ASCII Formfeed (FF) \\
240-
\verb/\n/ & ASCII Linefeed (LF) \\
241-
\verb/\r/ & ASCII Carriage Return (CR) \\
242-
\verb/\t/ & ASCII Horizontal Tab (TAB) \\
243-
\verb/\v/ & ASCII Vertical Tab (VT) \\
244-
\verb/\/{\em ooo} & ASCII character with octal value {\em ooo} \\
245-
\verb/\x/{\em xx...} & ASCII character with hex value {\em xx...} \\
236+
\verb/\a/ & \ASCII{} Bell (BEL) \\
237+
\verb/\b/ & \ASCII{} Backspace (BS) \\
238+
%\verb/\E/ & \ASCII{} Escape (ESC) \\
239+
\verb/\f/ & \ASCII{} Formfeed (FF) \\
240+
\verb/\n/ & \ASCII{} Linefeed (LF) \\
241+
\verb/\r/ & \ASCII{} Carriage Return (CR) \\
242+
\verb/\t/ & \ASCII{} Horizontal Tab (TAB) \\
243+
\verb/\v/ & \ASCII{} Vertical Tab (VT) \\
244+
\verb/\/{\em ooo} & \ASCII{} character with octal value {\em ooo} \\
245+
\verb/\x/{\em xx...} & \ASCII{} character with hex value {\em xx...} \\
246246
\hline
247247
\end{tabular}
248248
\end{center}
@@ -358,7 +358,7 @@ \section{Delimiters}
358358
= ;
359359
\end{verbatim}
360360

361-
The following printing ASCII characters are not used in Python. Their
361+
The following printing \ASCII{} characters are not used in Python. Their
362362
occurrence outside string literals and comments is an unconditional
363363
error:
364364
\index{ASCII}

Doc/ref/ref3.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ \section{The standard type hierarchy} \label{types}
211211
Characters represent (at least) 8-bit bytes. The built-in
212212
functions \verb@chr()@ and \verb@ord()@ convert between characters
213213
and nonnegative integers representing the byte values.
214-
Bytes with the values 0-127 represent the corresponding ASCII values.
214+
Bytes with the values 0-127 represent the corresponding \ASCII{} values.
215215
The string data type is also used to represent arrays of bytes, e.g.
216216
to hold data read from a file.
217217
\obindex{string}
@@ -221,10 +221,10 @@ \section{The standard type hierarchy} \label{types}
221221
\bifuncindex{chr}
222222
\bifuncindex{ord}
223223

224-
(On systems whose native character set is not ASCII, strings may use
224+
(On systems whose native character set is not \ASCII{}, strings may use
225225
EBCDIC in their internal representation, provided the functions
226-
\verb@chr()@ and \verb@ord()@ implement a mapping between ASCII and
227-
EBCDIC, and string comparison preserves the ASCII order.
226+
\verb@chr()@ and \verb@ord()@ implement a mapping between \ASCII{} and
227+
EBCDIC, and string comparison preserves the \ASCII{} order.
228228
Or perhaps someone can propose a better rule?)
229229
\index{ASCII}
230230
\index{EBCDIC}

Doc/ref1.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ \section{Notation}
6565

6666
In lexical definitions (as the example above), two more conventions
6767
are used: Two literal characters separated by three dots mean a choice
68-
of any single character in the given (inclusive) range of ASCII
68+
of any single character in the given (inclusive) range of \ASCII{}
6969
characters. A phrase between angular brackets (\verb@<...>@) gives an
7070
informal description of the symbol defined; e.g. this could be used
7171
to describe the notion of `control character' if needed.

Doc/ref2.tex

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -233,16 +233,16 @@ \subsection{String literals}
233233
\verb/\\/ & Backslash (\verb/\/) \\
234234
\verb/\'/ & Single quote (\verb/'/) \\
235235
\verb/\"/ & Double quote (\verb/"/) \\
236-
\verb/\a/ & ASCII Bell (BEL) \\
237-
\verb/\b/ & ASCII Backspace (BS) \\
238-
%\verb/\E/ & ASCII Escape (ESC) \\
239-
\verb/\f/ & ASCII Formfeed (FF) \\
240-
\verb/\n/ & ASCII Linefeed (LF) \\
241-
\verb/\r/ & ASCII Carriage Return (CR) \\
242-
\verb/\t/ & ASCII Horizontal Tab (TAB) \\
243-
\verb/\v/ & ASCII Vertical Tab (VT) \\
244-
\verb/\/{\em ooo} & ASCII character with octal value {\em ooo} \\
245-
\verb/\x/{\em xx...} & ASCII character with hex value {\em xx...} \\
236+
\verb/\a/ & \ASCII{} Bell (BEL) \\
237+
\verb/\b/ & \ASCII{} Backspace (BS) \\
238+
%\verb/\E/ & \ASCII{} Escape (ESC) \\
239+
\verb/\f/ & \ASCII{} Formfeed (FF) \\
240+
\verb/\n/ & \ASCII{} Linefeed (LF) \\
241+
\verb/\r/ & \ASCII{} Carriage Return (CR) \\
242+
\verb/\t/ & \ASCII{} Horizontal Tab (TAB) \\
243+
\verb/\v/ & \ASCII{} Vertical Tab (VT) \\
244+
\verb/\/{\em ooo} & \ASCII{} character with octal value {\em ooo} \\
245+
\verb/\x/{\em xx...} & \ASCII{} character with hex value {\em xx...} \\
246246
\hline
247247
\end{tabular}
248248
\end{center}
@@ -358,7 +358,7 @@ \section{Delimiters}
358358
= ;
359359
\end{verbatim}
360360

361-
The following printing ASCII characters are not used in Python. Their
361+
The following printing \ASCII{} characters are not used in Python. Their
362362
occurrence outside string literals and comments is an unconditional
363363
error:
364364
\index{ASCII}

Doc/ref3.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ \section{The standard type hierarchy} \label{types}
211211
Characters represent (at least) 8-bit bytes. The built-in
212212
functions \verb@chr()@ and \verb@ord()@ convert between characters
213213
and nonnegative integers representing the byte values.
214-
Bytes with the values 0-127 represent the corresponding ASCII values.
214+
Bytes with the values 0-127 represent the corresponding \ASCII{} values.
215215
The string data type is also used to represent arrays of bytes, e.g.
216216
to hold data read from a file.
217217
\obindex{string}
@@ -221,10 +221,10 @@ \section{The standard type hierarchy} \label{types}
221221
\bifuncindex{chr}
222222
\bifuncindex{ord}
223223

224-
(On systems whose native character set is not ASCII, strings may use
224+
(On systems whose native character set is not \ASCII{}, strings may use
225225
EBCDIC in their internal representation, provided the functions
226-
\verb@chr()@ and \verb@ord()@ implement a mapping between ASCII and
227-
EBCDIC, and string comparison preserves the ASCII order.
226+
\verb@chr()@ and \verb@ord()@ implement a mapping between \ASCII{} and
227+
EBCDIC, and string comparison preserves the \ASCII{} order.
228228
Or perhaps someone can propose a better rule?)
229229
\index{ASCII}
230230
\index{EBCDIC}

Doc/tut.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,7 @@ \section{Comparing Sequences and Other Types}
13981398
items of two sequences compare equal, the sequences are considered
13991399
equal. If one sequence is an initial subsequence of the other, the
14001400
shorted sequence is the smaller one. Lexicographical ordering for
1401-
strings uses the ASCII ordering for individual characters. Some
1401+
strings uses the \ASCII{} ordering for individual characters. Some
14021402
examples of comparisons between sequences with the same types:
14031403

14041404
\bcode\begin{verbatim}
@@ -3301,7 +3301,7 @@ \subsection{Persistent Objects}
33013301
used equally well for moving objects around on a network or store them
33023302
in a database. For ease of debugging, and the inevitable occasional
33033303
manual patch-up, the constructed byte streams consist of printable
3304-
ASCII characters only (though it's not designed to be pretty).
3304+
\ASCII{} characters only (though it's not designed to be pretty).
33053305

33063306
The module \code{shelve} provides a simple model for storing objects
33073307
on files. The operation \code{shelve.open(filename)} returns a

Doc/tut/tut.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,7 @@ \section{Comparing Sequences and Other Types}
13981398
items of two sequences compare equal, the sequences are considered
13991399
equal. If one sequence is an initial subsequence of the other, the
14001400
shorted sequence is the smaller one. Lexicographical ordering for
1401-
strings uses the ASCII ordering for individual characters. Some
1401+
strings uses the \ASCII{} ordering for individual characters. Some
14021402
examples of comparisons between sequences with the same types:
14031403

14041404
\bcode\begin{verbatim}
@@ -3301,7 +3301,7 @@ \subsection{Persistent Objects}
33013301
used equally well for moving objects around on a network or store them
33023302
in a database. For ease of debugging, and the inevitable occasional
33033303
manual patch-up, the constructed byte streams consist of printable
3304-
ASCII characters only (though it's not designed to be pretty).
3304+
\ASCII{} characters only (though it's not designed to be pretty).
33053305

33063306
The module \code{shelve} provides a simple model for storing objects
33073307
on files. The operation \code{shelve.open(filename)} returns a

0 commit comments

Comments
 (0)