View Single Post
Old 07-31-2011, 10:53 PM   #1
wannabee
Media Bloke
wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.
 
Posts: 2,381
Karma: 113956855
Join Date: Sep 2010
Location: NSW - Australia
Device: iOS
epub to mobi h1 page breaks not starting on new page

I've converted 10 books from ePub to Mobi. I have a new html file for each chapter and after converting to mobi chapters start on a new page. TOC are all OK.

My last attempt doesn't. Chapters start anywhere. I had a quick look at the tutorial which has some Xpath which I used in the STRUCTURE DETECTION area.

//*[name()='h1' or name()='h2']

What information do you need from me to determine what has changed?

Here's a sample of a file with h1 and h2 headers
Spoiler:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>How NOT to kill your husband.xhtml</title>
<link rel="stylesheet" href="../Styles/template.css" type="text/css" />
<style type="text/css">
/*<![CDATA[*/
p.sgc-2 {font-style: italic}
p.sgc-1 {font-weight: bold}
/*]]>*/
</style>
</head>

<body>
<div class="generated-style" id="how-not-to-kill-your-husband">
<p class="body-txt" xmlns:xml="http://www.w3.org/XML/1998/namespace" xml:lang="en-us"></p>

<h1 id="heading_id_8">2. The Premenstrual Syndrome</h1>

<p class="body-txt" xmlns:xml="http://www.w3.org/XML/1998/namespace" xml:lang="en-us">Katrina had married at the age of 19 against the advice of parents and friends. By the age of 22, she had two beautiful toddlers and a successful husband, who doted on his children. Katrina should have been blissfully happy, but she wasn’t. For two weeks before her periods, she became morose, irritable and hurtful to her family. She lost interest in sex and felt ugly and unloved.</p>

<h2 id="heading_id_9">Common Symptoms of the Premenstrual Syndrome</h2>

<p class="h3" xmlns:xml="http://www.w3.org/XML/1998/namespace" xml:lang="en">Mental and Psychological Symptoms</p>

<p class="body-txt" xmlns:xml="http://www.w3.org/XML/1998/namespace" xml:lang="en">Mental and emotional symptoms can include:</p>

<h2 id="heading_id_10">What causes the Premenstrual Syndrome?</h2>

<p class="body-txt" xmlns:xml="http://www.w3.org/XML/1998/namespace" xml:lang="en-us">I well remember one evening in the country town of Grafton, NSW, relating Hippocrates theory on the causation of female hormonal imbalances to an entirely male audience. These men had come to listen to my after dinner talk about <span class="italics">How to be a perfect husband</span>. My mother had got me into this rather sticky situation, as she had delighted in ‘setting me up’ when the male dominated Lions Club had requested my services as an after dinner speaker.</p>



ETC. ETC. ETC
wannabee is offline   Reply With Quote