Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 04-15-2011, 01:43 PM   #1
aum
Junior Member
aum began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2011
Device: none
aum epub fixer

How do I link a TOC in an epub, so that it renders on a kindle and has anyone seen this message before:

(iTunesMetadata.plist) exists in the zip file, but is not declared in the OPF file
aum is offline   Reply With Quote
Old 04-17-2011, 09:23 PM   #2
wannabee
Media Bloke
wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.
 
Posts: 2,381
Karma: 113956855
Join Date: Sep 2010
Location: NSW - Australia
Device: iOS
Quote:
Originally Posted by aum View Post
has anyone seen this message before:

(iTunesMetadata.plist) exists in the zip file, but is not declared in the OPF file
Regarding that last part of the question: I am sure this is Apple's way of saying to all iBook users that they have a sick sence of humour.
As soon as you proof your ePub on an iPad, iTunes adds it's own file (quoted above) which invalidates the ePub.
Solution: Open the ePub again. Remove the playlist which will be on the first level of the package and rezip and rename epub.
I rename the file like "no itunes plist" and use that file to validate then put it in another directory that never goes near iTunes again.

Regarding the linking of a TOC in ePub. It is the same way you create hyperlinks in HTML. How you do that is up to you. Manually in a text editor or there are some HTML editors. Download Sigil and have a read of the Sigil threads.

Last edited by wannabee; 04-17-2011 at 09:27 PM.
wannabee is offline   Reply With Quote
Advert
Old 04-18-2011, 11:35 AM   #3
marytg
EPUB designer
marytg doesn't littermarytg doesn't litter
 
Posts: 13
Karma: 180
Join Date: Apr 2011
Device: Nook Color
Question Fragment identifier is not defined

I have successfully created a book using HTML for Kindle. Now I am trying to create an ePub format for my next book and have run into a stubborn problem. The HTML works fine, also works when converted to PDF. But I get the "fragment identifier is not defined" error in epubcheck.

I link from my headings back to the table of contents. It is a technical book, not fiction, so this feature is quite useful and important to me.

Here is the code that generates the error in epub:
<p id="NavigationTips"><a href="#aTableofContents"><b><i>Navigation Tips</i></b></a></p>

If I remove "<a href="#aTableofContents">", it does not generate the frag id error.

This is the target code for the TOC:
<h3 id="aTableofContents"><b><i>Contents</i></b></h3>

I have validated the code in HTML Validator. It does not report an error with the code with the href back to the TOC.

I am no expert at HTML, so it could be just a newbie coding error, but I have tried everything and I'm hoping for some expert advice.

Thanks,
Mary
marytg is offline   Reply With Quote
Old 04-18-2011, 11:45 AM   #4
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: 73,957
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by marytg View Post
I have successfully created a book using HTML for Kindle. Now I am trying to create an ePub format for my next book and have run into a stubborn problem. The HTML works fine, also works when converted to PDF. But I get the "fragment identifier is not defined" error in epubcheck.

I link from my headings back to the table of contents. It is a technical book, not fiction, so this feature is quite useful and important to me.

Here is the code that generates the error in epub:
<p id="NavigationTips"><a href="#aTableofContents"><b><i>Navigation Tips</i></b></a></p>

If I remove "<a href="#aTableofContents">", it does not generate the frag id error.

This is the target code for the TOC:
<h3 id="aTableofContents"><b><i>Contents</i></b></h3>

I have validated the code in HTML Validator. It does not report an error with the code with the href back to the TOC.

I am no expert at HTML, so it could be just a newbie coding error, but I have tried everything and I'm hoping for some expert advice.

Thanks,
Mary
Since you are dealing with ePub here, you can just delete the internal ToC as long as you have a good external ToC. ePub does not need an internal ToC. So that is just bloat.
JSWolf is offline   Reply With Quote
Old 04-18-2011, 01:12 PM   #5
pholy
Booklegger
pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.
 
pholy's Avatar
 
