Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 08-20-2023, 06:18 AM   #1
WillyA
Junior Member
WillyA began at the beginning.
 
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?
WillyA is offline   Reply With Quote
Old 08-20-2023, 01:39 PM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
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.
Turtle91 is offline   Reply With Quote
Advert
Old 08-20-2023, 01:53 PM   #3
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
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!!
Turtle91 is offline   Reply With Quote
Old 08-20-2023, 03:39 PM   #4
WillyA
Junior Member
WillyA began at the beginning.
 
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"/>
Then further down the page

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"/>
It LOOKS OK, but it still doesn't work with calibre ePub reader.

Under images there's a file called cover.jpg. It's the correct size and it's ticked in semantics.
WillyA is offline   Reply With Quote
Old 08-20-2023, 04:34 PM   #5
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: 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>
For an ePub3 file, the start location is in the landmarks nav section of the navigation document. It would look similar to the following:

Code:
<li><a epub:type="bodymatter" href="section0001.xhtml">Start of Content</a></li>
You can check the following pages for more information:

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.
DNSB is offline   Reply With Quote
Advert
Old 08-20-2023, 04:56 PM   #6
WillyA
Junior Member
WillyA began at the beginning.
 
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!
WillyA is offline   Reply With Quote
Old 08-20-2023, 05:27 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: 35,513
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by WillyA View Post
There is no <Guide> section. I can add one but where exactly do I insert it?

I'm new to Sigil, so be gentle!
The guide section is part of the .opf file and most often the last entry in the file. A sample from one book I just opened with Sigil is:
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>
So the book should open at Chapter 1 (assuming that is what chap001.xhtml contains). Again, the risk is that whatever you use to render the ePub will pay no attention to the type="text" line.
DNSB is offline   Reply With Quote
Old 08-20-2023, 05:43 PM   #8
WillyA
Junior Member
WillyA began at the beginning.
 
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.
WillyA is offline   Reply With Quote
Old 08-20-2023, 06:22 PM   #9
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,107
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by DNSB View Post
The guide section is part of the .opf file and most often the last entry in the file.
If I can just adjust that a bit for the member that may take it too literally...

The guide section is part of the .opf file and most often the last entry in the file before the closing </package> tag.

Quote:
Originally Posted by WillyA View Post
I think I'm doing something fundamentally wrong.
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?
Karellen is offline   Reply With Quote
Old 08-20-2023, 08:56 PM   #10
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: 35,513
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by WillyA View Post
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.
Adding the cover image to a html file does not automagically add the file to the table of contents in the toc.ncx/nav.xhtml file. That requires you to do some work.

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).
DNSB is offline   Reply With Quote
Old 08-20-2023, 10:13 PM   #11
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,590
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Karellen View Post
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?
To hide the substantive text the OP could post the output of the ScrambleEbook calibre plugin, there are instructions in that thread for running it from the command line.

BR
BetterRed is offline   Reply With Quote
Old 08-21-2023, 04:24 AM   #12
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
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:
Originally Posted by BetterRed View Post
To hide the substantive text the OP could post the output of the ScrambleEbook calibre plugin, there are instructions in that thread for running it from the command line.

BR
A similar plug-in is available if you are using Sigil; the Borkify plug-in.
Turtle91 is offline   Reply With Quote
Old 08-21-2023, 04:46 AM   #13
WillyA
Junior Member
WillyA began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Aug 2023
Device: Sigil 2.0
Must do some work

Quote:
Adding the cover image to a html file does not automatically add the file to the table of contents in the toc.ncx/nav.xhtml file. That requires you to do some work
Nope, I'm not putting the book on here. scrambled or not. I've been around computers for too long to trust ANYTHING on the web. What one man can scramble another can UNscramble and there are more criminals out there (10,000 blocked hacker IP addresses already on my firewall).

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 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).
I don't believe I ever mentioned ePub3 or Kobo. I thought this forum was for SIGIL I'm not trying to create a new version Doomsday weapon or anything else. It's a simple help guide for myself AND MY FRIENDS (of which I have few) and I don't work for all the people who want to grab a copy of everything in print and give it away for free.

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?
WillyA is offline   Reply With Quote
Old 08-21-2023, 04:49 AM   #14
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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.
JSWolf is online now   Reply With Quote
Old 08-21-2023, 04:53 AM   #15
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,107
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by WillyA View Post
I thought this forum was for SIGIL
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.
Karellen is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 11:55 AM.


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