|
|
#1 |
|
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Dec 2025
Device: Apple Books
|
Issue with Cover.XHTML in apple books
Hey, I have some custom ebooks I set up with covers. I added a cover.xhtml file so the cover loads first before any text in the book. This works fine in Calibre for all my books, but I use Apple Books to read on my iPhone, so no matter what storage service I use—Google Drive, Dropbox, etc.—sometimes the cover.xhtml file doesn't load, and it instead skips to the text. It's not all of my books, so I don't know what's going on. Anyone know how I can fix this?
I've attached, for example, 2 ePubs; Blood Oaths works just fine, whereas Nomad does not. |
|
|
|
|
|
#2 |
|
JCL Punch-Card Collector
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 96
Karma: 34468
Join Date: Jun 2014
Location: Antarctica
Device: Aggressively Device Independent
|
There are two things "wrong" with the Nomad epub, both fixable (one annoying to do). I can't test it against the Apple system, but either or both of these might be causing the problem.
First, the easy one: When opening the Nomad epub in the Calibre editor, the cover.xhtml file is not marked as the cover. Right-click on the filename (cover.xhtml) and select the option "Mark cover.xhtml as cover page." Save the ebook in the editor, close the editor, and reopen the ebook in the editor. Now, the annoying one: Sometimes the read-order settings don't get automatically updated, even after marking cover.xhtml as the cover. In the Nomad epub, these are in the file (in the bottom group) toc.ncx. You may need to manually edit this to add the cover.xhtml file as playOrder 1, and then manually iterate all of the other playOrders and navPoint ids. Insert the following at line 14 in toc.ncx: Code:
<navPoint id="num_1" playOrder="1">
<navLabel>
<text>Cover</text>
</navLabel>
<content src="cover.xhtml"/>
</navPoint>
Code:
<navPoint id="num_2" playOrder="2"> |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,515
Karma: 62503986
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I think Calibre fixes the number upon save.
I just remove the section and it seems to be fine. |
|
|
|
|
|
#4 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 50,306
Karma: 178402650
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I'm just going to say that Nomad is an unadulterated mess. Look at line 164 in the Nomad_split_006.xhtml file. Paragraphs filled with RLM characters (why are they adding strong R to L on what is basically English text? Zero width joiners everywhere, paragraphs ended by pair of <br class="whatever">, use of strike which has been deprecated for ePub though the calibre class using line-through is correct. Not to mention in the stylesheet, calibre9 uses text-align: LEFT; which is incorrect since that should be text-align: left; (case sensitivity, you know).
Code:
It wаs salmon pink with flοral аnԁ аvian deѕigns p*aіn*teԁ οn it, anԁ even thе ha*ndle аnd spo*ut lοοked lіke *a bіrd's *w*ing anԁ *beak!<br class="calibre1"/> <br class="calibre1"/> “Y*еs, *іt is <em class="calibre10">quіte</em> *beаutіful.” “Mothe*r” sаіd a*ffеctiοnаtely. “Аnԁ yеѕ, іts beauty is а <em class="calibre10">minor</em> bеnefіt nеxt tο its <em class="calibre10">magicаl</em> propеrtieѕ!”<br class="calibre1"/> <br class="calibre1"/> “*Mag*ical*?” Сasѕan*dra, evеr the* <strike class="calibre12">killjoy</strike> ѕkеptic, a*ѕkеd.<br class="calibre1"/> <br class="calibre1"/> “Іnԁe*еd, <em class="calibre10">аll</em> o*f what you ѕee *hеre – the cottage, t*hе tοаdstoolѕ a*nԁ...evеn the <em class="calibre10">birds</em> аll eхist be*cаusе of thіs *teaрot.” “F*ather” gеstu*red аround t*hem anԁ finally to th*e* сolorful a*nd s*t*rangе *loοki*ng birds i*n *а trее near*by.<br class="calibre1"/> <br class="calibre1"/> Last edited by DNSB; 12-26-2025 at 06:00 AM. |
|
|
|
![]() |
| Tags |
| apple books, help calbire |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Missing Cover Thumbnail in TOC (Apple Books) | fkjal | Sigil | 6 | 02-18-2024 01:48 AM |
| EPUB Cover Blurry in Apple Books | SlowReader23 | ePub | 8 | 11-17-2022 10:29 PM |
| ePub issue in Apple Books | SlowReader23 | Calibre | 0 | 11-13-2022 01:58 PM |
| epub3 / Apple Books Issue | rmfenwick | ePub | 1 | 09-25-2020 04:06 AM |
| Some files.html & toc.xhtml (also Cover.xhtml) | chaot | Workshop | 23 | 02-13-2017 01:20 PM |