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 06-15-2012, 11:22 AM   #1
Diegnum
Junior Member
Diegnum began at the beginning.
 
Diegnum's Avatar
 
Posts: 5
Karma: 10
Join Date: Jun 2012
Device: None
Question OPF inside OEBPS folder - Obligatory or strongly recommended ??

We work for publishers receiving and distributing their ePubs. I have a disagreement about a technical point with a coworker.

We received an ePub that has the opf directly at the root level and NOT inside the OEBPS folder, as almost every other ePub does.

PROBLEM is that we tried a software that watermarks ePubs but it doesn't work if you input an ePub for which the *.opf file is not inside the OEBPS. So :

epub.epub/OEBPS/content.opf <-- An epub like this works fine in the watermarking software

epub.epub/content.opf <-- An epub like this does not work when we use the watermarking software.

The second ePub DOES have a META-INF/container.xml that points to the OPF, using this code :

<rootfile full-path="content.opf" media-type="application/oebps-package+xml"/>

So our disagreement is :

Is it ok for the publisher to make such an ePub ???

We know it is "technically" correct, according to IDPF's standard.

One of us says the publisher should not contruct his ePubs this way, as he takes a risk that some software or devices show problems for this ePub and that we should tell him to put the *.opf inside OEBPS.

The other one says that it is ok for him to do like that and that the software SHOULD support such a construction, so the publisher is in his right to construct the ePubs in such a way.

What do you think ?
Diegnum is offline   Reply With Quote
Old 06-15-2012, 11:58 AM   #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: 9,781
Karma: 5072196
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
I think the file can be wherever he wants. As far as I know all readers use the container file to find the OPF. Hard coding more than absolutely necessary is a bad idea.
DaleDe is offline   Reply With Quote
 
Advertisement
Old 06-15-2012, 12:43 PM   #3
Jeff L
Connoisseur
Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.
 
Posts: 93
Karma: 550240
Join Date: Oct 2010
Location: San Francisco
Device: Kindle
I've been fixing a bunch of Random House epubs and they all have the OPF at the root.

Many (all?) Penguin epubs, on the other hand, place the OPF in the subfolder.
Jeff L is offline   Reply With Quote
Old 06-15-2012, 12:52 PM   #4
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,539
Karma: 44002482
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
As long as the container.xml file contains the correct path to the OPF file... any decent reading system shouldn't really care where it is.
DiapDealer is online now   Reply With Quote
Old 06-15-2012, 03:48 PM   #5
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,183
Karma: 7180223
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
I think you need to address the creator of the watermark software that it needs to work differently. They should honor the possibilities.
Toxaris is offline   Reply With Quote
Old 06-15-2012, 04:11 PM   #6
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 597
Karma: 1281565
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
Quote:
Originally Posted by Diegnum View Post
We know it is "technically" correct, according to IDPF's standard.
You already know the answer, then --- No serious (= professional and paid) product should impose arbitrary constraints.

BTW, I take the liberty of pointing you to my exlibris script: http://www.mobileread.com/forums/sho...d.php?t=180065 which might suit your needs.
( free software, both as in 'freedom' and as in 'free beer' )
AlPe is offline   Reply With Quote
Old 06-15-2012, 04:12 PM   #7
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: 6,315
Karma: 4963983
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
META-INF/container.xml must point to the correct location of the OPF file (which can have any name and be located anywhere). The location specified in container.xml is relative to the root directory of the epub (i.e., not to the location of container.xml itself, which must me META-INF)

The OPF file must have a manifest of the other files in the epub, and the locations there must be relative to where the OPF is located. So, if everything is inside OEBPS, then the "hrefs" in the OPF are just filenames. But if the OPF is in the root directory and all text files are in OEBPS/Text, the "hrefs" must contain OEPBS/Text/...
Jellby is offline   Reply With Quote
Old 06-26-2012, 10:28 AM   #8
Diegnum
Junior Member
Diegnum began at the beginning.
 
Diegnum's Avatar
 
Posts: 5
Karma: 10
Join Date: Jun 2012
Device: None
Thank you all for your answers.
Diegnum is offline   Reply With Quote
Reply

Tags
epub, oebps, opf, watermark

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TWO OPF files or something like Media Queries in the OPF file for KF8 and MOBI? DHahn Kindle Formats 3 04-17-2012 05:06 AM
Can you make a folder inside a Collection on Kindle? davtay Amazon Kindle 20 01-14-2011 11:52 PM
Obligatory hello AdrianM Introduce Yourself 9 07-31-2010 07:10 PM
Obligatory Introduction Thread kwjones Introduce Yourself 6 02-25-2009 07:12 PM


All times are GMT -4. The time now is 01:51 AM.


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