View Single Post
Old 02-18-2025, 05:42 PM   #33
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,928
Karma: 6361444
Join Date: Nov 2009
Device: many
Does Sigil need to recognize any Additional Media Types?

Sigil currently recognizes the following media types (each one followed by a list of preferred file extensions - with multiple entries if needed).

When there are multiple media-types for the exact same file type, the entries preceded by an "*" are the most recommended by both the epub 3.3 spec and/or the very latest iana (2025) list (https://www.iana.org/assignments/med...ia-types.xhtml).


Spoiler:

Code:
ePub Specific
-------------
application/epub+zip           | epub
application/oebps-package+xml  | opf
application/x-dtbncx+xml       | ncx
application/pls+xml            | pls
application/smil+xml           | smil

Adobe Epub Extensions (epub2 only)
-----------------------------------------
application/adobe-page-template+xml          | xpgt
* application/vnd.adobe-page-template+xml    | xpgt
application/oebps-page-map+xml               | xml
* application/vnd.adobe-page-map+xml         | xml

Apple Epub Extensions (META-INF/com.apple.ibooks.display-options.xml)
---------------------------------------------------------------------
application/vnd.apple.ibooks+xml              | xml

PDF
---
application/pdf      | pdf

CSS
---
text/css             | css

Image
-----
image/bmp             | bmp
image/gif             | gif
image/jpeg            | jpg jpeg
image/png             | png
image/svg+xml         | svg
image/tiff            | tif tiff
image/webp            | webp

Fonts - OpenType
----------------
application/x-font-opentype     | otf
application/x-font-otf          | otf
application/x-opentype-font     | otf
application/font-otf            | otf
application/vnd.ms-opentype     | otf
*font/otf                       | otf

Fonts - TrueType
----------------
application/x-font-truetype     | ttf
application/x-font-ttf          | ttf
application/x-truetype-font     | ttf
application/font-ttf            | ttf
*font/ttf                       | ttf

Font Collection TrueType
------------------------
application/x-font-truetype-collection  | ttc
* font/collection                       | ttc

Font - Woff Woff2
-----------------
application/font-woff     | woff
* font/woff               | woff
application/font-woff2    | woff2
* font/woff2              | woff2

Font Scalable
-------------
application/font-sfnt     | sfnt
* font/sfnt               | snft ttf otf

Javascript
----------
application/x-javascript    | js
text/javascript             | js
application/ecmascript      | js
* application/javascript    | js

Xhtml
-----
text/html                | xhtml
* application/xhtml+xml  | xhtml

Text (Plain)
------------
text/plain      | txt

Xml (general)
-------------
text/xml            | xml
* application/xml   | xml

Audio
------
audio/mp3       | mp3
audio/mp4       | m4a
audio/mpeg      | mp3
audio/ogg       | ogg
audio/opus      | opus

Video
-----
video/mp4       | mp4 m4v
video/ogg       | ogg ogv
video/webm      | webm

Video Captioning
----------------
text/vtt               | vtt
application/ttml+xml   | ttml


Please give this list a once over and let me know if you have run into epubs that make use of additional media-types that you think Sigil should recognize.

Also if you have run into older mime/media types not in this list that you think should also be recognized please let me know.

Thanks

Last edited by KevinH; 02-18-2025 at 05:49 PM.
KevinH is offline   Reply With Quote