![]() |
#1 |
Member
![]() Posts: 20
Karma: 20
Join Date: Jan 2024
Location: London
Device: none
|
Pages are not visible
Hello community!
I have created a large work with InDesign, enriched with animations, and exported it as an EPUB3: https://www.edgedpub.com/sample_work_4.php I have edited the work on Sigil, and luckily, all the animations work fine. However, I edited two pages, and they don't appear in the EPUB3 document. These are the pages with the credits and the title page: credits.xhtml and titlepage.xhtml. 1) These two pages can't be seen in the EPUB3. When you open the document, you see the cover, and then you jump to the title. 2) EPUB-Cheker reads that these two files are not in the manifest and are not spine items. But I inserted them in the manifest and the spine. 3) Because of these two files, the entire TOC is shifted by 2 pages. For example, if you click on Title, which is on page 4, you go to Introduction, which is on page 6. 4) There are a few errors related to the fonts, but I think they are irrelevant. I have created two different versions of the same EPUB3 document to test whether it works either way: version 02 includes the two files, and version 03 does not. I don't see the error. The files are in the spine and the manifest. I would be happy if somebody could help me sort this out. Thank you. Daniele |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,744
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
|
Manifest:
<item id="Tale_of_Tales_credits.xhtml" href="Tale_of_Tales_credits.xhtml" media-type="application/xhtml+xml"/> <item id="Tale_of_Tales_titlepage.xhtml" href="Tale_of_Tales_titlepage.xhtml" media-type="application/xhtml+xml"/> Spine: <itemref idref="Tale_of_Tales_titlepage"/> <itemref idref="Tale_of_Tales_credits"/> You also might want to fix the many incorrect mime types and create fallback items for non core mime types, e.g. application/x-bplist and text/xml. |
![]() |
![]() |
![]() |
#3 | |
Member
![]() Posts: 20
Karma: 20
Join Date: Jan 2024
Location: London
Device: none
|
Quote:
In Version 02, I wrote the code strings in the same way. Manifest 610 <item id="Tale_of_Tales_credits.xhtml" href="Tale_of_Tales_credits.xhtml" media-type="application/xhtml+xml"/> 611 <item id="Tale_of_Tales_titlepage.xhtml" href="Tale_of_Tales_titlepage.xhtml" media-type="application/xhtml+xml"/> Spine 619 <itemref idref="Tale_of_Tales_titlepage"/> 620 <itemref idref="Tale_of_Tales_credits"/> And they are also present in the TOC: 13 <li><a href="Tale_of_Tales_titlepage.xhtml">Title page</a></li> 14<li><a href="Tale_of_Tales_credits.xhtml">Credits</a></li> 86 <li><a href="Tale_of_Tales_titlepage.xhtml">i</a></li> 87 <li><a href="Tale_of_Tales_credits.xhtml">ii</a></li> I don't understand why EPUB-Checker doesn't find them. (screenshot attached) |
|
![]() |
![]() |
![]() |
#4 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,561
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
"Tale_of_Tales_credits.xhtml" is not the same as "Tale_of_Tales_credits".
|
![]() |
![]() |
![]() |
#5 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,914
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Yes the spine uses idrefs to the files in the manifest. So the spine entries must exactly match the id specified in that manifest entry.
Next time use Sigil and its menus/tools to create the proper OPF and spine entries for you. Then no need to hand edit the OPF. |
![]() |
![]() |
![]() |
#6 |
Member
![]() Posts: 20
Karma: 20
Join Date: Jan 2024
Location: London
Device: none
|
Great! The pages are visible now.
Thank you very much. Now I can also fix the minor errors. 1) RSC-004 file is encrypted, its content will not be checked. Is there a way to fix this? 2) CSS-007 fonts face reference refers to non standard font type. I often see this error message. How can I avoid it? 3) PKG-026 obfuscated resource must be a Font Core Media Type. How can I fix this? 4) When I open Sigil, I see the following message:Warning: The OPF contains missing or unrecognised media types. Temporary media types have been generated. You should edit your OPF to fix these. There are 15 suggestions stating the following: html/_idGenFolder0-Zeza/Assets/Zeza.hyperesources/529072-restorable.plist 'application/x-bplist' -> 'application/x-bplist' I don't understand how I should correct these strings. 5) The logo on the title page is visible, but EPUB-Checker reads: RSC-007 Referenced resource "...logo.png" could not be found in the EPUB. |
![]() |
![]() |
![]() |
#7 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,914
Karma: 6120478
Join Date: Nov 2009
Device: many
|
An epub has a specified set of allowable core media-types. You can find that list here:
https://www.w3.org/TR/epub/#sec-core-media-types These are the only media types allowed to be in epubs unless you specify a fallback resource for them. But that said, very few epub3 e-readers support fallbacks as listed in the opf. See the next part in the spec on fallbacks, in the link provided above. Try to stick with recognized file types (media types) and you should be fine. Note: "application/x-bplist" NOT a recognized epub3 core media type. Since I have no idea what a bplist is, I can not help. If it is a binary Apple plist, then remove the need for it as epub files are not writeable. If it is a network backup thing, then remove the need for it as epubs can be read offline. Pulling in javascript libraries from npm is rarely something that will work in an epub unless they were properly designed to do so. Perhaps if you want to create "advanced" epubs, you should read and understand the epub3 specification and its limitations. It can't hurt. Last edited by KevinH; Today at 11:51 AM. |
![]() |
![]() |
![]() |
#8 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,914
Karma: 6120478
Join Date: Nov 2009
Device: many
|
You may be better off making a web digital publishing project that will be hosted on your own server, than trying to shoehorn things into an epub, unless you only want to target one specific platform like Apple's Books which have looser specifications in many instances. Or a full web application. Things to think about.
I see from your first post, you already do that. Is there some reason you want to constrain yourself with what works in epub3? Sigil has a full blink webkit engine inside it. So Sigil accepts much more than what the epub3 spec allows. Detecting when that happens is what epubcheck is all about. Last edited by KevinH; Today at 12:35 PM. |
![]() |
![]() |
![]() |
#9 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,744
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#10 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,914
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Okay, I took a look at your fixed layout epub3. BTW, it assumes a huge screensize in the layout so many readers will not be able to compensate.
Your logo is in OEBPS/image and the file that references it is OEBPS/Tale_of_tales_titlepage.xhtml. But in that link you use an incorrect url: <img src="../image/edge_dpub_logo.png" alt="company logo" width="300" height="300"/> and that location does not exist. Instead you should have used: <img alt="edge_dpub_logo" src="image/edge_dpub_logo.png" width="300" height="300"/> Again if you use Sigil's tools and menus to add that link, mistakes like this will not happen. As for your unrecognized media-types. They are all text based apple plist files. Effectively, xml files in a format Apple devices recognize. They are not a core media type. If they are read-only xml data files, then you should move all of those files to be inside the epub's META-INF folder where e-readers will not touch them and then modify the javascript you use to look there for them there. Ditto for your pure xml file. Then you can remove them from your manifest and prevent the errors both epubcheck and Sigil detect while keeping things working. If they are read-write then very few systems will support them. If that epub is read on a system with support for "local-storage", you could modify the javascript to copy them there and read/write as needed. Hope this helps. Last edited by KevinH; Today at 01:19 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Jutoh, how to batch set pages to spread left and right pages? | untracked | ePub | 19 | 01-20-2024 05:35 PM |
Classic Split PDF pages into smaller pages (images into tiles) | Astro | Barnes & Noble NOOK | 4 | 06-12-2020 10:56 AM |
Detect if one or two pages are visible | Barra | ePub | 0 | 09-02-2018 05:29 PM |
PRS-T1 HTML to EPUB no word-wrap on some pages/missing pages of text | SonyPRST1Reader | Sony Reader | 4 | 01-28-2016 08:40 AM |
Turning Scanned PDFs with facing pages into single pages | jimteacher | Workshop | 5 | 11-09-2009 02:59 PM |