Hi erschwartz, thank you for your reply
Yes, I would like to split the file wherever there is the word chapter within the text itself (not within the coding).
I tried //*[re:test(., "chapter", "i")] but I got an error saying
"Cannot split on the
tag"
With the weird space between 'the' and 'tag'.
I don't know if this helps, but here is how the actual text is set up at the moment:
*EDIT - I just got rid of all the <span>+<div> tags, but this hasn't made any difference.
looks like this at the moment:
Here is the beginning of my html:
Quote:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta name="generator" content="http://calibre-ebook.com"/>
<title>unnamed</title>
<meta name="author" content="lealla"/>
<meta name="creation-time" content="2014-6-11"/>
<meta name="revision-time" content="2014-6-11"/>
<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="calibre2">Chapter One</p><p class="calibre2">
|
I'd like it to split the html at any point before chapter headings. It's not a great epub - converted from a PDF. I can't use any of the classes in the builder wizard (calibre2) ect, as they appear all over the place, and not just in chapter headings.
Would it be worth uninstalling and reinstalling calibre?
Thank you again for your help