|06-15-2012, 10:22 AM||#1|
Join Date: Jun 2012
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 ?
|06-15-2012, 10:58 AM||#2|
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 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.
|06-15-2012, 11:43 AM||#3|
Join Date: Oct 2010
Location: San Francisco
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.
|06-15-2012, 11:52 AM||#4|
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.
|06-15-2012, 02:48 PM||#5|
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.
|06-15-2012, 03:11 PM||#6|
Join Date: Dec 2011
Location: Venice, Italy
Device: Several eReaders and tablets
BTW, I take the liberty of pointing you to my exlibris script: https://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' )
|06-15-2012, 03:12 PM||#7|
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/...
|epub, oebps, opf, watermark|
|Thread Tools||Search this Thread|
|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 04:06 AM|
|Can you make a folder inside a Collection on Kindle?||davtay||Amazon Kindle||20||01-14-2011 10:52 PM|
|Obligatory hello||AdrianM||Introduce Yourself||9||07-31-2010 06:10 PM|
|Obligatory Introduction Thread||kwjones||Introduce Yourself||6||02-25-2009 06:12 PM|