Posts: 1,801
Karma: 7999816
Join Date: Jun 2009
Location: Toronto, Ontario, Canada
Device: BeBook(1 & 2010), PEZ, PRS-505, Kobo BT, PRS-T1, Playbook, Kobo Touch
On the other hand, in spite of Jon's Excellent Opinion, you may have decided or been told that you must have an internal html TOC. Personally, I kind of like an HTML TOC.
While I haven't tried the kind of linking you are attempting, it could well be that your fragment identifier is missing a file reference, so the parser doesn't have any idea which file to find the anchor in. Just a guess, but pretty easy to check. Good luck, perhaps more knowledgeable people will have better suggestions.
pholy is offline   Reply With Quote
Advert
Old 04-18-2011, 02:10 PM   #6
marytg
EPUB designer
marytg doesn't littermarytg doesn't litter
 
Posts: 13
Karma: 180
Join Date: Apr 2011
Device: Nook Color
Quote:
Originally Posted by JSWolf View Post
Since you are dealing with ePub here, you can just delete the internal ToC as long as you have a good external ToC. ePub does not need an internal ToC. So that is just bloat.
I realize that the ncx is a ToC. However, I have read on some sites that an internal ToC is a good idea, for one, some ePub readers don't use the ncx file.
Maybe it's misinformation. I'll give up on it if I must.

Thanks for the reply!
marytg is offline   Reply With Quote
Old 04-18-2011, 02:15 PM   #7
marytg
EPUB designer
marytg doesn't littermarytg doesn't litter
 
Posts: 13
Karma: 180
Join Date: Apr 2011
Device: Nook Color
Quote:
Originally Posted by pholy View Post
On the other hand, in spite of Jon's Excellent Opinion, you may have decided or been told that you must have an internal html TOC. Personally, I kind of like an HTML TOC.
While I haven't tried the kind of linking you are attempting, it could well be that your fragment identifier is missing a file reference, so the parser doesn't have any idea which file to find the anchor in. Just a guess, but pretty easy to check. Good luck, perhaps more knowledgeable people will have better suggestions.
I considered that but, in fact, this link is in the same file. I do have other links in other documents that refer back to the ToC id and they get the same "fragment identifier" error.

Hopefully, someone has the answer. If you need more info, let me know. I would like a solution if at all possible.

Thanks for your reply,
Mary
marytg is offline   Reply With Quote
Old 04-19-2011, 05:19 AM   #8
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Try validating with FlightCrew (or Sigil), it might give a more explanatory message.
Jellby is offline   Reply With Quote
Old 04-20-2011, 01:50 PM   #9
marytg
EPUB designer
marytg doesn't littermarytg doesn't litter
 
Posts: 13
Karma: 180
Join Date: Apr 2011
Device: Nook Color
To report my results:
I opened my files with Google Chrome and it is "nice" enough to stop on errors on the page and inform you as to which line has the error! Very cool for finding code errors. Bless little IE's heart, it is so forgiving of errors it just opened my files without any problem. So much for HTML Validator, it missed the errors.

After fixing the errors, the "fragment identifier not defined" errors disappeared. Yeay!

Thanks for your tip about FlightCrew. I'll check it out.
Mary
marytg is offline   Reply With Quote
Old 04-20-2011, 09:16 PM   #10
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: 73,957
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by marytg View Post
I realize that the ncx is a ToC. However, I have read on some sites that an internal ToC is a good idea, for one, some ePub readers don't use the ncx file.
Maybe it's misinformation. I'll give up on it if I must.

Thanks for the reply!
If you cater for broken ePub readers, you cause the author(s) to not have to fix ToC issue. If you don't have an internal ToC and the external ToC doesn't work, then maybe enough people will complain and the reader will get fixed.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
kobo epub fixer (font size problems) thekidintheclock Kobo Reader 85 01-05-2013 10:52 PM
Epub fixer? Gadgetguy Sony Reader 1 03-06-2011 10:46 PM
Epub Fixer Error: "zip error: 15" Gordo29 Kobo Reader 0 06-26-2010 01:57 PM
epub, ePub, EPUB, warum blos ePub? flowoeB Lounge 5 11-27-2009 09:37 AM
The Fixer 5+ books $9.99 package price emellaich Deals and Resources (No Self-Promotion or Affiliate Links) 1 06-26-2009 01:51 AM


All times are GMT -4. The time now is 09:44 PM.


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