View Single Post
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: 31,127
Karma: 60406498
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 online now   Reply With Quote