From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 6 May 2022 10:58:10 +0000 (-0700) Subject: Add source for character mappings (GH-92014) (#92388) X-Git-Tag: v3.9.13~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=25352d7a757e05f9513b69ed0ab33373b1ea37c1;p=thirdparty%2FPython%2Fcpython.git Add source for character mappings (GH-92014) (#92388) (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> --- diff --git a/Lib/html/entities.py b/Lib/html/entities.py index 91ea5da2af49..dc508631ac47 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