From d707d073be5ecacb7ad341a1c1716f4998907d6b Mon Sep 17 00:00:00 2001 From: slateny <46876382+slateny@users.noreply.github.com> Date: Fri, 6 May 2022 03:28:09 -0700 Subject: [PATCH] Add source for character mappings (#92014) --- Lib/html/entities.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/html/entities.py b/Lib/html/entities.py index 91ea5da2af4..dc508631ac4 100644 --- a/Lib/html/entities.py +++ b/Lib/html/entities.py @@ -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