]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add source for character mappings (#92014)
authorslateny <46876382+slateny@users.noreply.github.com>
Fri, 6 May 2022 10:28:09 +0000 (03:28 -0700)
committerGitHub <noreply@github.com>
Fri, 6 May 2022 10:28:09 +0000 (12:28 +0200)
Lib/html/entities.py

index 91ea5da2af49d3d6e6ef4f8bfec67563b5766755..dc508631ac478943ce42099ea54358bb9c6eb775 100644 (file)
@@ -4,6 +4,7 @@ __all__ = ['html5', 'name2codepoint', 'codepoint2name', 'entitydefs']
 
 
 # maps the HTML entity name to the Unicode code point
+# from https://html.spec.whatwg.org/multipage/named-characters.html
 name2codepoint = {
     'AElig':    0x00c6, # latin capital letter AE = latin capital ligature AE, U+00C6 ISOlat1
     'Aacute':   0x00c1, # latin capital letter A with acute, U+00C1 ISOlat1