![]() |
#1 |
The Fumbler
![]() Posts: 66
Karma: 10
Join Date: Jun 2015
Device: android 4.2/fbreader
|
Ugly all caps
Many books start each chapter or each scene change with a string of all Capital text. I do not like the practice and would like a search/replace to change this. I can handle the replace part, but I am struggling with a search statement.
Is there a regex search that will find these strings of CAPITAL LETTERS with space interspersed? |
![]() |
![]() |
![]() |
#2 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,696
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Most of the time it's small caps.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,478
Karma: 78910112
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Code:
[A-Z ]+ The challenge will be to limit that to only matching at the start of a chapter or scene change |
![]() |
![]() |
![]() |
#4 |
The Fumbler
![]() Posts: 66
Karma: 10
Join Date: Jun 2015
Device: android 4.2/fbreader
|
Re: [A-Z ]+
Yeah, limiting it is the problem. It matches ever single space as well. And you might imagine that there are more than 2 single spaces in a book. |
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Code:
<p.*?>[A-Z][A-Z ]{2,} |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,478
Karma: 78910112
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
I wonder if this might best be done by a editor plugin?
|
![]() |
![]() |
![]() |
#7 |
The Fumbler
![]() Posts: 66
Karma: 10
Join Date: Jun 2015
Device: android 4.2/fbreader
|
That is pretty close, thanks for the help.
I am convinced that there is so much variability that the only solution is look at each one and make changes accordingly. Probably search for scene changes then deal with the leading string for each occurrence. Thanks again for the input. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
RegEx Question: H1 ALL CAPS to All Caps | phossler | Sigil | 21 | 02-06-2014 02:44 PM |
They Are Soooo UGLY! | Faterson | Marvin | 19 | 09-27-2013 02:15 PM |
Why E-Books Look So Ugly | jankovicgood | News | 38 | 09-04-2009 07:19 PM |
Ugly formatting | Tanzaku | Workshop | 62 | 12-25-2007 02:35 AM |
Kindle is Ugly | halljames | Amazon Kindle | 48 | 11-29-2007 01:45 PM |