|
|
#1 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jun 2012
Device: None
|
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 ? |
|
|
|
|
|
#2 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,687
Karma: 3644259
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.
__________________
Dale DePriest http://pages.suddenlink.net/dalede or http://daledepriest.wikispaces.com currently using an EZ Reader or a Literati or my iPad. |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73
Karma: 548814
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. |
|
|
|
|
|
#4 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,817
Karma: 23122266
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
|
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.
__________________
“Politics: A strife of interests masquerading as a contest of principles. The conduct of public affairs for private advantage.” |
|
|
|
|
|
#5 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,095
Karma: 927511
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.
__________________
Creator and maintainer of the e-Book Tools Word add-in. Creator and maintainer of the Clean HTML macro for MS Word. |
|
|
|
|
|
#6 | |
|
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 469
Karma: 1167803
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
|
Quote:
--- 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' )
|
|
|
|
|
|
|
#7 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,135
Karma: 2460081
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
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/... |
|
|
|
|
|
#8 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jun 2012
Device: None
|
Thank you all for your answers.
|
|
|
|
![]() |
| Tags |
| epub, oebps, opf, watermark |
| Thread Tools | Search this Thread |
|
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 | Mobi | 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 |