mirror of
https://github.com/python/cpython.git
synced 2025-08-25 19:24:42 +00:00
gh-82927: Update files related to HTML entities. (GH-92504)
This commit is contained in:
parent
4e08fbcfdf
commit
f28ec34c5c
6 changed files with 29 additions and 78 deletions
|
@ -3,8 +3,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
|
||||
# maps HTML4 entity name to the Unicode code point
|
||||
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
|
||||
|
@ -261,7 +260,11 @@ name2codepoint = {
|
|||
}
|
||||
|
||||
|
||||
# maps the HTML5 named character references to the equivalent Unicode character(s)
|
||||
# HTML5 named character references
|
||||
# Generated by 'Tools/scripts/parse_html5_entities.py'
|
||||
# from https://html.spec.whatwg.org/entities.json and
|
||||
# https://html.spec.whatwg.org/multipage/named-characters.html.
|
||||
# Map HTML5 named character references to the equivalent Unicode character(s).
|
||||
html5 = {
|
||||
'Aacute': '\xc1',
|
||||
'aacute': '\xe1',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue