Alphabetize the extension mimetypes and mime directories.
This commit is contained in:
parent
fc07652d16
commit
6d4200eb7c
1 changed files with 6 additions and 6 deletions
12
epubfile.py
12
epubfile.py
|
@ -27,28 +27,28 @@ HTML_LINK_PROPERTIES = {
|
||||||
}
|
}
|
||||||
|
|
||||||
EXTENSION_MIMETYPES = {
|
EXTENSION_MIMETYPES = {
|
||||||
'html': 'application/xhtml+xml',
|
|
||||||
'xhtml': 'application/xhtml+xml',
|
|
||||||
'htm': 'application/xhtml+xml',
|
'htm': 'application/xhtml+xml',
|
||||||
|
'html': 'application/xhtml+xml',
|
||||||
|
'otf': 'font/otf',
|
||||||
|
'pls': 'application/pls+xml',
|
||||||
'smi': 'application/smil+xml',
|
'smi': 'application/smil+xml',
|
||||||
'smil': 'application/smil+xml',
|
'smil': 'application/smil+xml',
|
||||||
'sml': 'application/smil+xml',
|
'sml': 'application/smil+xml',
|
||||||
'pls': 'application/pls+xml',
|
|
||||||
'otf': 'font/otf',
|
|
||||||
'ttf': 'font/ttf',
|
'ttf': 'font/ttf',
|
||||||
'woff': 'font/woff',
|
'woff': 'font/woff',
|
||||||
'woff2': 'font/woff2',
|
'woff2': 'font/woff2',
|
||||||
|
'xhtml': 'application/xhtml+xml',
|
||||||
}
|
}
|
||||||
|
|
||||||
MIMETYPE_DIRECTORIES = {
|
MIMETYPE_DIRECTORIES = {
|
||||||
'application/x-dtbncx+xml': '.',
|
|
||||||
'application/font-sfnt': 'Fonts',
|
'application/font-sfnt': 'Fonts',
|
||||||
|
'application/x-dtbncx+xml': '.',
|
||||||
'application/x-font-ttf': 'Fonts',
|
'application/x-font-ttf': 'Fonts',
|
||||||
'application/xhtml+xml': 'Text',
|
'application/xhtml+xml': 'Text',
|
||||||
|
'audio': 'Audio',
|
||||||
'font': 'Fonts',
|
'font': 'Fonts',
|
||||||
'image': 'Images',
|
'image': 'Images',
|
||||||
'text/css': 'Styles',
|
'text/css': 'Styles',
|
||||||
'audio': 'Audio',
|
|
||||||
'video': 'Video',
|
'video': 'Video',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue