08-20-2023, 06:18 AM | #1 |
Junior Member
Posts: 7
Karma: 10
Join Date: Aug 2023
Device: Sigil 2.0
|
Problem with opening an ePub
I've tried Sigil and Calibre and I can't find how to get this to work on either of them.
I'm creating an ePub 2 book (for my use and a couple of friends) so no, I don't want Amazon to do anything. I'm trying to get the ePub to always open on the COVER PICTURE. The book always opens somewhere in the middle. It ignores the cover completely. The cover display in Sigil Titlepage and also on Cablibre Editor I tried using ePub 3, but it's still the same. It's probably something I'm doing wrong, but I'm going quietly crazy here. Can anyone PLEASE help? |
08-20-2023, 01:39 PM | #2 |
A Hairy Wizard
Posts: 3,101
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Typically that is a function of the app/device, not of the ePub.
However, you can assign a (semantics) tag to the file designating it as the location to open. Devices/apps that look for, and honor, the tag would open up on that page…. But…. there could just as easily be another feature in play that overrides…such as “open to last location”. Using Sigil: To set the samantics tag(s), right-click on the xhtml file in the book browser window and select “semantics”… then select which one you wish to apply. For ePub2 you would select "text" to designate the preferred starting page. Then click OK. If you don’t set the semantic then it is completely at the discretion of the app/device….. most “should” start on the first page in the book order. If that doesn’t work… then just check your opf file and make sure the files are listed in order in the spine section…. With the cover first. (Edit: Sigil automatically sorts the spine based on the order of the files in your book browser window) Last edited by Turtle91; 08-20-2023 at 01:52 PM. |
Advert | |
|
08-20-2023, 01:53 PM | #3 |
A Hairy Wizard
Posts: 3,101
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
OBTW - Welcome to mR!!
|
08-20-2023, 03:39 PM | #4 |
Junior Member
Posts: 7
Karma: 10
Join Date: Aug 2023
Device: Sigil 2.0
|
Code:
<meta name="Sigil version" content="2.0.0" /> <dc:date opf:event="modification" xmlns:opf="http://www.idpf.org/2007/opf">2023-08-20</dc:date> <dc:identifier id="uuid_id" opf:scheme="uuid">5ba1c38c-c302-4006-be05-56bdb9f1ab19</dc:identifier> <meta name="cover" content="cover" /> </metadata> <manifest> <item id="page_css" href="Styles/page_styles.css" media-type="text/css"/> <item id="css" href="Styles/stylesheet.css" media-type="text/css"/> <item id="Table_of_Contents.html" href="Text/Table_of_Contents.html" media-type="application/xhtml+xml"/> Code:
xhtml+xml"/> <item id="titlepage" href="Text/titlepage.xhtml" media-type="application/xhtml+xml"/> <item id="cover.xhtml" href="Text/cover.xhtml" media-type="application/xhtml+xml"/> </manifest> <spine toc="ncx"> <itemref idref="cover.xhtml"/> <itemref idref="titlepage"/> <itemref idref="Table_of_Contents.html"/> Under images there's a file called cover.jpg. It's the correct size and it's ticked in semantics. |
08-20-2023, 04:34 PM | #5 |
Bibliophagist
Posts: 35,513
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
For an ePub2, what do you show in the <guide> section of the .opf file? To designate an open page, you should see something similar to the following:
Code:
<reference type="text" title="Startup Page" href="section0001.xhtml"></reference> Code:
<li><a epub:type="bodymatter" href="section0001.xhtml">Start of Content</a></li> Adding a <guide> to your OPF file Adding landmarks to your EPUB 3 Nav Document Two notes is that quite a few renderers do not support these options and will disregard them and that almost all renderers will only use this start page when the ebook is opened as a new file or re-opened as a finished file. |
Advert | |
|
08-20-2023, 04:56 PM | #6 |
Junior Member
Posts: 7
Karma: 10
Join Date: Aug 2023
Device: Sigil 2.0
|
There is no <guide> section
There is no <Guide> section. I can add one but where exactly do I insert it?
I'm new to Sigil, so be gentle! |
08-20-2023, 05:27 PM | #7 | |
Bibliophagist
Posts: 35,513
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Code:
<guide> <reference type="toc" title="Contents" href="Text/contents.xhtml"/> <reference type="text" title="Beginning" href="Text/chap001.xhtml"/> <reference type="copyright-page" title="Copyright" href="Text/copyright.xhtml"/> <reference type="cover" title="Cover" href="Text/cover.xhtml"/> </guide> |
|
08-20-2023, 05:43 PM | #8 |
Junior Member
Posts: 7
Karma: 10
Join Date: Aug 2023
Device: Sigil 2.0
|
Cover is a png
My cover picture is a png file in images. I noticed that a lot of books have 'cover in the index. Mine doesn't It starts on what would be chapter 1The html Table of contents I generated, but it doesn't show.
I think I'm doing something fundamentally wrong. So much for all the 'guides' on the web that says the cover should be an image file and MUST be called cover and it MUST be in images and ALL I need to do is tell Sigil 'Add cover' and voila. Well it doesn't work at all. |
08-20-2023, 06:22 PM | #9 | |
Wizard
Posts: 1,107
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Quote:
The guide section is part of the .opf file and most often the last entry in the file before the closing </package> tag. Posting snippets is not really going to help you a lot. Best if we get the full picture by posting the ebook. Is the book in copyright? |
|
08-20-2023, 08:56 PM | #10 | |
Bibliophagist
Posts: 35,513
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
The cover image must be an image file (Doh!). It does not need to be called cover.<image format>, it does not need to be anywhere other than not it MUST NOT be in the META-INF directory. A right click on the image file and clicking on Cover image will give the correct semantics. If you are using Kobo kepub format, you are pretty much required to have every text file in the nav.xhtml (ePub3) or toc.ncx (ePub2) but otherwise, you could just have a single entry (Start is rather popular). |
|
08-20-2023, 10:13 PM | #11 | |
null operator (he/him)
Posts: 20,590
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
08-21-2023, 04:24 AM | #12 | |
A Hairy Wizard
Posts: 3,101
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
|
|
08-21-2023, 04:46 AM | #13 | ||
Junior Member
Posts: 7
Karma: 10
Join Date: Aug 2023
Device: Sigil 2.0
|
Must do some work
Quote:
I'm quite happy to "do some work" all you have to do is tell me HOW. I'm an ex-Novell eDirectory Engineer and Delphi Pascal programmer. That doesn't make me an expert in epubs or ePub terminology. If I was, I wouldn't be asking for help. You glibly speak of 'cover.xhtml' I don't have one. I have a titlepage.xhtml (which I was led to believe is also the cover). Quote:
If I start muttering about 'replicas in skulk' or 'unprocessed obituary flags' and 'subordinate references' I would be surprised if anyone understood a word, yet it's OK for you to start on about Kodo kepub format. I think I came to the wrong forum and asked far too much. You need to have an in-depth knowledge BEFORE you ask for help. I wonder how long I would have lasted with Novell if I'd tried my best to confuse people who knew NOTHING about the product? |
||
08-21-2023, 04:49 AM | #14 |
Resident Curmudgeon
Posts: 74,049
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Nobody is going t bother to try to unscramble your eBooks. No need to be paranoid. Do you want help of not?
Last edited by JSWolf; 08-21-2023 at 04:54 AM. |
08-21-2023, 04:53 AM | #15 |
Wizard
Posts: 1,107
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Your thread is in the epub forum, so not Sigil related.
If you want Sigil, then you need to post in the Sigil sub-forum. This entire forum is about ebooks. Sigil, Calibre, all the ereaders are components of the larger forum. Not really sure why the attitude has arisen in your post. Members are trying to help, you are turning them (me) off. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem with opening book | bartek158 | Calibre | 4 | 04-03-2018 08:23 AM |
Aura HD Problem opening large ebooks | Nick Payne | Kobo Reader | 9 | 03-18-2017 03:37 AM |
Problem opening epub in Calibre | RaMcK | Calibre | 1 | 06-24-2013 10:06 PM |
problem opening kobo book | ollam | Kobo Reader | 7 | 07-03-2011 02:51 AM |
Problem in opening full library | didymus | Calibre | 1 | 12-31-2009 06:30 AM |