![]() |
#46 | ||
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
I'll refer you to section 2.3 of the Open Packaging Format. Quote:
ADE handles it because it embeds WebKit which does all the loading. IMO, they point it to the directory structure in the epub file and it loads all the images as they are referenced in the HTML. It (webkit) does not use the OPF directly. Last edited by Valloric; 06-15-2009 at 11:18 AM. Reason: typo |
||
![]() |
![]() |
![]() |
#47 |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
|
![]() |
![]() |
![]() |
#48 |
sleepless reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,763
Karma: 615547
Join Date: Jan 2008
Location: Germany, near Stuttgart
Device: Sony PRS-505, PB 360° & 302, nook wi-fi, Kindle 3
|
|
![]() |
![]() |
![]() |
#49 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
It's not "irrelevent" what Mobi does if you wish to create source which can be built for both Mobi and ePub, and if ePub works without the graphics files being listed in the manifest section of the OPF file, I have to ask "does it matter, at a practical level?" Standards are all very nice, but in reality one goes with what works. If web browsers, for example, were only to display web sites which rigorously conformed to HTML standards, there wouldn't be many that would work. Last edited by HarryT; 06-15-2009 at 12:38 PM. |
|
![]() |
![]() |
![]() |
#50 | |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
I have no intention of testing each and every device out there to see if it fails on this specific issue. The whole point of a defined standard is that one doesn't need to check how their books display on all devices: one just needs to check against the standard.
Quote:
If you don't list all you files in the manifest, you are disregarding the whole point of that section. There are numerous tools out there that convert or transform the epubs in some way and they don't employ HTML renderers. They will break on this. If you for instance feed an epub file to a converter that checks only the OPF file (which it should do), the conversion will fail. Harry, during my time here on MobileRead you have come across as a very intelligent person. I obviously do not know how to convince you to follow the prescribed standard. Honestly, I'm amazed that I even have to. I will tell you that if you make epub books with this error you--or someone else using your books--will most definitely encounter a system that will fail in some way because of it. I guarantee it. Please do not ignore the manifest, or any other part of the epub spec. |
|
![]() |
![]() |
![]() |
#51 | |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
A compliant epub works just as well. Use that. |
|
![]() |
![]() |
![]() |
#52 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
Images which are not referenced in an HTML page are, of course, an entirely different matter. They do of course need to be listed in the manifest in order to be included in the book. |
|
![]() |
![]() |
![]() |
#53 | |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
All the images are listed in the manifest. You parse that, follow the links in that manifest (because they're there; they have to be, it's in the spec) and you just add those files to whatever new container you are filling up. No need to write an HTML parser. Saves a ton of work. For some strange reason, I get the feeling that was the whole point of the manifest section: you can get to all the files in the publication without having to go through all the HTML files and scan them line by line. |
|
![]() |
![]() |
![]() |
#54 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
I think we're talking slightly at cross purposes here. I'm talking about rendering an ePub file. Any ePub renderer has, by definition, to be able to render HTML and hence will be able to handle image links.
|
![]() |
![]() |
![]() |
#55 | |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
You can not ignore these needs. People will download your epub files and assume (rightly so) that they conform to the standard. These files will fail in their current or future pipeline. Also, assuming how their implementation of a render will look like is a bad idea. Maybe the image files (or other resources) are extracted to some other temporary location not in the archived epub tree and are loaded from there upon request? You would get the links to those images from the OPF. This would also fail with your error. Harry, your position is sadly indefensible. |
|
![]() |
![]() |
![]() |
#56 |
sleepless reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,763
Karma: 615547
Join Date: Jan 2008
Location: Germany, near Stuttgart
Device: Sony PRS-505, PB 360° & 302, nook wi-fi, Kindle 3
|
As a software developer i've to admit that i wouldn't implement a (X)HTML-parser (as well as a much simpler parser for DTBook based documents) if i would have to implement a ePub2SomethingElse converter. I would just scan the manifest for all required files of the publication as Valloric pointed out.
If i would have to implement a ePub renderer then i would parse and interpret all permitted media elements contained in the xhtml or dtbook files. But if a used media type isn't one of the OPS core media types and my application (or the device) is not able to support that certain media type, then i would have to read the manifest because according to the specification the manifest must contain an alternative fallback for that media then. |
![]() |
![]() |
![]() |
#57 | |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
All other issues still stand though. |
|
![]() |
![]() |
![]() |
#58 |
Hi There!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,473
Karma: 2930523
Join Date: Feb 2008
Location: Ft Lauderdale
Device: iPad
|
"- Start using epub but don't worry about converting stuff I already have---again, cross that bridge when or if I need to."
If someday in the far future I am unable to re-read the older stuff, well, I guess I'll just have to read something else. I almost never re-read, so don't see this as a problem. |
![]() |
![]() |
![]() |
#59 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The reason the fonts do not need to be listed in the OPF is that they get pulled in via the CSS and the OPF doesn't actually need to know they are there. The CSS needs to know so it can pull them in specify where to use them.
|
![]() |
![]() |
![]() |
#60 | |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
Go through the whole discussion and replace the word "image" with the word "font". The result is the same. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
epub vs lrf - why choose epub for sony reader? | Mitchll | Calibre | 25 | 03-11-2010 09:39 PM |
LRF to ePub | JSWolf | Calibre | 2 | 12-29-2009 05:50 PM |
LRF to ePUB : Will it ever be possible | halljames | Calibre | 51 | 10-08-2009 12:13 AM |
Epub to LRF no problem, Epub to Mobi indexerror | Rogier | Calibre | 3 | 06-09-2009 11:42 AM |
LRF to EPUB | scottsan | Calibre | 4 | 04-24-2009 08:31 AM |