Chapters showing unwanted pagebreaks and < h1 > text
Hello. I love Calibre - it is an amazing tool!
I'm using it to convert an HTML file full of jpg images to an ePub with chapters. I don't want theheader tags that define the chapters to have pages or even be seen while I'm reading the pages in the viewer, but I would like them to be labeled and indented appropriately in the TOC.
So with the html, below, I come very close. I use the TOC screen "Level 1 TOC XPath expression" = "//h:h1" and corresponding level 2 to h2. I force an auto-gerenation of the TOC. Lastly, for the "Insert breaks before (XPath expression)" = "/". With these settings, I get a TOC which indexes correctly, but I'm not able to strip out the chapter headers or remove the pagebreaks after I generate the ePub.
Any suggestions?
Thanks!
- Rich
<html>
<body>
<img width=601 height=800 src="00000_000.jpg" >
<img width=601 height=800 src="00000_001.jpg" >
<h1 class="chapter"> Chapter One </h1>
<img width=601 height=800 src="00001_000.jpg" >
<img width=601 height=800 src="00001_001.jpg" >
<img width=601 height=800 src="00001_002.jpg" >
<img width=601 height=800 src="00001_003.jpg" >
<h2 class="chapter"> Section 1</h2>
<img width=601 height=800 src="00002_000.jpg" >
</body>
</html>
|