Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 03-08-2017, 04:30 AM   #31
ibu
Addict
ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.
 
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
@Doitsu
Sorry, I'm responsible for the missunderstanding. I remembered, what you wrote and that I have to change to "kepub.epub". And that I have to check all Kobo specific needs for epub3.
My sentence in #29 was just a report, not a hidden question how to solve it. I wanted to separate the minimalization from the changes which are Kobo specific. But it was my fault, that I didn't communicate it clearly.

With the extension "kepub.epub" the cover and the TOC are shown perfectly in the Kobo.

Edit:
When I remove the nav entry from spine the epub3 validates but it has an interesting effect in Kobo:
The TOC just works fine. But the cover will not be shown.
But please just regard that as note. I will discuss all Kobo specific issues in the Kobo forum.

Last edited by ibu; 03-08-2017 at 04:40 AM.
ibu is offline   Reply With Quote
Old 03-08-2017, 07:55 PM   #32
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: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by ibu View Post
Thanks for the hint about the cover image.
I added the attribute "properties".

And I separated the the nav.

The validated attachement contains the changes. When we finishe this thread, I will edit the first posting and will attache the final file so it is easier for readers to find the latest version.

The cover is not visible in the Kobo. Nor it is the TOC.
But I haven't started with the work to make the minimal epub3 compatible to KOBO. That may be the reason.

About the validator:
May be it would be useful, when it warns, if a nav does not exist as a separated file?
It is not required to be in a separate file. ADE found it in the navigation screen and displayed it fine and also in the book. That is ok if that is what you want. But to match the paper book it should be near the front, not at the end.

Note that the replacement didn't have any pictures in it.

Last edited by DaleDe; 03-08-2017 at 07:59 PM.
DaleDe is offline   Reply With Quote
Old 03-08-2017, 10:40 PM   #33
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
The epub3 spec is unclear. All throughout the spec they talk as if the navdoc is a required separate xhtml file. No where I could find in the epub 3.01 spec did it say that it could be mixed into a more general xhtml file. That said, I could not find a clear line that the navdoc MUST be the only thing in that file either.

Given the navdoc is machine parsed by reading systems (but still usable for human viewing) I think it would be safest in its own doc with the nav property set in the manifest.
KevinH is offline   Reply With Quote
Old 03-09-2017, 03:00 AM   #34
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by KevinH View Post
The epub3 spec is unclear. All throughout the spec they talk as if the navdoc is a required separate xhtml file.
IMHO, it's safe to assume that this is the case, because official and semi-official IDPF epub3 sample files always contain separate NAV docs.

For example:

a) The four quasi-normative sample files linked to in the EPUB 3 Accessibility Guidelines all have separate NAV docs.

b) All EPUB 3 Test Suite files have separate NAV docs.
Doitsu is offline   Reply With Quote
Old 03-09-2017, 04:15 AM   #35
ibu
Addict
ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.
 
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
Thanks for the discussion about separating/not separating the nav.

Your arguments pro separating are convincing.

One point please: How do you interpret the specs regarding the spine and the nav please?

Must the nav.xhtml be an entry in the spine or not?

I regard the case, where the user wants to see the TOC only, when he uses the "show TOC" function in his device. He doesn't want to see it as part of the normal content of the book.
ibu is offline   Reply With Quote
Old 03-09-2017, 04:36 AM   #36
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by ibu View Post
Must the nav.xhtml be an entry in the spine or not?
AFAIK, the NAV doc needs to be referenced in the spine.

Quote:
Originally Posted by ibu View Post
I regard the case, where the user wants to see the TOC only, when he uses the "show TOC" function in his device. He doesn't want to see it as part of the normal content of the book.
You disable access to spine items via the page forward/back buttons with the linear="no" attribute. (Most epub3 apps will honor this attribute, but epub2 apps will usually ignore it.)

Code:
    <itemref idref="nav" linear="no"/>
Doitsu is offline   Reply With Quote
Old 03-09-2017, 05:04 AM   #37
ibu
Addict
ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.
 
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
What a pity, that the specs are in some areas not clear. Well, I will insert the nav entry in spine, because otherwise Kobo will be "confused" (it does not show the cover, nor does the TOC work as I mentioned before).

I tried linear="no" - thanks for the hint, Doitsu.

In Kobo it has no effect. Still the content appears via page forward/back buttons.
And, as a note: the content of nav.xhtml will not be displayed like the content of content.xhml in Kobo. At nav.xhtml you find page margins. at content.xhtml you didn't.

