View Single Post
Old 01-11-2011, 01:18 PM   #18
Wolfgan
Avid reader
Wolfgan began at the beginning.
 
Wolfgan's Avatar
 
Posts: 19
Karma: 10
Join Date: Feb 2009
Location: Argentina
Device: Kindle 3 wifi
Quote:
Originally Posted by cybmole View Post
twice is not so bad, I had a case (in another thread) that was detecting everything x 4 !

xpath is a pig to configure. I spent ages earlier today telling structure detection to look for the default h1 h2 tags + part||section etc OR for stand-alone (chapter) numbers in bold & no matter how I tried I got "invalid" from the syntax checker. the wizard will not build "OR" structures so I was trying to adapt the deafult and change the OR ...cass = chapter...construct to [class = bold and text is of form \d* ] but no joy.

could someone please tell me if that is do-able.

I have books where chapters are numbered 1, 2 etc. but do not have h1 or h2 tags. if those chapters are within sections or parts then structure detection (assisted by preprocess) seems unable/unwilling to build a full TOC, it just does the easy stuff and builds a TOC of parts / sections
AFAIK XPath power comes from how good is your regular expression. Check this thread for ideas on how to modify your regex

Use the debug feature of the conversion process, and check the operation log window to tweak your regex expression.
Good luck! Wolf
Wolfgan is offline   Reply With Quote