Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-29-2015, 05:39 AM   #1
Siavahda
Connoisseur
Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.
 
Posts: 80
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
Epub conversion adds page break after chapter headings

Literally what it says on the tin; I'm trying to convert an .epub file (into another .epub file, if that's relevant) but each time I do, Calibre inserts a page break between the chapter heading and the chapter title.

I have tried leaving the 'Detect chapters t (XPath expression) box completely blank, chapter mark: none, and 'Insert page breaks before (XPath expression): /, as well as all three in tandem. In each case my chapter files get split in two, one with the chapter heading and the other with the chapter title and main body of the chapter.

There is an image between the chapter heading and chapter title, if that means anything.

Can anyone help, please?
Siavahda is offline   Reply With Quote
Old 06-29-2015, 06:38 AM   #2
krbo
Enthusiast
krbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of light
 
krbo's Avatar
 
Posts: 29
Karma: 12030
Join Date: May 2012
Location: Croatia
Device: Kindle PW2 & PW3
read this thread (my question and kovid's answers):

https://www.mobileread.com/forums/sho...d.php?t=261335

maybe it will give you more ideas where to look
krbo is offline   Reply With Quote
Old 06-29-2015, 11:30 AM   #3
Siavahda
Connoisseur
Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.
 
Posts: 80
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
Thank you, but that didn't help.

I tried changing the h2 tags of the chapter titles into p tags, but that hasn't helped either.
Siavahda is offline   Reply With Quote
Old 06-29-2015, 11:51 AM   #4
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by Siavahda View Post
Literally what it says on the tin; I'm trying to convert an .epub file (into another .epub file, if that's relevant) but each time I do, Calibre inserts a page break between the chapter heading and the chapter title.

I have tried leaving the 'Detect chapters t (XPath expression) box completely blank, chapter mark: none, and 'Insert page breaks before (XPath expression): /, as well as all three in tandem. In each case my chapter files get split in two, one with the chapter heading and the other with the chapter title and main body of the chapter.

There is an image between the chapter heading and chapter title, if that means anything.

Can anyone help, please?
The image is your problem, check the css and image size.

bernie
gbm is offline   Reply With Quote
Old 06-29-2015, 12:19 PM   #5
Siavahda
Connoisseur
Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.
 
Posts: 80
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
Quote:
Originally Posted by gbm View Post
The image is your problem, check the css and image size.

bernie
I don't know what I'm looking for? The css looks like this

<p class="centerImage"><img src="../images/00002.jpeg" alt="image" class="epubimage"/></p>

and the image size is 4.6 KB; height 110px, width 118px.
Siavahda is offline   Reply With Quote
Old 06-29-2015, 12:57 PM   #6
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by Siavahda View Post
I don't know what I'm looking for? The css looks like this

<p class="centerImage"><img src="../images/00002.jpeg" alt="image" class="epubimage"/></p>

and the image size is 4.6 KB; height 110px, width 118px.
That is your html, your css will be in the *.css file, the one you are looking for will be .epubimage and .centerImage.

This is an example of an image css
Code:
.calibre2 {
  height: auto;
  max-height: 100%;
  width: auto;
  max-width: 100%;
}
Post the css for .epubimage and .centerImage.
bernie
gbm is offline   Reply With Quote
Old 06-29-2015, 01:00 PM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,817
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Siavahda View Post
I don't know what I'm looking for? The css looks like this

<p class="centerImage"><img src="../images/00002.jpeg" alt="image" class="epubimage"/></p>

and the image size is 4.6 KB; height 110px, width 118px.
That is not CSS, that is the html

In the linked CSS (near the top of the code) needed if there is more than 1 CSS file (very legal).

the style info for .centerImage and .epubimage

I suspect the second sets the size
and the first sets center and margins
theducks is online now   Reply With Quote
Old 06-29-2015, 04:22 PM   #8
Siavahda
Connoisseur
Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.
 
Posts: 80
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
I found a page-break-before: always in the chapter title css, not the image, so I've fixed that. Will comment once Calibre finishes converting the file (it's huge, it's been at it for hours already) to see if that was the problem.
Siavahda is offline   Reply With Quote
Old 06-29-2015, 05:44 PM   #9
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,817
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Siavahda View Post
I found a page-break-before: always in the chapter title css, not the image, so I've fixed that. Will comment once Calibre finishes converting the file (it's huge, it's been at it for hours already) to see if that was the problem.
Edit the file (CSS in this case). No need to convert to the same format
theducks is online now   Reply With Quote
Old 06-30-2015, 12:10 AM   #10
Siavahda
Connoisseur
Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.
 
Posts: 80
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
That WAS the problem. (I had to convert for other reasons, it's fine). Thanks for the help, everyone!
Siavahda is offline   Reply With Quote
Reply

Tags
.epub, page breaks


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MOBI to EPUB conversion in calibre adds page breaks waynn Conversion 15 04-05-2017 03:05 PM
weird page break in html->epub conversion iaw4 Calibre 1 01-16-2014 03:09 PM
RTF Conversion (Underlined/Italics chapter headings) Gwen Morse Conversion 2 08-27-2013 01:52 PM
After conversion: pagebreaks after chapter headings droid3p0 Conversion 8 06-14-2012 10:50 AM
Chapter Headings on their own page? Help! Lee5150 Calibre 3 10-06-2011 08:12 AM


All times are GMT -4. The time now is 03:02 PM.


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