![]() |
#1 |
Junior Member
![]() 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? |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
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. |
|
![]() |
![]() |
Advert | |
|
![]() |
Tags |
calibre, conversion from .pdf, epub |
|
![]() |
||||
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 |