Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 11-23-2024, 12:03 AM   #1
Rand Brittain
Bookmaker
Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.
 
Posts: 427
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
Apple Books Shows "Book Content Unavailable" or Nothing

I'm working on an EPUB version of a friend's book, and I'm finding it impossible to get the EPUB to load on Apple devices, even though it passes every form of validation I'm familiar with, including EPUBCheck, Calibre's validator, and Sigil's validator.

On one tester's device, it gives a message saying "Book content unavailable"; on my own devices, it shows every chapter in the book as a blank page.

Has anybody ever seen this before?
Rand Brittain is offline   Reply With Quote
Old 11-23-2024, 12:18 AM   #2
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: 45,598
Karma: 168929308
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I think you might want to scramble the epub and attach it to a message here. Otherwise all we can do is to supply wild guesses.
DNSB is offline   Reply With Quote
Advert
Old 11-23-2024, 01:12 AM   #3
Rand Brittain
Bookmaker
Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.
 
Posts: 427
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
Fair enough, and it was easy enough to do.
Attached Files
File Type: epub The Far Roofs - Jenna Moran_scrambled.epub (705.5 KB, 125 views)
Rand Brittain is offline   Reply With Quote
Old 11-25-2024, 05:02 PM   #4
Rand Brittain
Bookmaker
Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.
 
Posts: 427
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
This is honestly not dissimilar to a problem I had several years ago, where I was able to fix the EPUB by importing into iTunes for PC and getting it to add an iTunes metadata file to the folder, but... apparently iTunes for PC doesn't have that function anymore? Seriously?
Rand Brittain is offline   Reply With Quote
Old 11-26-2024, 05:23 PM   #5
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: 8,647
Karma: 5703586
Join Date: Nov 2009
Device: many
Apple Books apps uses its own caching mechanism. The first time you add a book, it is unzipped and stored away and a cache of the cover and metadata is made.

So if you tried opening an early version of the epub (incomplete) in some way, the cache will get generated from that and not updated.

The solution is to delete all copies of the epub from Apple's Books so that its caches are emptied, then add a known good copy.

Seeing just blank pages sounds like a missing font or broken css issue. Does your epub embed a body font?

Have you properly created and added the file:
META-INF/com.apple.ibooks.display-options.xml

This is the Apple non-standard epub additional file. See our Mobileread Wiki for details:

Quote:
Embedded fonts will not be used by iBooks unless a special file is included in the ePub with special content. The file is: META-INF/com.apple.ibooks.display-options.xml and must contain:
<?xml version="1.0" encoding="UTF-8"?>
<display_options>
<platform name="*">
<option name="specified-fonts">true</option>
</platform>
</display_options>

Last edited by KevinH; 11-26-2024 at 06:07 PM.
KevinH is online now   Reply With Quote
Advert
Old 11-26-2024, 05:25 PM   #6
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: 8,647
Karma: 5703586
Join Date: Nov 2009
Device: many
Also, There are many other good epub readers for iOS, many free. Have you tried any of them?
KevinH is online now   Reply With Quote
Old 11-26-2024, 08:25 PM   #7
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: 45,598
Karma: 168929308
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
For what it may be worth, when I look at the ePub with 7Zip, I see the com.apple.ibooks.display-options.xml file in the META-INF directory. The contents of that file are:
Code:
<?xml version='1.0' encoding='utf-8'?>
<display_options>
  <platform name="*">
    <option name="specified-fonts">true</option>
  </platform>
</display_options>
I think this is correct location and structure for allowing iBooks/Books to display embedded fonts.

One possibility for testing is to remove that file since the scrambled epub does not have any embedded fonts and see if the ePub then displays correctly.

Last edited by DNSB; 11-26-2024 at 08:27 PM.
DNSB is offline   Reply With Quote
Old 11-27-2024, 11:18 AM   #8
Rand Brittain
Bookmaker
Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.
 
Posts: 427
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
The ePub does have embedded fonts, and they aren't optional since they include some special characters; it looks like the scrambling process just removes them.
Rand Brittain is offline   Reply With Quote
Old 11-27-2024, 11:22 AM   #9
Rand Brittain
Bookmaker
Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.
 
Posts: 427
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
Quote:
Originally Posted by KevinH View Post
The solution is to delete all copies of the epub from Apple's Books so that its caches are emptied, then add a known good copy.
Is there a standard way to do this? Just deleting it from iBooks wasn't enough in the past; that was the problem I had to import it into iTunes and back out to fix in the past, but I'm not able to do that anymore.
Rand Brittain is offline   Reply With Quote
Old 11-27-2024, 02:05 PM   #10
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: 8,647
Karma: 5703586
Join Date: Nov 2009
Device: many
In the old days you just fired up iBooks and deleted it from your Library shelf. Then exited out of iBooks. Then fired up iBooks and manually added the new version of the epub.

If in the new Books app that no longer works, then I would open Calibre or Sigil to edit the epub's opf and change the unique id pointed to in the opf package tag with a newly generated uuid.

This would/should force a new cache entry.
KevinH is online now   Reply With Quote
Old 11-27-2024, 07:06 PM   #11
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: 8,647
Karma: 5703586
Join Date: Nov 2009
Device: many
FWIW, in Books on macOS, I had no issues loading or seeing the scrambled pages in what you posted for us to test with.

So whatever issues you are having with this epub in Books, your scrambled version is showing up fine in Books app on macOS.

It also showed up just fine in Sigil. There are missing xml headers and doctypes based on the strictest interpretation of the epub3 spec but those are autofixed by Sigil on load and are not causing any issues.

I also tested it with iOS Books.app and could also see the text just fine.

Last edited by KevinH; 11-27-2024 at 07:13 PM.
KevinH is online now   Reply With Quote
Old 11-30-2024, 12:59 PM   #12
Rand Brittain
Bookmaker
Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.
 
Posts: 427
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
The last time I changed the UUID, it didn't help, but this time, the EPUB loaded. Maybe the difference was deleting the cloud copy from Apple Cloud Drive? I dunno. Either way, it works now, so thanks!
Rand Brittain is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending books to Kobo (KOReader) from Calibre never shows as "on device" hecq KOReader 1 05-06-2024 02:52 PM
"My Books" shows epub, svg, config files djorge KOReader 6 09-19-2022 03:06 PM
Apple's Books/iBooks: "in this chapter" "in this book" display Hitch ePub 9 06-25-2020 09:30 PM
Can't Send books on Calibre do to "Mailbox Unavailable" error message. tekkir Calibre 1 02-13-2019 03:28 AM
Cal 3.2.1 Content Server shows only "Receive OK" when accessing from iOS fkuehner Library Management 1 07-04-2017 05:48 AM


All times are GMT -4. The time now is 08:57 PM.


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