Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 01-10-2014, 05:23 AM   #16
hoichi
male solipsist pig
hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.
 
hoichi's Avatar
 
Posts: 102
Karma: 440818
Join Date: Oct 2010
Location: Moscow
Device: Nook Simple Touch→Kobo Aura HD
Quote:
Originally Posted by Rev. Bob View Post
I got an unwelcome New Year's Eve present: sudden shelf duplication. I'd had the problem before and thought I'd successfully gotten rid of it, but my Glo decided to sync as the ball dropped.

Luckily, I had a backup copy of the database from mid-November, so I didn't lose all my collection data. (Almost all of my books are sideloaded.) I did have to pull up my trusty SQLite editor and work some magic with it* to make all of the shelves go away, and then it was just a matter of restoring the old database and filling in the missing data. Since then, I'm making a point of doing manual backups about once a week.

* The shelf table is easy to find, and editing all the entries to give each shelf a unique name is common sense. The key, though, was setting the "needs to be synced" flag on every last shelf. That way, I could sync the device to change the names in the cloud, then delete the shelves and resync to remove the shelves from the cloud. That made all the shelves go away everywhere, except in the uncorrupted backup database...which I also made sure had all shelves set to be synced. Presto, semi-instant restoration!
Doesn't the Kobo Utilities plugin for Calibre takes care of all that? I know it can check database integrity and Calibre is capable of managing collections on my HD.
hoichi is offline   Reply With Quote
Old 01-10-2014, 09:46 AM   #17
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by hoichi View Post
Doesn't the Kobo Utilities plugin for Calibre takes care of all that? I know it can check database integrity and Calibre is capable of managing collections on my HD.
I keep Calibre far away from my Kobo. I only use it directly for format conversion (Kindle to EPUB) and indirectly for some basic cleanup tasks.
Rev. Bob is offline   Reply With Quote
Advert
Old 01-10-2014, 10:05 AM   #18
hoichi
male solipsist pig
hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.
 
hoichi's Avatar
 
Posts: 102
Karma: 440818
Join Date: Oct 2010
Location: Moscow
Device: Nook Simple Touch→Kobo Aura HD
Quote:
Originally Posted by Rev. Bob View Post
I keep Calibre far away from my Kobo. I only use it directly for format conversion (Kindle to EPUB) and indirectly for some basic cleanup tasks.
Any particular reason? Is there a danger Calibre will mess something up?
hoichi is offline   Reply With Quote
Old 01-10-2014, 02:15 PM   #19
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by hoichi View Post
Any particular reason? Is there a danger Calibre will mess something up?
I like having more control over my books and my library than what Calibre gives me, I dislike the constant updates, and the author refuses to fix a problem with NCX generation that causes every Calibre-generated ebook to violate the EPUB spec.

In short, I am the master of my ebook collection and choose not to cede that position to a piece of software that changes so often.
Rev. Bob is offline   Reply With Quote
Old 01-10-2014, 04:17 PM   #20
hoichi
male solipsist pig
hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.hoichi ought to be getting tired of karma fortunes by now.
 
hoichi's Avatar
 
Posts: 102
Karma: 440818
Join Date: Oct 2010
Location: Moscow
Device: Nook Simple Touch→Kobo Aura HD
Quote:
Originally Posted by Rev. Bob View Post
I like having more control over my books and my library than what Calibre gives me, I dislike the constant updates, and the author refuses to fix a problem with NCX generation that causes every Calibre-generated ebook to violate the EPUB spec.

In short, I am the master of my ebook collection and choose not to cede that position to a piece of software that changes so often.
Thanks for the clarification. Not sure those shortcomings bother me, but it's always good to know my options.

I agree there's too many updates to Calibre, by the way.
hoichi is offline   Reply With Quote
Advert
Old 01-10-2014, 06:40 PM   #21
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,296
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Nothing says you have to install each and every release of calibre. Some in fact advise looking at the release notes and only upgrade if it shows a bug that affected you, or a new feature that you want.
PeterT is offline   Reply With Quote
Old 01-10-2014, 07:29 PM   #22
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Rev. Bob View Post
I like having more control over my books and my library than what Calibre gives me, I dislike the constant updates, and the author refuses to fix a problem with NCX generation that causes every Calibre-generated ebook to violate the EPUB spec.
What's the problem? Any epub that I have had calibre generate passes any validation that I've tried. And I've followed discussion here with lots of complaints about whet calibre generates, but only about the styles and formatting used, not about epub spec violation.
davidfor is offline   Reply With Quote
Old 01-10-2014, 07:40 PM   #23
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,296
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Additionally I'm curious as to why a spec violation is an issue apart from a personal need to have something done a certain way. I know my interest is in being able to read a book and not worry about the minutiae of the innards of the book.
PeterT is offline   Reply With Quote
Old 01-10-2014, 09:35 PM   #24
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by davidfor View Post
What's the problem? Any epub that I have had calibre generate passes any validation that I've tried. And I've followed discussion here with lots of complaints about whet calibre generates, but only about the styles and formatting used, not about epub spec violation.
The specific problem is that Calibre's "depth" value in its NCX files is one point too high. That is, a flat TOC should have a depth of 1, and Calibre assigns 2 instead - and that error propagates no matter how deep the TOC is.

