
: Why am I getting spurious TOC entries in Calibre? I'm converting an RTF document to epub (and mobi) and am trying to extract a table of contents. All of my chapters start with the word
I'm converting an RTF document to epub (and mobi) and am trying to extract a table of contents.
All of my chapters start with the word "CHAPTER" in all caps, but are not tagged in any special way. I'm using the following XPATH expression to find the chapters:
//*[re:test(., "CHAPTER")]
This is working except that my TOC looks like this:
As you can see, the table of contents includes the cover page text as several chapters that all point to the first page.
Also I'm getting duplicate entries for each chapter.
I was able to fix this with the manual TOC editor, but I'm wondering if I'm doing something wrong with my detection approach.
Free books android app tbrJar TBR JAR Read Free books online gutenberg
More posts by @Kimberly

: How can I rename my Kindle books? I know this is a bit anal of me, but I really don't like how some of the books I've purchased appear on my Kindle devices. The names are great when you're

: How to trigger pagination recalculation when changing content via JS? I wrote a little script in JavaScript that allows the user to switch the language of the text displayed. It simply works