06-15-2012, 10:22 AM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jun 2012
Device: None
|
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 |
Grand Sorcerer
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
|
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 |
Zealot
Posts: 117
Karma: 584308
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. |
06-15-2012, 11:52 AM | #4 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
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 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
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 | |
Digital Amanuensis
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
Quote:
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 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
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/... |
06-26-2012, 09:28 AM | #8 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jun 2012
Device: None
|
Thank you all for your answers.
|
Tags |
epub, oebps, opf, watermark |
|
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 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 |