View Single Post
Old 02-22-2009, 03:09 AM   #2
HenryP
Enthusiast
HenryP began at the beginning.
 
HenryP's Avatar
 
Posts: 43
Karma: 24
Join Date: Feb 2009
Location: Australia
Device: Sony 505
My reply is a set of questions on the same topic - i.e., of chapter detection.
I'm unable to get started with chapter detection because I'm unsure how I can read the relevant code.
For example, whilst the regular expression tutorial (Xpath) is clear and straightforward, I'm unable to determine whether the code referred to is from the input file (eg., an html file generated from, say, Open Office) or is xhtml code within Calibre.
The only code I seem to have access to is that of the (html) input file whcih I generated from Open Office.
The Table of Contents generated from Calibre invariably lists the endnote reference numbers with the links intact as the Table of Contents and yet the regular expression in the Xpath box is that which searches for a heading with the string 'Chapter'; the endnotes are correctly generated as endnotes with the correct hyper links and that's wonderful. But they're muscling in on the Table of Contents' territory, and that's a shame.
I'd welcome any help. Calibre looks like it's going to be worth the effort to come to terms with but I'm on the verge of infinite loop hysteria and would appreciate being set straight.
HenryP is offline   Reply With Quote