View Single Post
Old 06-25-2015, 07:21 PM   #5
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,090
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 lealla View Post
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:



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
FWIW Uninstalling Calibre will not clear (bad) Settings.
You can simply delete the entire (hidden) Calibre Configuration folder while calibre is NOT running. Preference: Miscellaneous: <the Button> to open that folder. It will re-create the defaults.

BTW Are you discussing CONVERSIONS, not (hand) editing using the Editor?
theducks is online now   Reply With Quote