Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 09-06-2015, 09:18 AM   #1
gmo2015
Junior Member
gmo2015 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2015
Device: none
Conversion problem with page break

Hi, I've converted a PDF to epub and since converting on Calibre have enabled Heuristic processing (to fix a problem with every 2nd or 3rd line of text breaking) and have inserted page breaks in Structure detection (using //h:h2[re:test(@class, "Chapter", "i") to define my chapters. However, since I've done that, in the middle of one chapter of text, there is an unwanted page break and then the font size and type changes for the remainder of the chapter, before reverting back to the correct font for the next correct page break.
I have attempted on search and repair to overcome this unwanted page break by replacing the code of a page break (in this case: at</p>



</h2></body></html>


--------------------------------------------------------------------------------


<html xmlns="http://www.w3.org/1999/xhtml" lang="">
<head>
<title>index</title>
<meta name="generator" content="pdftohtml 0.36"/>
<meta name="author" content="george morris"/>
<meta name="date" content="2015-09-06T06:34:08+00:00"/>

<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
<link href="page_styles.css" rel="stylesheet" type="text/css"/>
</head>
<body class="calibre">
<p class="calibre1">them)

and replace it with 'at them' which is the continuous text I want to keep, hoping to effectively delete this unwanted code but it isn't working! Can anybody help?
gmo2015 is offline   Reply With Quote
Old 09-06-2015, 11:10 AM   #2
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: 30,910
Karma: 60358908
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 gmo2015 View Post
Hi, I've converted a PDF to epub and since converting on Calibre have enabled Heuristic processing (to fix a problem with every 2nd or 3rd line of text breaking) and have inserted page breaks in Structure detection (using //h:h2[re:test(@class, "Chapter", "i") to define my chapters. However, since I've done that, in the middle of one chapter of text, there is an unwanted page break and then the font size and type changes for the remainder of the chapter, before reverting back to the correct font for the next correct page break.
I have attempted on search and repair to overcome this unwanted page break by replacing the code of a page break (in this case: at</p>



</h2></body></html>


--------------------------------------------------------------------------------


<html xmlns="http://www.w3.org/1999/xhtml" lang="">
<head>
<title>index</title>
<meta name="generator" content="pdftohtml 0.36"/>
<meta name="author" content="george morris"/>
<meta name="date" content="2015-09-06T06:34:08+00:00"/>

<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
<link href="page_styles.css" rel="stylesheet" type="text/css"/>
</head>
<body class="calibre">
<p class="calibre1">them)

and replace it with 'at them' which is the continuous text I want to keep, hoping to effectively delete this unwanted code but it isn't working! Can anybody help?
Calibre conversions normally breaks BEFORE a Heading 1,2 or 3

What you have shown is weird A page ending with </h2> but not followed by a <h3 on the next page
Typical usage
Part (h2)
Chapter (h3)

If your H2 is to big for 1 line. Split IT with a <br />, do not make it into 2 lines. Also if you increase the Line-height for that class (1.2 is normal) to space the broken lines apart.
theducks is offline   Reply With Quote
Advert
Reply

Tags
calibre, conversion from .pdf, epub


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Epub conversion adds page break after chapter headings Siavahda Calibre 9 06-30-2015 12:10 AM
weird page break in html->epub conversion iaw4 Calibre 1 01-16-2014 03:09 PM
Page break problem giocasanova Sigil 4 11-14-2013 08:47 PM
RTF conversion problem - no page breaks jhsrennie Conversion 7 06-16-2011 01:29 PM
Un-wanted page break information after conversion miztiik Calibre 1 10-21-2010 11:09 AM


All times are GMT -4. The time now is 08:55 PM.


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