View Single Post
Old 03-09-2009, 10:41 PM   #1
wz2b
Member
wz2b began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Mar 2009
Device: Kindle 2
Question Kindle 2 .mobi limitations

What are the limitations to the Kindle 2's ability to use files generated by mobigen?

I created a small sample project consisting of the files:
1.html
2.html
toc.ncx
test.opf

Using mobigen V6.2 build 41 for linux I produced a nice .mobi file that works fine on my Kindle2 but no TOC. mobigen didn't generate any warnings other than my lack of a cover page.

I might have something wrong with my source, but I don't think so -- and before I proceed any further I was hoping someone could confirm that it should work.

--Chris

toc.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 version="2005-1" xml:lang="en" xmlns="http://www.daisy.org/z3986/2005/ncx/">
  <head>
    <meta name="dtb:uid" content="autofrog.com"/>
    <meta name="dtb:depth" content="1"/>
    <meta name="dtb:totalPageCount" content="0"/>
    <meta name="dtb:maxPageNumber" content="0"/>
  </head>

  <docTitle>
    <text>Chris P Daily Report</text>
  </docTitle>

  <navMap>
      <navPoint id="lvl1_1" playOrder="2">
        <navLabel>
          <text>This is the TOC entry for Chapter 1</text>
        </navLabel>
        <content src="1.html" />
      </navPoint>
  </navMap>
</ncx>
test.opf:
Code:
<?xml version="1.0"?>
<package version="2.0" xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookId">

<metadata xmlns:dc="http://purl.org/dc/elements/1.1/"
          xmlns:opf="http://www.idpf.org/2007/opf">
   <dc:title>Chris's Example</dc:title>
   <dc:creator opf:role="aut">Chris</dc:creator>
   <dc:language>en</dc:language>
</metadata>

<manifest>
 <item id="ncx" href="toc.ncx"/>
 <item id="page1" href="1.html"/>
 <item id="page2" href="2.html"/>
</manifest>

<spine toc="ncx">
  <itemref idref="page1"/>
  <itemref idref="page2"/>
</spine>

</package>
wz2b is offline   Reply With Quote