Hi all!
First post and all, hoping for some advice on xpath in Calibre Edit Book.
I had it all working beautifully using xpath to find chapters, split the html and create toc links from the individual files.
Suddenly, this doesn't work anymore.
If I run
(//*[re:test(., "Chapter", "i")])
- on any file, I get an error saying:
Quote:
ERROR Unhandled Exception
AbortError Cannot split on the
tag.
calibre, version 2.31.0
ERROR: Unhandled exception: <b>AbortError</b>:Cannot split on the <body> tag
calibre 2.31 [64bit] isfrozen: True is64bit: True
Windows-7-6.1.7601-SP1 Windows ('64bit', 'WindowsPE')
('Windows', '7', '6.1.7601')
Python 2.7.9
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Successfully initialized third party plugins: EpubMerge && EpubSplit && Goodreads
Traceback (most recent call last):
File "site-packages\calibre\gui2\tweak_book\boss.py", line 1059, in multisplit
File "site-packages\calibre\ebooks\oeb\polish\split.py", line 266, in multisplit
AbortError: Cannot split on the <body> tag
|
Any help would be greatly appreciated.
I have tried resetting all options to default, with no luck.
I'm wondering now if I'm accidentally putting in the wrong xpath code, and somehow changed it without noticing.
If I have the wrong code for "find all instances of the word 'chapter' and split document, please correct me!
I'm using: (//*[re:test(., "Chapter", "i")]) right now. I thought I'd been using it all along, but now I'm not so sure!
Thank you!