Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 12-12-2025, 10:25 AM   #1
Volcanic08*
Junior Member
Volcanic08* began at the beginning.
 
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.
Attached Files
File Type: epub Nomad - ZoneRobotnik.epub (387.2 KB, 35 views)
File Type: epub Blood Oaths - AMax76.epub (1.37 MB, 37 views)
Volcanic08* is offline   Reply With Quote
Old 12-25-2025, 07:00 PM   #2
Jaws
JCL Punch-Card Collector
Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.
 
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>
Then manually go down the rest of the toc.ncx file and, on the line for navPoint id, iterate both (so Chapter 1 has
Code:
<navPoint id="num_2" playOrder="2">
Changing out the id name may not be necessary, but as long as you're having to manually edit anyway...
Jaws is offline   Reply With Quote
Advert
Old 12-25-2025, 09:40 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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.
theducks is offline   Reply With Quote
Old 12-26-2025, 03:40 AM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
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.” “Mo‏the*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> pro‏pеrtieѕ!”<br class="calibre1"/>
<br class="calibre1"/>
‏“*M‏ag*ical*?” Сasѕan*dra, e‏vеr the* <strike class="calibre12">killjo‏y</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 co‏ttage, 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*at‏he‏r” 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"/>
As for Blood Oaths? It has more than enough errors in the .opf file that I didn't bother doing more than a cursory glance at the rest of the file.
Attached Files
File Type: epub Nomad - ZoneRobotnik.epub (376.4 KB, 21 views)

Last edited by DNSB; 12-26-2025 at 06:00 AM.
DNSB is offline   Reply With Quote
Reply

Tags
apple books, help calbire


Forum Jump

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


All times are GMT -4. The time now is 06:18 AM.


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