Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opf manifest item media-type ignored? #1

Open
AntonOfTheWoods opened this issue Oct 15, 2024 · 0 comments
Open

opf manifest item media-type ignored? #1

AntonOfTheWoods opened this issue Oct 15, 2024 · 0 comments

Comments

@AntonOfTheWoods
Copy link

From the code at https://github.com/Glose/dawn/blob/1e17aad2ebb54b948c5067ef0a592a0846892ba1/dawn/epub.py#L99C9-L99C17 it looks like the media-type, which from my (limited) research appears to be an obligatory property for all recent versions of the spec, is simply ignored. When I open an epub and then try and get the mediatype, it seems to just look at the href, rather than first trying to use what was provided.

Is there some explanation of this choice somewhere? I am getting an item that ends with .xml interpreted as application/xhtml+xml by mimetypes when it is clearly marked in the source opf as application/oebps-page-map+xml. Granted, application/oebps-page-map+xml is not a legal type but the file is definitely not application/xhtml+xml either... And it would be good to have some way to bring that info forward. Any pointers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant