More classes.

This commit is contained in:
Ethan Dalool 2020-01-05 21:33:15 -08:00
parent b890aba570
commit c653f084ce

View file

@ -199,6 +199,7 @@ def remove_unwanted_classes_ids(soup):
r'c\d+', r'c\d+',
r'calibre_?\d*', r'calibre_?\d*',
r'calibre_pb_\d+', r'calibre_pb_\d+',
r'calibreclass\d*',
r'chapter', r'chapter',
r'div\d+', r'div\d+',
r'dropcaps', r'dropcaps',
@ -374,6 +375,7 @@ def replace_classes_real_tags(soup):
'span.small1': 'small', 'span.small1': 'small',
'span.smallcaps': 'small', 'span.smallcaps': 'small',
'span.smallCaps': 'small', 'span.smallCaps': 'small',
'span.smallCaps1': 'small',
'span.strike': 'strike', 'span.strike': 'strike',
'span.under': 'u', 'span.under': 'u',
'span.underline': 'u', 'span.underline': 'u',