View Single Post
Old 05-02-2016, 02:16 AM   #16
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by phossler View Post
Yes, but if there's 100 chapters in the book that all have the upper case leadin for the first paragraph, then I'd have to select the text for each chapter manually.

I was only wondering if there was a way to find a group of upper case words at the beginning of a paragraph and do all 100 at once
If you like, I can repeat my advice:

"capture the first three words and apply the default, builtin regex function"

If you can find a way to restrict the regex to only the first three words using Sigil's S&R with the PCRE replacement extensions, then you can restrict it to only the first three words in calibre, and use the function replace instead. I am afraid theducks was entirely on the wrong track there.

Quote:
I'll try to avoid arguing with myself
It makes it confusing to read:
Code:
ALLCAPS ALLCAPS ALLCAPS lower case
Should become:
Code:
Allcaps allcaps allcaps lower case
When the truth of the matter is that the second line is not, in fact, still all caps despite the words saying "allcaps" (and being either titlecased or lowercase).
eschwartz is offline   Reply With Quote