Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-10-2010, 03:53 PM   #1
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 15,518
Karma: 13575467
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Duplicate covers from Calibre.

I am getting duplicate cover pages in the calibre output from Sigil files.

In Sigil, the first two files of the document are Cover.xhtml and Title Page.xhtml (also an image). After compiling the Sigil file with Calibre, two cover pages appear in all outputs (epub, lrf, and mobi).

On checking the Calibre file, I have found that a new file has been inserted at the beginning entitled titlepage.xhmtl. This new file contains the cover image and is encoded as <title>Cover</title>. This is the source of the duplicate. The cover image is ticked as Cover in the Sigil Book Browser.


After checking with Kovid and sending him both the Sigil file and the Caliber file I received the following answer:

Quote from Kovid
"The problem is that the sigil file doesn't identify the cover as a cover. There needs to be a guide element in the OPF file. Compare it with the OPF from the calibre epub. "

How can I look at the OPF file in Sigil? Can I edit if necessary? As a workaround, I could make it match Calibre.
His quick fix of adjusting Calibre doesn't seem to work. I'm dead in the water for production.



Charlie
crutledge is offline   Reply With Quote
Old 05-10-2010, 04:50 PM   #2
kevinp
Fanatic
kevinp ought to be getting tired of karma fortunes by now.kevinp ought to be getting tired of karma fortunes by now.kevinp ought to be getting tired of karma fortunes by now.kevinp ought to be getting tired of karma fortunes by now.kevinp ought to be getting tired of karma fortunes by now.kevinp ought to be getting tired of karma fortunes by now.kevinp ought to be getting tired of karma fortunes by now.kevinp ought to be getting tired of karma fortunes by now.kevinp ought to be getting tired of karma fortunes by now.kevinp ought to be getting tired of karma fortunes by now.kevinp ought to be getting tired of karma fortunes by now.
 
kevinp's Avatar
 
Posts: 553
Karma: 3549018
Join Date: Jul 2004
Location: Orlando
Device: Nook HD+; Kindle for Android on HTC One SV
Dead in the water? Just don't add the cover image in Sigil. If you're recompiling the book in Calibre, let Calibre add the cover.
kevinp is offline   Reply With Quote
 
Enthusiast
Old 05-10-2010, 04:53 PM   #3
Sabardeyn
Guru
Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.
 
Sabardeyn's Avatar
 
Posts: 629
Karma: 1242364
Join Date: May 2009
Location: The Right Coast
Device: PC (Calibre), Nexus 7 2013 (Moon+ Pro), HTC HD2/Leo (Freda)
All EPUB files are simple ZIP archives - with it's extension changed.

Use any unzip software to decompress the files in the archive and you should find an OPF file. Just open that in any text handling software (Notepad, Notepad++, etc). Make sure when you're done that you save it as straight text; otherwise formatting info is included and will ruin the file for use in epub readers.
Sabardeyn is offline   Reply With Quote
Old 05-10-2010, 05:19 PM   #4
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by crutledge View Post
After checking with Kovid and sending him both the Sigil file and the Caliber file I received the following answer:

Quote from Kovid
"The problem is that the sigil file doesn't identify the cover as a cover. There needs to be a guide element in the OPF file. Compare it with the OPF from the calibre epub. "
I'd also like to see both of these files for myself. Create an issue on the tracker and then attach the epubs.
Valloric is offline   Reply With Quote
Old 05-10-2010, 07:05 PM   #5
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Since the discussion started here, I'll respond here.

I've seen your issue crutledge, and I've examined the two files. There's absolutely nothing wrong with the epub file Sigil produced. You marked the cover image as the cover, and Sigil added a special meta tag identifying the cover to the OPF. RS's like the iPad will be able to load this cover and show it on the bookshelf.

Again, the epub itself is perfectly valid and also quite sensible.

Calibre then loads this epub file and invents a "titlepage.xhtml" file out of thin air that wraps your cover image in an SVG and then adds it to the front of your book. My first reaction would be that this is a bug in Calibre, but since Kovid has seen the files, I guess it's a feature. I'm guessing it's because Kovid wants your epub file to also have a special XHTML page for the cover that is also present in the guide section of the OPF. This is not necessary at all, and I'm strongly against a converter making these kinds of decisions about the "preferred" structure of EPUB files.*

An irrefutable fact of the matter is that your original epub file was valid and completely sensible.

Kovid's comment that "There needs to be a guide element in the OPF file" is patently false (sorry Kovid but it's true, and you know it). There doesn't need to be any such thing. You could add it, but nothing says you should.

If you want to add this information to your book, you could do so by right clicking the XHTML file containing the cover image in the original file and going to Add Semantics -> Cover. This would prevent Calibre from inventing new content files.

*This "feature" really pisses me off. Inventing new files out of the blue and casually inserting them into the book? C'mon. I can understand the motivation and the good intentions behind it, but this is a damn good example of those intentions paving a road...
Valloric is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Duplicate My Calibre Library on Multiple Computers? Sydney's Mom Related Tools 101 03-10-2011 12:14 PM
Do i need to save the covers Calibre creates? bookworm65 Calibre 4 08-10-2010 05:29 PM
Duplicate covers from Calibre crutledge Calibre 4 05-10-2010 03:08 PM
Calibre viewer no longer displays covers Sigwolf Calibre 3 04-21-2010 11:27 AM
Epub book covers in calibre zhuxi13 Calibre 1 02-06-2010 07:56 PM


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


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