View Single Post
Old 11-18-2013, 10:47 AM   #872
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
Quote:
Originally Posted by PeterT View Post
Is that actually a valid book? I thought the <head> section in toc.ncx had certain required info http://www.niso.org/workrooms/daisy/...-2005.html#toc
I've already added the missing info to the head section of ncx
Code:
    <meta content="urn:uuid:25408827-9b20-4ef8-b63e-acb744cec453" name="dtb:uid"/>
    <meta content="1" name="dtb:depth"/>
    <meta content="0" name="dtb:totalPageCount"/>
    <meta content="0" name="dtb:maxPageNumber"/>
And it still doesn't work. I upload the fixed ebook. (It has the original_epub extension because of Calibre. But I added .zip because Mobileread doesn't allow attachments with .original_epub extension. Rename to just .epub in order to open it.)

More over when I make the epub to epub conversion inside Calibre, things go worse. Calibre now adds a cover (it's just a jpg made from cubierta.xhtml) so this new book now has nine pages instead of 8.

The page numbering now goes as follows:
1 (hidden as cover), 2, 5, 3, 7, 8, 9, 4, 6

(I also upload this re-epub. It's the .epub file in this post).



What I've seen in the calibre reconverted epub is that dtb:depth has risen to 2. Why?

@PeterT. Good hint but not the perfect one . The relevant ncx section is
Quote:
8.4.1 Navigation Metadata

(This section is normative.)

Metadata shall be included in the head element of the NCX using the meta element. Content producers may introduce other metadata besides those listed below, if needed. However, metadata names shall not begin with the prefix "dtb:" unless defined in this standard. Players must not fail when encountering unknown metadata but must, at a minimum, ignore it.

dtb:uid
Content: The globally unique identifier for the DTB. The value is the same as that of the dc:Identifier element referenced by the unique-identifier attribute on the package file's package element. See section 3.1, "Package Identity."
Occurrence: Required
dtb:depth
Content: Positive integer indicating depth of structure of the DTB as exposed by the NCX.
Occurrence: Required
dtb:generator
Content: Name and version of software that generated the NCX.
Occurrence: Optional - recommended.
dtb:totalPageCount
Content: Non-negative integer indicating the number of pageTargets in the pageList. If there are no navigable pages, then dtb:totalPageCount must have a value of zero.
Occurrence: Required
dtb:maxPageNumber
Content: Non-negative integer indicating the largest value attribute on pageTarget in the pageList. If there are no navigable pages, then dtb:maxPageNumber must have a value of zero.
Occurrence: Required


Because an issue about KTE plugin has been discarded by jgoguen, I've opened a new dedicated thread in the Kobo forum.
Attached Files
File Type: epub Page numbers Test - Yo.epub (7.5 KB, 232 views)
File Type: zip Page numbers Test - Yo.original_epub.zip (4.8 KB, 253 views)

Last edited by arspr; 11-18-2013 at 03:54 PM. Reason: Link to the new thread about the issue
arspr is offline   Reply With Quote