![]() |
#16 | ||
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
"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:
Code:
ALLCAPS ALLCAPS ALLCAPS lower case Code:
Allcaps allcaps allcaps lower case |
||
![]() |
![]() |
![]() |
#17 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Thanks to the comments and suggestions, I think I have something that seems to work, at least for the majority of cases. I have to remember to check [Case Sensitive], and it certainly is not fool proof, but so far seems to let me [Replace and Find] and do a manual check. Add this to my Saved Searches
It will fail on BR's examples, so I won't let 'er rip, but stepping through is a lot faster Find: <p>([A-Z]{2,}[\s\.,-;:]){1,6} Replace: Capitalize text (ignore tags) I don't know if this is the most effecient or bullet proof way, so I will take any suggestions |
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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)
|
Looking good.
![]() That was pretty much what I was thinking of from the beginning (or near as makes no difference). ![]() |
![]() |
![]() |
![]() |
#19 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,686
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I do similar, but as part of my 'find and style Chapter Headings and Scene Breaks' process. At the same I drop any dropcaps, or first letter bold artefacts etc.
After that I march though all the 'four or more consecutive capitals' in case I missed something - such as an unstyled scene break. BR |
![]() |
![]() |
![]() |
#20 |
The Fumbler
![]() Posts: 66
Karma: 10
Join Date: Jun 2015
Device: android 4.2/fbreader
|
DON'T FORGET THAT A quote might need to be added. I have seen cases where this whole concern is an issue at scene changes in addition to chapter starts.
MAYBE AS NEW BOOKS ARE published electronically and the publisher/printer is left out of the picture this will be less of an issue. ONLY TIME WILL tell," he said. |
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,686
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
'The cow jumped over the moon." 'Where is Sally today?" Toxaris' Dialogue Checker will detect and assist in correcting such errors. My observation is that electronic only books that have dispensed with the services of publishers, editors, printers etc, more often than not also dispense with reading the proofs! Prevailing attitude seems to be if they pass epubcheck, get through the KDP etc etc, then they must be readable ![]() BR |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
RegEx Function: Title Case | phossler | Editor | 29 | 07-04-2020 10:52 AM |
Regex Function about «» and “” | senhal | Editor | 8 | 04-06-2016 02:12 AM |
Regex Function - Split unknown word | Paulie_D | Editor | 19 | 12-07-2014 05:12 AM |
Change Case with Regex Problem | nqk | Editor | 4 | 07-25-2014 10:38 PM |
Regex for Title Case or Sentence case? | Turtle91 | Sigil | 3 | 01-19-2013 01:36 PM |