[Python-checkins] python/dist/src/Doc/tut tut.tex,1.189,1.190

montanaro@users.sourceforge.net montanaro@users.sourceforge.net
Sun, 29 Jun 2003 09:01:53 -0700


Update of /cvsroot/python/python/dist/src/Doc/tut
In directory sc8-pr-cvs1:/tmp/cvs-serv16820

Modified Files:
	tut.tex 
Log Message:
minor wordsmithing


Index: tut.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tut/tut.tex,v
retrieving revision 1.189
retrieving revision 1.190
diff -C2 -d -r1.189 -r1.190
*** tut.tex	28 Jun 2003 11:50:34 -0000	1.189
--- tut.tex	29 Jun 2003 16:01:51 -0000	1.190
***************
*** 308,312 ****
  It is possible to use encodings different than ASCII in Python source
  files. The best way to do it is to put one more special comment line
! right after \code{\#!} line making proper encoding declaration:
  
  \begin{verbatim}
--- 308,312 ----
  It is possible to use encodings different than ASCII in Python source
  files. The best way to do it is to put one more special comment line
! right after the \code{\#!} line to define the source file encoding:
  
  \begin{verbatim}
***************
*** 314,321 ****
  \end{verbatim}
  
! With that declaration, all characters in the source file will be
! treated as belonging to \code{iso-8859-1} encoding, and it will be
  possible to directly write Unicode string literals in the selected
! encoding. The list of possible encodings can be found in the
  \citetitle[../lib/lib.html]{Python Library Reference}, in the section
  on \module{codecs}.
--- 314,321 ----
  \end{verbatim}
  
! With that declaration, all characters in the source file will be treated as
! {}\code{iso-8859-1}, and it will be
  possible to directly write Unicode string literals in the selected
! encoding.  The list of possible encodings can be found in the
  \citetitle[../lib/lib.html]{Python Library Reference}, in the section
  on \module{codecs}.
***************
*** 323,327 ****
  If your editor supports saving files as \code{UTF-8} with an UTF-8
  signature (aka BOM -- Byte Order Mark), you can use that instead of an
! encoding declaration. IDLE supports such saving if
  \code{Options/General/Default Source Encoding/UTF-8} is set. Notice
  that this signature is not understood in older Python releases (2.2
--- 323,327 ----
  If your editor supports saving files as \code{UTF-8} with an UTF-8
  signature (aka BOM -- Byte Order Mark), you can use that instead of an
! encoding declaration. IDLE supports this capability if
  \code{Options/General/Default Source Encoding/UTF-8} is set. Notice
  that this signature is not understood in older Python releases (2.2
***************
*** 329,333 ****
  \code{\#!} files. 
  
! By using UTF-8 (either through the signature, or a an encoding
  declaration), characters of most languages in the world can be used
  simultaneously in string literals and comments. Using non-ASCII
--- 329,333 ----
  \code{\#!} files. 
  
! By using UTF-8 (either through the signature or an encoding
  declaration), characters of most languages in the world can be used
  simultaneously in string literals and comments. Using non-ASCII