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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 04-13-2011, 04:43 PM   #1
gdgibson
Member
gdgibson began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Apr 2011
Device: All
Indesign CS5 to ePub: epubcheck error

So I've exported a book from IDCS5 to ePub and, for the first time, run it through ePubcheck. Most of the errors involve pretty minor stuff, easily edited, but one has me stumped:

Quote:
WARNING: /Users/. . . file.epub: item (__MACOSX/OEBPS/._template.css) exists in the zip file, but is not declared in the OPF file
I tried editing the OPF file in TextEdit (via Springy) and it sort of worked, in that I didn't get this error when I ran epubcheck again. Unfortunately it now says that none of my image files are referenced in the opf (coincidentally, all the references appear below the change I made in the file). So I clearly screwed up the coding.

So - two questions: first, can someone point me to an all-purpose primer on editing the OPF file? And how is it possible that IDCS5 would fail to include the template.css in the OPF file? Does this happen a lot?

By the way, here's the line of code I added (in bold), with the previous and succeeding line in roman:

Quote:
<item id="[filename]" href="[filename].xhtml" media-type="application/xhtml+xml"/><item id>="template" href="template.css" media-type="application/xhtml+xml"/><item id="[filename]" href="images/[filename].jpeg" media-type="image/jpeg"/>
and here's the standard error message for the missing items:

Quote:
WARNING: /Users/[filename].epub: item (OEBPS/images/[filename].jpeg) exists in the zip file, but is not declared in the OPF file
Any help will be appreciated!
gdgibson is offline   Reply With Quote
Old 04-13-2011, 05:40 PM   #2
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
<item id="[filename]" href="[filename].xhtml" media-type="application/xhtml+xml"/><item id>="template" href="template.css" media-type="application/xhtml+xml"/><item id="[filename]" href="images/[filename].jpeg" media-type="image/jpeg"/>
You have a > between id and =. This is wrong.
DaleDe is offline   Reply With Quote
Advert
Old 04-19-2011, 01:01 PM   #3
gdgibson
Member
gdgibson began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Apr 2011
Device: All
How embarrassing. But I solved this and a number of other problems by exporting from epub to epub in Calibre.

Thanks for the help!
gdgibson is offline   Reply With Quote
Old 04-20-2011, 01:26 AM   #4
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
I think the (__MACOSX/OEBPS/._template.css) files are invisible files the macs leaves behind. I see ._store files left around in every directory that the macs open. I think files with dot underscore are invisible to the macs. So they exist but because you can't see it it would stuff up the inventory.

Just a wild guess, but worth following up.

Edit: Another thought. The dot underscore file would have been created when you edited the OPF. Indesign wouldn't have written it. Try epubchecking before you open the epub and see if you get the same error. If you don't, then edit it and if you get the same error ask the mac community how they do it.

found this link for you. hope it helps. https://www.mobileread.com/forums/showthread.php?t=55681

Last edited by wannabee; 04-20-2011 at 01:34 AM.
wannabee 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
Export to ePub from InDesign CS5 gardefjord ePub 42 10-29-2011 10:42 AM
InDesign CS5 to ePub Debi-NJ ePub 2 09-02-2011 09:43 AM
InDesign CS5 to EPUB--greek/coptic in Italic Momccl ePub 11 04-08-2011 09:32 AM
Creating ePub files in InDesign CS5 larlarcook Workshop 0 12-20-2010 01:30 PM
ePub for iPad @ Indesign CS5 Sumeet Introduce Yourself 2 06-07-2010 10:34 AM


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


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