View Single Post
Old 10-22-2017, 08:07 PM   #7
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by larysa View Post
@theducks: tanxs, now i try! PS i use calibre, not sigil!
@ davidfor: I’ve try regex capitalize text, but not work! On find i write <p class=“body”>
and on regex i type on Capitalize text (ignore tags), then click on find, calibre find my p class but don’t capitalize my first word! Why?
Actually, I hit something similar to what you want last night. The case I had looked like:
Code:
<p>Fred said, "this is some dialog
That was scattered through the book with different names. From memory, the search I used was:

Code:
<p>\w+ said, ("[[:lower:]])
Then I used one of the case changing functions, I think it was the "Capitalize text (ignore tags)". What it did is to capitalize what was in the matching group and leave the rest unchanged.

I think that's what I did. I'm at work and can't look back through the search history to be sure. Or test it.
davidfor is offline   Reply With Quote