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 02-11-2013, 05:54 AM   #1
oblivicat
Junior Member
oblivicat began at the beginning.
 
oblivicat's Avatar
 
Posts: 5
Karma: 10
Join Date: Feb 2013
Location: Los Angeles
Device: ipad
OPF file doesn't like "._"

Hello there,

This is my first post in this forum (probably the first of many). I am the ebook manager for a publishing Press called Ink Pen Mutations. I'm learning how to make ebooks,market them, etc. Not knowing much about this stuff I've been taking Lynda tutorials. The first ebook I'm making is fixed layout style from scratch.

I'm having a maddening problem trying to validate my epub. I'm getting this on all images:

WARNING: test.epub: item (__MACOSX/OEBPS/images/._12_homeless.jpg) exists in the zip file, but is not declared in the OPF file

There is a image file called "12_homeless.jpg". So, something seems to be putting "._" in front of all the images. I'm on Mac so I guess that could be the reason. But, I have no clue how to get rid of the messages. Any help would be appreciated!

tt
oblivicat is offline   Reply With Quote
Old 02-11-2013, 07:39 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,182
Karma: 7180223
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
How do you create the OPF? Are you sure that the images are declared in the OPF?
Toxaris is offline   Reply With Quote
Old 02-11-2013, 08:55 AM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,526
Karma: 43837842
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
That looks like the hidden "__MACOSX" folder that OSX includes when performing the normal "Archive as" function. That hidden resource folder can't exist in a valid ePub (and still pass validation, anyway). This is one time where doing it "from scratch" is biting you in the ass. Don't create an "archive," create a zip file with the "zip" command—if you insist on doing it from scratch. But I recommend using pdurrant's tool for easily zipping/unzipping epubs properly on OSX, instead. There are special considerations when creating an ePub package (the mimetype file must be first and uncompressed).

Your validator is complaining that the files (that start with "._") in the hidden __MAXOSX folder are NOT declared in the opf. And they shouldn't be; because the hidden __MACOSX folder shouldn't be in the ePub package in the first place.

Last edited by DiapDealer; 02-11-2013 at 11:25 AM.
DiapDealer is offline   Reply With Quote
Old 02-11-2013, 01:03 PM   #4
xrm0
Member
xrm0 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2013
Location: Argentina
Device: Kindle
You can also use explodeImplodeEpub to rebuild the epub. You just drop the epub over the application and press rebuild. The new epub is rebuilt without the files on __MACOSX
Here are the details: http://www.mobileread.com/forums/sho...d.php?t=203822

(disclaimer: I wrote the application)
xrm0 is offline   Reply With Quote
Old 02-11-2013, 01:15 PM   #5
oblivicat
Junior Member
oblivicat began at the beginning.
 
oblivicat's Avatar
 
Posts: 5
Karma: 10
Join Date: Feb 2013
Location: Los Angeles
Device: ipad
images are declared

Quote:
Originally Posted by Toxaris View Post
How do you create the OPF? Are you sure that the images are declared in the OPF?
I used, and overwrote a sample OPF that Lynda.com supplied. All the images are declared:

<item id="pg11-img" href="images/10_homeless.jpg" media-type="image/jpeg" />
<item id="pg12-img" href="images/11_homeless.jpg" media-type="image/jpeg" />
<item id="pg13-img" href="images/12_homeless.jpg" media-type="image/jpeg" />
<item id="pg14-img" href="images/13_homeless.jpg" media-type="image/jpeg" />

The epub itself works perfectly btw.

Thanks!

tt
oblivicat is offline   Reply With Quote
Old 02-11-2013, 01:21 PM   #6
oblivicat
Junior Member
oblivicat began at the beginning.
 
oblivicat's Avatar
 
Posts: 5
Karma: 10
Join Date: Feb 2013
Location: Los Angeles
Device: ipad
Quote:
Originally Posted by DiapDealer View Post
This is one time where doing it "from scratch" is biting you in the ass.
Yo DD, this is fantastic! Once I get home from work today I'll try this out and report back.



tt
oblivicat is offline   Reply With Quote
Old 02-11-2013, 01:24 PM   #7
oblivicat
Junior Member
oblivicat began at the beginning.
 
oblivicat's Avatar
 
Posts: 5
Karma: 10
Join Date: Feb 2013
Location: Los Angeles
Device: ipad
Quote:
Originally Posted by xrm0 View Post
You can also use explodeImplodeEpub to rebuild the epub. You just drop the epub over the application and press rebuild. The new epub is rebuilt without the files on __MACOSX
Here are the details: http://www.mobileread.com/forums/sho...d.php?t=203822

(disclaimer: I wrote the application)
Hey, thanks for the info! Now I've got some ammo to fight the "._"! I'll try this tonight hopefully and report back.



tt
oblivicat is offline   Reply With Quote
Old 02-12-2013, 12:24 PM   #8
oblivicat
Junior Member
oblivicat began at the beginning.
 
oblivicat's Avatar
 
Posts: 5
Karma: 10
Join Date: Feb 2013
Location: Los Angeles
Device: ipad
Quote:
Originally Posted by xrm0 View Post
You can also use explodeImplodeEpub to rebuild the epub. You just drop the epub over the application and press rebuild. The new epub is rebuilt without the files on __MACOSX
Here are the details: http://www.mobileread.com/forums/sho...d.php?t=203822

(disclaimer: I wrote the application)
Wow! It really is mind-blowing when something actually works. explodeImplodeEpub works like a charm! It got rid of all the extra junk Mac put in. And so easy to use. Thanks so much!!!

tt
oblivicat is offline   Reply With Quote
Old 02-12-2013, 12:41 PM   #9
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: 38,474
Karma: 19300555
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2), Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Use Calibre with the Modify ePub plugin. Then you can easily get rid of the OS X artifacts.

After that is done, right click the ePub and open file location, copy the ePub and there's your artifact free ePub.
JSWolf is offline   Reply With Quote
Reply

Tags
epub, epub check, fixed layout, opf file

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixed Layout Sample ".mobi" file with package(html, css, opf, ncx files). Sushil Kindle Fire 1 01-13-2012 08:16 AM
Custom column: "Updated date", when adding new "versions" of the same file? enriquep Library Management 16 11-03-2011 11:46 AM
Is "dc:rights" a valid entry in an OPF file for Kindlegen? Stodder Kindle Formats 5 06-06-2011 07:52 PM
Help! the "Make Sony Reader File" under "Options" is different Dr. Drib Sony Reader 6 04-23-2007 03:56 AM


All times are GMT -4. The time now is 06:11 AM.


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