01-31-2012, 03:44 AM | #1 |
Member
Posts: 23
Karma: 10
Join Date: Jan 2012
Device: Nook
|
frustrating error messages
We've recently converted a manuscript to epub (with lots of help from users on this forum) but when we check the document we get two error messages and no clue as to how to fix them.
The messages are: OEBPS/Images/CHOICES-cover.jpg This resource is present in the OPF <manifest>, but it's not reachable (it's unused). OEBPS/Text/Section0001.xhtml ID value 'heading_id_12' is not unique Cover.jpg is the cover of the book and it show ok when you look at the epub so we're not sure why it says its not reachable. We've also looked at the document in code view and can see only one mention of 'heading_id_12' so no idea why its saying its not unique. Can anyone help? |
01-31-2012, 05:48 AM | #2 |
♫
Posts: 660
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
|
The cover image is not linked from somewhere, that's why it is unused.
For the heading, just remove all headings (search for ' id="heading_id_[0-9]+"' without the ' and replace it with nothing), then regenerate the TOC. |
Advert | |
|
01-31-2012, 06:26 AM | #3 |
Member
Posts: 23
Karma: 10
Join Date: Jan 2012
Device: Nook
|
Hi,
Thanks for your reply. Re the headings issue: are you saying that where, for example it says <h1 id="heading_id_25"><span class="sgc-3">Chapter 1</span></h1> I should remove all the data around Chapter 1 so that I'm left with <p>Chapter 1</p> I've just tried that and it couldn't generate a TOC. Obvioulsy I'm getting the wrong end of the stick here. Can you clarify please? As an example, where it says <h2 id="heading_id_26">Chapter 2</h2> what do I delete and what do I leave? |
01-31-2012, 07:46 AM | #4 |
Guru
Posts: 655
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
As WS64 said, search for: (notice leading space)
Code:
id="heading_id_[0-9]+" So <h1 id="heading_id_25"><span class="sgc-3">Chapter 1</span></h1> will become <h1><span class="sgc-3">Chapter 1</span></h1> Still leaving the <h#> tags, which will be picked up in the regeneration |
01-31-2012, 08:07 AM | #5 |
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Is Cover.jpg the cover or is CHOICES-cover.jpg the cover? Where does it show? In Sigil? In another reader? EPUB supports specifying a cover that is used by readers but is never used in the actual book.
|
Advert | |
|
01-31-2012, 08:45 AM | #6 |
Member
Posts: 23
Karma: 10
Join Date: Jan 2012
Device: Nook
|
Thanks. That makes sense. As for the first part of my posting, any ideas why we're getting an error that says:
OEBPS/Images/CHOICES-cover.jpg This resource is present in the OPF <manifest>, but it's not reachable (it's unused). cover.jpg is the cover of the book and, when the document is transferrred to a reading device, the book appears with the cover. Any idea how we can fix this? |
01-31-2012, 08:55 AM | #7 | |
Sigil developer
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
Quote:
|
|
01-31-2012, 09:16 AM | #8 |
Member
Posts: 23
Karma: 10
Join Date: Jan 2012
Device: Nook
|
My apologies, the file name for our cover image is CHOICES-cover.jpg. I've been told we have to declare the file in OPF so that we can get rid of the message. Is this straight forward to do?
|
01-31-2012, 09:51 AM | #9 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
You have the image in you OPF, but you don't use it in any xhtml files. Therefore the message 'is not used'.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error Messages in Calibre | didiyy | Devices | 17 | 01-11-2013 03:31 PM |
error messages on new PC | huskerruth | Devices | 1 | 02-16-2011 11:56 AM |
Help with resolving error messages? | zebedee | Introduce Yourself | 10 | 01-02-2011 05:34 PM |
Error Messages in Calibre | didiyy | Introduce Yourself | 4 | 09-10-2010 10:45 AM |
Contradictory error messages in ConvertLit | Fledchen | Workshop | 6 | 02-21-2009 12:38 PM |