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-2010, 09:38 PM   #1
PatNY
Zennist
PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.
 
PatNY's Avatar
 
Posts: 928
Karma: 46026034
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
Calibre making unwanted chapter breaks

Using sigil, I added a design graphic (jpeg) to the beginning of each chapter in a book, before the chapter headers designated as h1.

On conversion, Calibre keeps splitting the chapters right before the h1 header and after the jpeg image. I've done the following to no avail:

1) In conversion settings, I set pagebreak to "none," checked do not add detected chapters, and put "/" in the Detect chapters field.

2) I double checked the stylesheet and took out all instances of page-break-before and page-break-after instructions.

There is another graphic in the book on the copyright page -- the publisher's logo -- with the same markup instructions as the chapter images and that page doesn't get split up, so I assume it is the h1 designations in the chapter headings that Calibre is insisting on reading and making a page break on.

Is this a bug? Or is there something I'm missing?
PatNY is offline   Reply With Quote
Old 10-06-2010, 04:49 AM   #2
sherman
Addict
sherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animals
 
Posts: 273
Karma: 6566
Join Date: Sep 2008
Location: New Plymouth - NZ
Device: Sony PRS-505/SC, B&N Nook, Sony PRS-650/BC, Kobo Glo
You almost had it...

It's the Insert page breaks before (XPath expression): box that you need to edit. Replace the contents of that box with '/'.

What I usually do is leave the structure detection at its defaults, replace the Insert page breaks before (XPath expression): with '/', and set my page breaks in the book's css.
sherman is offline   Reply With Quote
 
Advertisement
Old 10-06-2010, 08:50 PM   #3
PatNY
Zennist
PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.
 
PatNY's Avatar
 
Posts: 928
Karma: 46026034
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
sherman, thanks a million. That did the trick and I would never have figured that out on my own.
PatNY is offline   Reply With Quote
Old 10-06-2010, 09:40 PM   #4
sherman
Addict
sherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animals
 
Posts: 273
Karma: 6566
Join Date: Sep 2008
Location: New Plymouth - NZ
Device: Sony PRS-505/SC, B&N Nook, Sony PRS-650/BC, Kobo Glo
You're very welcome.

You were in the right preferences area originally, and so you almost had it


(I must say, it took me a while before I figured out why calibre was adding page breaks on my "title page" between title and author when I was using H1 and H2 tags)
sherman is offline   Reply With Quote
Old 10-08-2010, 09:17 PM   #5
Skydog
Wizard
Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.
 
Skydog's Avatar
 
Posts: 1,424
Karma: 1646312
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: PW2, Fire HDX 8.9, Kobo Aura H20, HD, Mini, Nexus 7.2, 10
I still have the same problem...

I have the exact same problem as the OP, but the above posts did not solve the problem. In fact, after entering '/' in the Insert page breaks before (XPath expression) field the conversion failed. With just the default / in the field, the conversion is successful but Calibre is making unwanted page breaks after the image and before the chapter. (and I haven't a clue what XPath expression signifies)

BTW, the book in question was created with Sigil.

Can someone lend a hand?
Skydog is offline   Reply With Quote
Old 10-08-2010, 10:10 PM   #6
sherman
Addict
sherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animals
 
Posts: 273
Karma: 6566
Join Date: Sep 2008
Location: New Plymouth - NZ
Device: Sony PRS-505/SC, B&N Nook, Sony PRS-650/BC, Kobo Glo
Sorry, should have been clearer with the instructions. The / was meant to be inserted WITHOUT the quotes.

You may need to set the "Chapter Mark" to None.

If you are still getting page-breaks, I would suggest looking at your input file, as page-breaks could be specified there too.
sherman is offline   Reply With Quote
Old 10-08-2010, 10:58 PM   #7
Skydog
Wizard
Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.
 
Skydog's Avatar
 
Posts: 1,424
Karma: 1646312
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: PW2, Fire HDX 8.9, Kobo Aura H20, HD, Mini, Nexus 7.2, 10
Sherman - thank you for your reply.

I discovered leaving the default / was the way to go.

I am a novice when it comes to HTML and CSS, but I have learned a bit through trial and error. What is weird is that I compiled a similar book with the older version of Sigil that required manual chapter breaks (one long document) and it came out as a perfect epub and mobi, with the images appearing at the beginning of the chapter. But with the current version of Sigil, the same CSS and code (I presume) results in the page breaks following the image and preceding the chapter. Argh.
Skydog 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
Automating splitting at Chapter Breaks John Everett Sigil 9 06-01-2010 03:53 AM
Remove Chapter Breaks and Search an Entire Document Marcy Sigil 6 04-15-2010 01:11 PM
Help w/ Chapter Breaks pastorjamie Calibre 1 02-25-2010 08:30 PM
Adding chapter breaks by number of pages/lines raptir Calibre 8 10-22-2009 01:11 PM
utility to eliminate unwanted line breaks in txt profnachos Workshop 11 11-27-2007 07:24 PM


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


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