Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-03-2010, 10:35 PM   #1
tochill
Member
tochill began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Aug 2009
Device: Stanza
Remove File Name in front of Chapters

Hi, I used Stanza a while back to create a ton of ePub files. The problem is it put's the title of the book in front of each chapter and it gets to be kind of a pain. I looked at the source code in Sigil and it appears it is putting it at <h1> and then the chapter name at <h2>. Is there any way to use the Remove Header or Remove Footer expressions to delete anything in a file that starts at <h1>. Please see below what the code looks like. I just want to have it remove the line entirely.


<div>
<h1>Test File</h1>
</div>

<div>
<h2>CHAPTER THREE</h2>

Thanks in advance for your help!
tochill is offline   Reply With Quote
Old 03-03-2010, 10:40 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: 45,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Just stick

h1, h2 { display: none }

in extra css
kovidgoyal is offline   Reply With Quote
Advert
Old 03-03-2010, 10:58 PM   #3
tochill
Member
tochill began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Aug 2009
Device: Stanza
Quote:
Originally Posted by kovidgoyal View Post
Just stick

h1, h2 { display: none }

in extra css

It doesn't appear to have worked, the <h1> is still showing...
tochill is offline   Reply With Quote
Old 03-03-2010, 11:03 PM   #4
tochill
Member
tochill began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Aug 2009
Device: Stanza
Quote:
Originally Posted by tochill View Post
It doesn't appear to have worked, the <h1> is still showing...
Now it shows

<div class="calibre3">
<h1 class="calibre4">Test File</h1>
</div>

<div class="calibre3">
<h2 class="calibre5">CHAPTER THREE</h2>
tochill is offline   Reply With Quote
Old 03-03-2010, 11:04 PM   #5
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: 45,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It will still be there in the html, it just wont be rendered in the epub viewer.
kovidgoyal is offline   Reply With Quote
Advert
Old 03-03-2010, 11:06 PM   #6
tochill
Member
tochill began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Aug 2009
Device: Stanza
Quote:
Originally Posted by kovidgoyal View Post
It will still be there in the html, it just wont be rendered in the epub viewer.
It still rendering it in the ebook viewer of Calibre.
tochill is offline   Reply With Quote
Old 03-04-2010, 07:34 PM   #7
tochill
Member
tochill began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Aug 2009
Device: Stanza
Quote:
Originally Posted by tochill View Post
It still rendering it in the ebook viewer of Calibre.
Ok, i figured out the problem... very weird. when i copied your code into the box it refused to work. I retyped it manually and it worked! Thanks for your help!
tochill is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
adjusting toc.ncx file to restore missing chapters viewed in Adobe Digital Editions cyberbaffled ePub 5 12-06-2009 09:44 PM
How can I remove spaces from folder and file names? jusmee Calibre 1 11-06-2009 10:36 PM
Remove pre-conversion file? JDThird Calibre 4 07-25-2009 03:59 PM
Remove first image in file during conversion? itimpi Calibre 3 02-08-2009 12:57 AM
Remove file path from PDF file DuckDodgers PDF 1 08-13-2006 09:23 AM


All times are GMT -4. The time now is 12:02 AM.


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