There's a lot work for me to do: I will change to the Kobo forum, to get help about all these "effects" of the Kobo software. Hopefully there's a way to realize the CSS rule page-break: before for headings in a Kobo. If not, my clean and simple concept of "one content file does it all" could not be used.

As promised, I attached the complete minimal epub3 file in my first posting, to make it easy for readers to find the latest version.

Last edited by ibu; 03-09-2017 at 05:18 AM.
ibu is offline   Reply With Quote
Old 03-09-2017, 08:02 AM   #38
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Quote:
Originally Posted by Doitsu View Post
AFAIK, the NAV doc needs to be referenced in the spine.
I disagree. The EPUB 3 specification indicates that the NAV is not required to be in the spine. From EPUB Publications 3.0.1, Section 3.4.12 The spine Element:

Quote:
All EPUB Content Documents that are linked to from EPUB Content Documents in the spine must themselves be listed in the spine. Linked documents include documents referenced from the href attribute of a and area elements and scripted links (e.g., using DOM Events and/or form elements). All EPUB Content Documents linked to from the EPUB Navigation Document must be listed in the spine, as well, regardless of whether the Navigation Document has been included in the spine. The requirement to list linked documents applies recursively (i.e., all Content Documents linked to from linked Content Documents also have to be listed, and so on.).
I have seen commercial epubs with the NAV file left out of the spine and they pass epubcheck with no errors or warnings.
jhowell is offline   Reply With Quote
Old 03-09-2017, 08:54 AM   #39
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by jhowell View Post
I disagree. The EPUB 3 specification indicates that the NAV is not required to be in the spine.
I stand corrected.
Doitsu is offline   Reply With Quote
Old 03-09-2017, 12:53 PM   #40
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: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Using the latest document on ADE I find that there are no images. The page numbers always refer to 4 of 4 no matter where you go. The first version is still the best version IMHO.

Dale
DaleDe is offline   Reply With Quote
Old 03-09-2017, 01:35 PM   #41
ibu
Addict
ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.
 
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
@Dale
I'm not sure, what is a best practice for a minimal testcase.

At the moment I tend to really use only valid code, conform to the specs.
Only than one could see, which epub3 software does not show every part (cover, TOC) correctly or has serious bugs.

ADE and Kobos Kepub software both fail with the minimal testcase.

May be I should link a second epub file which contains "extra code to satisfy buggy rendering software".

Thanks for your feedback. Good to know that not only Kobo fails, when the nav is not mentioned in the spine.

What do you think is a good practice for a minimal testcase?
ibu is offline   Reply With Quote
Old 03-10-2017, 02:27 PM   #42
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: 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 liked the depth of the first case. It intended to have a cover and an image inside. It had a toc and pages of text with various sizes and semantics. It covered the ground pretty well for what a eBook might look like.

Dale
DaleDe is offline   Reply With Quote
Old 03-11-2017, 02:58 AM   #43
ibu
Addict
ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.
 
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
Thanks for your feedback, Dale.

The only difference in the actual version (linked in the first posting) and the other older versions is the entry for the nav in the spine in the opf file.
And I removed the picture of the author inside the text, because I thought, that a picture in a book is optional. The most literature I read contains no pictures.

So I thought it is OK for book testcase which wants to "minimal".

The complete text/semantics are the same.
And the cover, of course, is integrated.

Some software may not display the cover or the TOC, because of bugs.

I will soon attache an extra version of the epub3 testcase, which focusses on Kobo.

Than I have to find out, if there's a way to let the Kobo software display more than one level in a TOC.

Edit:
Good news!
The latest FW update of Kobo eliminated the bug with "not showing the cover" in my testcase.
Now it is shown. Very nice.
Attention! If you like to test epub3 files on a Kobo, you have to change the extension from ".epub" to ".kepub.epub".

Last edited by ibu; 03-11-2017 at 05:47 AM.
ibu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Plugin] ePub3-itizer - epub3 output plugin for Sigil KevinH Plugins 435 01-19-2023 09:46 PM
epub3 app with epub3 dictionary support Doitsu ePub 0 01-21-2017 09:38 AM
Epub3 XHTML Validation epub3 Ramesh Arpitha ePub 5 06-30-2014 08:32 PM
New Errors Converting epub3 -> zip -> epub3 Lola25 ePub 2 11-12-2013 09:37 PM
PRS-T2 Difference jailbreak.zip/rupor-jailbreak.7z & minimal-root-zeam.zip/rupor-minimal.7z? hyperstruct Sony Reader Dev Corner 9 01-06-2013 02:05 PM


All times are GMT -4. The time now is 07:49 AM.


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