Quote:
Originally Posted by kovidgoyal
Yes, it will, though you should use any2epub and you may have to specify the spine in addition
|
Ok, so if I have:
Code:
<?xml version="1.0"?>
<package version="2.0" xmlns="http://www.idpf.org/2007/opf">
<metadata xmlns:opf="http://www.idpf.org/2007/opf">
<title>Title Goes Here</title>
<creator>I.M. D’Author</creator>
</metadata>
<manifest>
<item id="story" href="story.xhtml" media-type="application/xhtml+xml" />
</manifest>
<spine toc="ncx">
<itemref idref="story" />
</spine>
</package>
And I use the following command-line:
Code:
any2epub --level1-toc "//*[@class='chaptertitle']|//*[@class='toctitle']" --chapter "//*[@class='chapter']" --chapter-mark "pagebreak" --use-auto-toc "Title Goes Here.opf"
any2epub will copy the metadata (in this case title and author) from the OPF file, divide story.xhtml into chunks and create its own OPF file containing the new table of contents for the epub file?