12-07-2021, 02:30 PM | #1 |
Junior Member
Posts: 9
Karma: 22
Join Date: Sep 2015
Device: none
|
EPub -> Mobi seems to drop style file from manifest
Hi,
I'm using Calibre (ebook-convert) version 5.17.0. I have an epub generated by pandoc/sigil. During conversion by ebook-convert from epub to mobi, it gives an error: "Stylesheet 'EPUB/styles/stylesheet1.css' referenced by file 'EPUB/nav.xhtml' not in manifest" I unzipped the epub, and the relevant file is indeed present both as an entry in the content.opf file (in the <manifest> section): <item id="stylesheet1" href="styles/stylesheet1.css" media-type="text/css"/> and as an actual file in the specified location. My only guess is that ebook-convert must be dropping it from the manifest prior to reaching that point. It emitted a message "Trimming unused files from manifest..." earlier in the process. Is it possible it somehow is dropping the style/stylesheet1.css entry from the manifest because it thinks it is unused? That file is referenced in every html file in the epub via an entry like <link rel="stylesheet" type="text/css" href="../styles/stylesheet1.css" /> in the <head> section, so this would surprise me --- but it seems like the most sensible explanation. Needless to say, much of the resulting mobi is mangled without the appropriate styles (in particular, the style ensures proper sizing and placement of images). Any help would be appreciated. Cheers, Ken |
12-07-2021, 10:21 PM | #2 |
creator of calibre
Posts: 44,548
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Convert to azw3 not mobi.
|
12-07-2021, 10:48 PM | #3 |
Junior Member
Posts: 9
Karma: 22
Join Date: Sep 2015
Device: none
|
Thanks for the suggestion, but unfortunately that won't work for me. I'm submitting a book to a review service which requires mobi. I was under the impression that ebook-convert could in fact convert to mobi. Is this not the case? If it's legacy and unsupported, I can try to find some other way. I was hoping to manage everything via a Makefile toolchain, so ebook-convert is preferable if I can get it working.
|
12-07-2021, 11:08 PM | #4 |
creator of calibre
Posts: 44,548
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
mobi works fine, the mobi format however is HTML 3 and has no support for CSS. Some basic styling will get converted to HTML3 equivalents, but more advanced styling will not.
|
12-07-2021, 11:30 PM | #5 |
Junior Member
Posts: 9
Karma: 22
Join Date: Sep 2015
Device: none
|
Ah, I see. Thanks for explaining! I'll ask them if they can handle azw3 or if I should remove all the style-sensitive components from the original and stick with mobi.
Cheers, Ken |
12-08-2021, 03:23 AM | #6 | |
Resident Curmudgeon
Posts: 76,435
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
12-08-2021, 04:17 AM | #7 | |||
The Grand Mouse 高貴的老鼠
Posts: 72,518
Karma: 309063598
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
Quote:
Quote:
Run the ePub (assuming it's copyright) through a scrambler, e.g. https://www.mobileread.com/forums/sh...d.php?t=267998 and post it either here or in a bug report. I think Kovid has mis-read your report as a complaint that the CSS file isn't in the converted Mobi file. |
|||
12-08-2021, 11:14 AM | #8 | |
Grand Sorcerer
Posts: 6,752
Karma: 86500093
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
(Note that Amazon has moved on and no longer supports MOBI as a format for publishing reflowable books.) Last edited by jhowell; 12-08-2021 at 11:17 AM. |
|
Tags |
css, epub, manifest, mobi, stylesheet |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Drop Caps epub->Mobi | iancs | Conversion | 6 | 01-23-2021 01:12 AM |
File 'META-INF/encryption.xml' in EPUB not listed in manifest! | Bowcat | ePub | 2 | 10-14-2019 09:02 PM |
Insert a cover in a MOBI file - Mobi or Epub as default file ? | myki | Library Management | 12 | 06-27-2014 06:55 PM |
EPUB -> MOBI: Can't style HR element? | modified | Conversion | 4 | 03-21-2013 09:36 AM |
Mobi TOC style vs ePub style? | phearlez | Kindle Formats | 3 | 04-11-2010 07:35 AM |