[Python-checkins] python/dist/src/Doc/lib libhtmllib.tex,1.23,1.24

doerwalter@users.sourceforge.net doerwalter@users.sourceforge.net
Wed, 16 Apr 2003 02:46:16 -0700


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

Modified Files:
	libhtmllib.tex 
Log Message:
Add two dictionaries to htmlentitydefs: name2codepoint maps
HTML entity names to Unicode codepoints (as integers).
codepoint2name is the reverse mapping. From SF patch #722017.


Index: libhtmllib.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libhtmllib.tex,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** libhtmllib.tex	5 Jul 2001 16:34:36 -0000	1.23
--- libhtmllib.tex	16 Apr 2003 09:46:13 -0000	1.24
***************
*** 146,153 ****
  \sectionauthor{Fred L. Drake, Jr.}{fdrake@acm.org}
  
! This module defines a single dictionary, \code{entitydefs}, which is
  used by the \refmodule{htmllib} module to provide the
  \member{entitydefs} member of the \class{HTMLParser} class.  The
! definition provided here contains all the entities defined by HTML 2.0 
  that can be handled using simple textual substitution in the Latin-1
  character set (ISO-8859-1).
--- 146,154 ----
  \sectionauthor{Fred L. Drake, Jr.}{fdrake@acm.org}
  
! This module defines three dictionaries, \code{name2codepoint},
! \code{codepoint2name}, and \code{entitydefs}. \code{entitydefs} is
  used by the \refmodule{htmllib} module to provide the
  \member{entitydefs} member of the \class{HTMLParser} class.  The
! definition provided here contains all the entities defined by XHTML 1.0 
  that can be handled using simple textual substitution in the Latin-1
  character set (ISO-8859-1).
***************
*** 155,159 ****
  
  \begin{datadesc}{entitydefs}
!   A dictionary mapping HTML 2.0 entity definitions to their
    replacement text in ISO Latin-1.
  \end{datadesc}
--- 156,171 ----
  
  \begin{datadesc}{entitydefs}
!   A dictionary mapping XHTML 1.0 entity definitions to their
    replacement text in ISO Latin-1.
+ 
+ \end{datadesc}
+ 
+ \begin{datadesc}{name2codepoint}
+   A dictionary that maps HTML entity names to the Unicode codepoints.
  \end{datadesc}
+ 
+ \begin{datadesc}{codepoint2name}
+   A dictionary that maps Unicode codepoints to HTML entity names.
+ \end{datadesc}
+ 
+