View Single Post
Old 09-07-2015, 10:54 AM   #3
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,082
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 g25 View Post
Hi, when I convert I would like calibre to detect roman numeral chapters. These chapters don't have the word "chapter" in them, just:
I
II
III
IV
etc..

I figured something like:
[IVXLCDM]+ but I'm not sure exactly how to write it into the
"detect chapter" Xpath expression under the Structural Detection section. Some of the books have the <h2> class tag and some of them have the normal <p> class tag. What would be the exact expression I would use in the xpath line that would detect any combination of "IVXLCDM" as chapters?

Thanks!
I don't remember ever seeing a chapter in the M range
D, did I forget one

I do a lot of my work with the editor, rather than fight a special case Xpath.

Beware the Lone I (I want more) in other places. The Roman Numerals need to exist as the only string between tags or along with a limited set of defined keywords
([CLXVI]{1,7}) is the basic part of my EDITOR search term

The TOC tool (also inside the editor) allows all sorts of solutions for indexing a book.
theducks is offline   Reply With Quote