New version released, which includes improved import functionality and some bug fixes.
If you import an Xhtml file which:
* has a single div inside the body, and
* give that div the class "book-structure"
* and inside that div are only other divs (each representing a section of the epub)
then ePubHub will automatically try to create an appropriate book structure during the import. If the "book-structure" div is not used the import will place all content into a single generic page, just as before.
Valid classes include: chapter, part, part-intro-page, cover-page and title-page. divs with any other class (or none) will get put into a generic page.
Parts can only go one level deep (ie a part must be in the root of the book-structure and you can't nest a part inside anything else). Only chapters and part-intro-pages can go inside a part.
And even though your page content is inside a div, it will be imported into the root of an Xhtml page body so all tags must be valid in that context. So "<div class="chapter"><img ... /></div>" could't be imported because <body> can't contain the <img> tag. If you need this, wrap the image in another div or p.
Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<div class="book-structure">
<div class="part" title="PART ONE">
<div class="chapter">
<p>Blah blah blah</p>
</div>
<div class="chapter">
<p>Blah blah blah</p>
</div>
</div>
</div>
</body>
</html>
The use of the "book-structure" div will be temporary requirement until a proper import dialog box is written.