Quote:
Originally Posted by buckm56
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.