View Single Post
Old 10-03-2010, 09:19 PM   #9
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
I've attached a sample RTF file. You'll note the rtf file includes three kinds of common chapter headings.
  1. Take this rtf file add it to Calibre
  2. Highlight the book in Calibre
  3. Click 'c' to open the convert dialog
  4. Click on Structure detection
  5. Enable the preprocessing option
  6. Under 'Detect Chapters (xpath expression), change 'chapter|book|section|part\s+' to '.*'
  7. Select your preferred output format on the upper right corner
  8. Click convert

You generally can't mix and match those three types of chapter headings in a full book (just choose one), but in a test case like this it works fine.

I tested that in Kindle for Mac and Adobe DE, both showed me TOCs. If you're not seeing a TOC maybe you need to describe how you're attempting to view it.
Attached Files
File Type: rtf test_preprocessing.rtf (531 Bytes, 474 views)

Last edited by ldolse; 10-03-2010 at 09:22 PM.
ldolse is offline   Reply With Quote