View Single Post
Old 01-26-2023, 02:05 PM   #1
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 782
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Sage
Title-case text (ignore tags) Not Necessarily Working

Another weird one. Sometimes, the Calibre Editor's Regex-Function mode of "Title-case text (ignore tags)" doesn't completely change the case of the text. I haven't been able to find a reason why. For instance, just now, I had it look for:
Code:
<h2>(.+?)</h2>
and it correctly found and highlighted:
Code:
<h2>Introduction: CARLA LEMARCHANT</h2>
When I told it to do the replacement, nothing changed. I backed the cursor off a bit, tried again, and got the same result. So, I switched the mode to "Lower-case text (ignore tags)", hit the Find and the Replace buttons and it correctly found and lower-cased the thing. I changed it back to Title-case and it now worked.

Then, I manually changed it back to its original, and Title-case didn't work again. The Lower-case function worked and then Title-case on that also worked. If I use the "Upper-case text (ignore tags)" mode and back to Title-case, that also works.

EDIT: I should have been more specific about "didn't work." The stuff before the colon (":") converts fine (even with more than one word). The stuff after the colon is where the problem always seems to happen.

Last edited by enuddleyarbl; 01-26-2023 at 02:30 PM.
enuddleyarbl is offline   Reply With Quote