08-05-2009, 02:53 PM | #16 |
Sir Penguin of Edinburgh
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
|
08-05-2009, 02:55 PM | #17 | |
creator of calibre
Posts: 44,022
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
Advert | |
|
08-05-2009, 02:56 PM | #18 |
creator of calibre
Posts: 44,022
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
08-05-2009, 03:05 PM | #19 | |
Wizard
Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
|
Quote:
If a book has no cover, the "title page" is the next best thing... making treating it as a cover still the right choice. As for what constitutes a page? Whatever would result in the image being rendered by itself on the device display. Whether it is by virtue of it being in a separate cover.html file, or whatever other ways ePub gurus could accomplish much the same. Or is there no other way to do that? - Ahi |
|
08-05-2009, 03:12 PM | #20 |
creator of calibre
Posts: 44,022
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Suppose the user wants to set a new cover in an epub file. Now should calibre replace the first entry in the spine or not? That is the question.
The only way to unambiguously answer it is to have some pointer in the OPF file that tells calibre whether the first entry in the spine is a cover or not. Try to guess if the first entry is a cover is not at all robust, just take my word for it, I lack the patience to enumerate all the cases where any guessing algorithm will fail. |
Advert | |
|
08-05-2009, 03:19 PM | #21 | |
Wizard
Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
|
Quote:
That seems dummy proof, no? - Ahi |
|
08-05-2009, 03:56 PM | #22 | |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
You cannot seriously expect all epubs to have a file named "cover.html" in them, can you?
Quote:
This should always work, guide element present or not. |
|
08-05-2009, 03:59 PM | #23 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Sigil doesn't work that way. What if the user just imported an image and placed it at the beginning of the file? Not to mention that an "add cover image" button is redundant because of the above way of doing this, which most people want to use anyway.
There should be no difference between a cover image and any other image in an epub. Any such difference would be arbitrary and artificial. Reading systems are not required to use the guide element, and even if they were, ebook authors are not required to specify a cover page. |
08-05-2009, 04:14 PM | #24 | |
Wizard
Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
|
Quote:
A "cover" probably should be treated as metadata, if technology allows. Are there reasons to avoid doing so? (Other than "it's not as easy for Sigil's users"?) - Ahi |
|
08-05-2009, 04:15 PM | #25 | |
creator of calibre
Posts: 44,022
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
If the user just imports an image file at the beginning of the document and doesn't specify that it's a cover, that's the users problem. But Sigil should at least present the possibility for a user to do it the right way. At the very least Sigil should not strip out existing guide elements, unless the file it points to is removed. |
|
08-05-2009, 04:21 PM | #26 | |
Sir Penguin of Edinburgh
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
Quote:
TBH, I've moved it down my list of priorities. It's not in the spec so there's no reason for me to mess with it. |
|
08-05-2009, 04:28 PM | #27 | ||
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
EDIT: And even that cannot be used to specify the cover image, only the cover page! Open it in Sigil, delete the cover image, insert a new one. Done. No need for a guide element. Quote:
Even ADE has its own proprietary extension for this I believe. The file pointed to is not present after importing. Sigil disassembles the imported epub and creates the NCX, OPF etc on export. These files are not stored after they are imported. Last edited by Valloric; 08-05-2009 at 04:32 PM. |
||
08-05-2009, 04:37 PM | #28 | ||||
creator of calibre
Posts: 44,022
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
Quote:
Quote:
Quote:
|
||||
08-05-2009, 05:20 PM | #29 | |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
But I did notice you completely ignored suggestions for a dialog that lets the user specify what is the cover image. The world is larger than calibre, too. A lot of epubs, if not the vast majority, will not have the guide element. So let's make a deal: you make a dialog for specifying what is the cover image in the book in calibre, and I'll add WYSIWYG actions for specifying what is a cover page in Sigil (which will generate the guide element on export). Deal? I think this works in the user's favor, no matter what the application. |
|
08-05-2009, 05:26 PM | #30 |
creator of calibre
Posts: 44,022
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Sigh, whatever, I give up. I can see that getting Sigil to play well with calibre is not going to happen.
Probably faster for me to just make my own EPUB editor. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Free Book (Kindle) - Periodic Table & Acupressure Guide | koland | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 09-15-2010 10:56 PM |
Adding a <reference> item to <guide> in OPF file | GRiker | Sigil | 2 | 04-12-2010 01:06 PM |
EFF's guide to e-book buying & privacy | grimo1re | News | 52 | 12-25-2009 08:17 PM |
HTML, NCX & OPF --> MESS | pakiyabhai | Workshop | 2 | 12-22-2009 10:43 AM |
Can html2epub create the OPF & NCX files? | Acey | Calibre | 4 | 11-17-2008 12:33 AM |