Quote:
Originally Posted by PatNY
OK, ducks, I tried to adapt your formula to the specific issue I had by using this:
Find:
<text>(([A-Z])(.+) ([A-Z])(.+))</text>
Replace:
<text>\2\L\3\E \4\L\5\E</text>
And it's mostly working. However If I have more than two words in the title, then only the first and last words get the initial cap. The words in the middle are all lower case.
So, for example, your solution will result in:
<text>Ice cream Rocks</text> instead of <text>Ice Cream Rocks</text>
So, do you know how to get every word in the title to be initial caps?
|
You have
3 words
so you need another set of patterns (BTW you can only have 9 capture replacements
Code:
(([A-Z])(.+) ([A-Z])(.+) ([A-Z])(.+))
Code:
<text>\2\L\3\E \4\L\5\E \6\L\7\E</text>
Note that the whole capture is represented by the outermost ( ) and is available as \0
Again: work on the pages and include the Title option in the chapter headings, then autogenerate the TOC