]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add source for character mappings (GH-92014) (#92388)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 6 May 2022 10:58:10 +0000 (03:58 -0700)
committerGitHub <noreply@github.com>
Fri, 6 May 2022 10:58:10 +0000 (12:58 +0200)
(cherry picked from commit d707d073be5ecacb7ad341a1c1716f4998907d6b)

Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
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