View Single Post
Old 03-13-2022, 01:05 AM   #7
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,622
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by kovidgoyal View Post
Thank you @kovidgoyal
I'll test it next release. I assume that is for the sizing, not the regex.

Let me test the regex issue a bit more. It seems simple regex work fine, but there is a more detailed one that I use that keeps failing after updating it.

I use it to find sentences that are full uppercase. Usually the first line of a chapter or new scene.
PHP Code:
</span>\b[A-Z&#8217;]+(?:\s+[A-Z]+)*\b 
If I try adding some punctuation, say a comma, period or semi-colon, then it fails and I need to close and reopen the book.
PHP Code:
</span>\b[A-Z&#8217;]+(?:\s+[A-Z\.]+)*\b 
The Replace portion is regex-function Title-case text (ignore tags)

Last edited by Karellen; 03-13-2022 at 01:10 AM.
Karellen is offline   Reply With Quote