When I contacted the developer about this, complete with reference to the relevant part of the spec, he said that Calibre's behavior is due to the requirement that the depth is at least 1, and a null TOC would generate a value of 0 and thus be out of spec. When I pointed out that a null TOC is also out of spec, he got huffy and put me on his ignore list.

So, now I use Calibre as little as possible and know to always decrement that value when I do so.
Rev. Bob is offline   Reply With Quote
Old 01-10-2014, 09:40 PM   #25
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by PeterT View Post
Additionally I'm curious as to why a spec violation is an issue apart from a personal need to have something done a certain way. I know my interest is in being able to read a book and not worry about the minutiae of the innards of the book.
Adherence to a defined spec is how the software knows how to parse a book so you can read it. The more errors the reading software permits, the harder it is to develop and maintain that software.

In short, even if you have no direct interest in those minutia, it's ultimately in your best interests to have all the software generate proper, compliant ebooks.
Rev. Bob is offline   Reply With Quote
Old 01-11-2014, 06:55 PM   #26
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,755
Karma: 168431891
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Rev. Bob View Post
The specific problem is that Calibre's "depth" value in its NCX files is one point too high. That is, a flat TOC should have a depth of 1, and Calibre assigns 2 instead - and that error propagates no matter how deep the TOC is.

When I contacted the developer about this, complete with reference to the relevant part of the spec, he said that Calibre's behavior is due to the requirement that the depth is at least 1, and a null TOC would generate a value of 0 and thus be out of spec. When I pointed out that a null TOC is also out of spec, he got huffy and put me on his ignore list.

So, now I use Calibre as little as possible and know to always decrement that value when I do so.
Rather interesting since I've found that editing an epub with no TOC entries, generating the TOC gives an entry of dtb:depth=0 which epubcheck and Flightcrew both seem to find no problems with. I guess that since strictly speaking the dtb:xxx tags other than the dtb:id tag, are not part of the epub specification (dtb = Digital Talking Book), that result could be expected.

Checking with the EPUB 2.01 spec gives the following:

"The list of required metadata provided in http://www.niso.org/workrooms/daisy/...5.html#NavMeta does not apply to EPUB; the only required meta is that which contains a content reference to the OPF unique ID. For backwards compatibility reasons, the value of the name of that meta remains dtb:id."

The two sample toc.ncx files below are from the same epub with the <h?> tags in the second changed to <p> tags for the first.

Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN"
 "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd">
<ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1">
  <head>
    <meta name="dtb:uid" content="urn:uuid:e721d553-4c20-4d56-8cb2-8ecb1d36900c" />
    <meta name="dtb:depth" content="0" />
    <meta name="dtb:totalPageCount" content="0" />
    <meta name="dtb:maxPageNumber" content="0" />
  </head>
  <docTitle>
    <text>Basic Book</text>
  </docTitle>
  <navMap>
    <navPoint id="navPoint-1" playOrder="1">
      <navLabel>
        <text>Start</text>
      </navLabel>
      <content src="Text/coverpage.xhtml" />
    </navPoint>
  </navMap>
</ncx>
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN"
 "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd">
<ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1">
  <head>
    <meta name="dtb:uid" content="urn:uuid:e721d553-4c20-4d56-8cb2-8ecb1d36900c" />
    <meta name="dtb:depth" content="1" />
    <meta name="dtb:totalPageCount" content="0" />
    <meta name="dtb:maxPageNumber" content="0" />
  </head>
  <docTitle>
    <text>Basic Book</text>
  </docTitle>
  <navMap>
    <navPoint id="navPoint-1" playOrder="1">
      <navLabel>
        <text>Chapter 1</text>
      </navLabel>
      <content src="Text/chapter1.xhtml" />
    </navPoint>
    <navPoint id="navPoint-2" playOrder="2">
      <navLabel>
        <text>Chapter 2</text>
      </navLabel>
      <content src="Text/chapter2.xhtml" />
    </navPoint>
    <navPoint id="navPoint-3" playOrder="3">
      <navLabel>
        <text>Chapter 3</text>
      </navLabel>
      <content src="Text/chapter3.xhtml" />
    </navPoint>
    <navPoint id="navPoint-4" playOrder="4">
      <navLabel>
        <text>Chapter 4</text>
      </navLabel>
      <content src="Text/chapter4.xhtml" />
    </navPoint>
    <navPoint id="navPoint-5" playOrder="5">
      <navLabel>
        <text>Chapter 5</text>
      </navLabel>
      <content src="Text/chapter5.xhtml" />
    </navPoint>
  </navMap>
