View Single Post
Old 06-02-2011, 01:25 PM   #2
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,086
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 buckm56 View Post
I have a book which isn't well formatted to created a TOC. The only format clue is that all letters of the first couple of words of the chapter are CAPs. Is there any formula that can create a TOC from this.

Thanks
If you convert to EPUB, then use Sigil's REGEX (match case ticked),
you can quickly step through (just Find-next or Replace)
change the pattern to match those skipped: repeat
BTW: if the Chapter start uses 'small-caps' a case sensitive S&R will not work, but the small-caps class is your best ever trigger

Assuming each 'chapter' started in a separate segment, I would have to see the <body> tag through to the lines that would make the TOC entry.
If a chapter also starts mid-file, to see if there is a pattern to trap.
theducks is offline   Reply With Quote