View Single Post
Old 03-20-2009, 06:18 AM   #25
HenryP
Enthusiast
HenryP began at the beginning.
 
HenryP's Avatar
 
Posts: 43
Karma: 24
Join Date: Feb 2009
Location: Australia
Device: Sony 505
Hello,
This may be an inappropriate post but since the thread's current and involves discussion of LRF format in Calibre, I'm dropping in to ask if someone can clarify an ongoing confusion I've experienced, which is this:
the regular expression used to isolate chapters in an input file defaults to picking out headings 1 or 2.
Neither of the Firefox files I'm able to generate - those from Word on the one hand and Open Office on the other - picks out chapters by the use of Heading1 or Heading2 but only where the attribute class = 'Heading' occurs (in the case of Word files) and where the attribute size = '3' occurs (in odt derived input files).
I've managed to get Calibre to generate a Table of Contents by picking out one or the other of these attributes for both mobi and epub Calibre output files. But I fall foul of the gods in expressing the syntax required for generating an LRF Calibre output file that will create a Table of Contents.
The LRF output is otherwise okay (except that some bizarre font size alterations occur in the endnotes).
I'd like to launch my ebook in all three formats come April Fools' Day and would appreciate any help generating an LRF file that is as good as the mobi and epub format output files.
I imagine there's a straightforward approach to solving this problem and would prefer not to look a fool on April 1st so throw me a lifeline if you're across the topic of chapter detection, please.

henryp
HenryP is offline   Reply With Quote