</ncx>
DNSB is offline   Reply With Quote
Old 01-12-2014, 04:40 AM   #27
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by DNSB View Post
Rather interesting since I've found that editing an epub with no TOC entries, generating the TOC gives an entry of dtb:depth=0 which epubcheck and Flightcrew both seem to find no problems with. I guess that since strictly speaking the dtb:xxx tags other than the dtb:id tag, are not part of the epub specification (dtb = Digital Talking Book), that result could be expected.
epubcheck doesn't look at the dtb:depth value, possibly for that very reason. Also, note that the first of your samples is not empty; it has one "Start" node.

Quote:
Originally Posted by DNSB
The two sample toc.ncx files below are from the same epub with the <h?> tags in the second changed to <p> tags for the first.
Did you generate those NCX samples with Calibre, though? I don't see its signature metadata element in them...
Rev. Bob is offline   Reply With Quote
Old 01-12-2014, 04:47 PM   #28
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,755
Karma: 168431891
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Rev. Bob View Post
epubcheck doesn't look at the dtb:depth value, possibly for that very reason. Also, note that the first of your samples is not empty; it has one "Start" node.
That sample is generated by Sigil. I don't use Calibre as an editor. And from what I've read, the common opinion seems to be that start entry is required if no TOC entries exist though the specification seems a bit fuzzy in that area.

Quote:
Originally Posted by Rev. Bob View Post
Did you generate those NCX samples with Calibre, though? I don't see its signature metadata element in them...
As mentioned above, I use Sigil as my preferred epub editor though with some of the issues currently existing around the continued development of Sigil, I am playing with Calibre's editor.

Regards,
David
DNSB is offline   Reply With Quote
Old 01-12-2014, 10:38 PM   #29
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by DNSB View Post
That sample is generated by Sigil. I don't use Calibre as an editor. And from what I've read, the common opinion seems to be that start entry is required if no TOC entries exist though the specification seems a bit fuzzy in that area.
My read of the spec is that the TOC must contain at least one navPoint element; that is, it cannot be empty. This correlates with the requirement that the depth must be a positive integer; a TOC with only one navPoint element is "flat" by definition and thus has the minimum depth of 1.
Rev. Bob is offline   Reply With Quote
Old 01-13-2014, 12:02 AM   #30
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Rev. Bob View Post
My read of the spec is that the TOC must contain at least one navPoint element; that is, it cannot be empty. This correlates with the requirement that the depth must be a positive integer; a TOC with only one navPoint element is "flat" by definition and thus has the minimum depth of 1.
I was looking at this yesterday, and I agree with you about the depth. I think that calibre is setting it one higher than it should. Except maybe if the TOC is empty. That one had me as I couldn't find a spec to say what should be in the navmap for that. Or whether it should be there at all.

I did do some experiments. Nothing seemed to care what the depth was set to or if it was there. The only error I could get was from the Sigil validation if the navmap was missing or empty. Everything else didn't seem to care.

In Sigil, if you empty the TOC and generate it from that, it creates the sample that DNSB posted. Doing the same in the calibre editor, puts in an empty navmap. In the viewers (ADE, calibre, Glo FW3.1.1), the Sigil version gives a one entry TOC with "Start". For the calibre version, they don't show a TOC.

Most importantly to me, the Kobo firmware didn't care. I was expecting it to be fussy and reject one of the tests.
davidfor is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
a novel way to corrupt your database? paola Kobo Reader 20 07-27-2013 03:18 PM
Database corrupt mwerth1 Calibre 4 08-07-2012 07:31 PM
Corrupt database tonyjbird Introduce Yourself 5 04-03-2012 06:26 AM
Corrupt database jjansen Calibre 4 10-26-2011 11:51 PM
corrupt database, (powercut), possible solution Perkin Calibre 7 09-19-2010 11:01 PM


All times are GMT -4. The time now is 10:04 PM.


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