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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-05-2009, 03:31 PM   #1
raltman
Junior Member
raltman began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2009
Device: Sony Pocket
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>
raltman is offline   Reply With Quote
Old 10-05-2009, 04:04 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,435
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Just add

h1 { display:none}

to extra css
kovidgoyal is offline   Reply With Quote
Old 10-05-2009, 05:50 PM   #3
raltman
Junior Member
raltman began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2009
Device: Sony Pocket
Genius!!! Thanks!!!

- Rich
raltman 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
Screen showing lines and broken text riverdale iRiver Story 13 11-09-2010 09:54 AM
Unwanted Pagebreaks Timoleon Calibre 3 09-19-2010 08:53 PM
Calibre not showing text in UI senshikaze Calibre 4 06-27-2010 06:22 PM
chapters (HTML-files) not showing up erik5000 ePub 1 12-21-2009 05:22 PM
Epub and pagebreaks mtravellerh Calibre 3 11-02-2008 06:30 PM


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


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