Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-09-2023, 04:52 PM   #1
z537815
Enthusiast
z537815 began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Aug 2019
Device: Lenovo TB-X704F
Sigil 1.9.30 and unsupported media-type

Running Sigil 1.9.30 on Windows 10.

I recently got hold of an Epub that has Sigil, upon loading this epub, complaining about an unsupported media-type "Application/XML" for a file in the OPF. Sigil replaces this with a temporary media-type, but strongly advises to correct the OPF.

Surely "Application/XML" is supported? Or am I missing something?

TIA for any info.
z537815 is offline   Reply With Quote
Old 07-09-2023, 05:27 PM   #2
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: 7,647
Karma: 5433388
Join Date: Nov 2009
Device: many
I think you are missing something ...

What file was it?

The proper media-type for xhtml is "application/xhtml+xml".

In fact the "application/xml" media type tells you almost nothing about the kind of file as pure xml can represent many different file types.

And pure xml islands in the spine are been long deprecated by the epub standard.

These are the specific xml based media types recognized by Sigil and current or previous epub specifications:

Code:
"application/xhtml+xml" (.xhtml)
"application/x-dtbncx+xml" (.ncx)
"application/oebps-package+xml" (.opf)
"application/pls+xml"; (.pls)
"application/smil+xml" (.smil)
"image/svg+xml" (.svg)
"application/ttml+xml" (.ttml)
"application/oebps-page-map+xml"
"application/vnd.adobe-page-template+xml"
Note: xml and therefore xhtml are case sensitive so the media-type is as well.

For a more complete list of recognized media types see Sigil's source code here:

https://github.com/Sigil-Ebook/Sigil...MediaTypes.cpp

Last edited by KevinH; 07-09-2023 at 07:33 PM.
KevinH is online now   Reply With Quote
Old 07-11-2023, 05:33 AM   #3
z537815
Enthusiast
z537815 began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Aug 2019
Device: Lenovo TB-X704F
I (perhaps naively) assumed Sigil would support ALL media-types, and having found that "application/xml" does actually exist, couldn't understand this error-message.

However, I "fixed"(?) it by changing the media-type from "application/xml" to "application/xhtml+xml". This seems to work. The error-message is gone.
z537815 is offline   Reply With Quote
Old 07-11-2023, 06:49 AM   #4
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: 7,647
Karma: 5433388
Join Date: Nov 2009
Device: many
The epub specification itself indicates the media types that are recognized. A reader can choose to support additional ones but need not. Use of anything outside of the recognized set requires fall backs.

So you did indeed need to truly "fix" it if you wanted an epub that meets the spec.

See https://www.w3.org/TR/epub-33/#sec-core-media-types

Last edited by KevinH; 07-11-2023 at 06:53 AM.
KevinH is online now   Reply With Quote
Reply

Tags
content.opf, epub 3, sigil 1.9.30


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unrecognized media type lwalper Sigil 3 03-03-2023 09:30 AM
CC Not Opening Files on Nook (Unsupported Mime Type) melissasusan Calibre Companion 14 08-20-2020 08:20 PM
ttf media-type jcn363 Editor 3 01-30-2019 06:11 AM
media type in the manifest rubeus Plugins 24 05-14-2015 12:16 PM
media-type me too ePub 5 08-07-2012 05:32 PM


All times are GMT -4. The time now is 12:15 PM.


MobileRead.com is a privately owned, operated and funded community.