Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 05-02-2016, 02:16 AM   #16
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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:
Originally Posted by phossler View Post
Yes, but if there's 100 chapters in the book that all have the upper case leadin for the first paragraph, then I'd have to select the text for each chapter manually.

I was only wondering if there was a way to find a group of upper case words at the beginning of a paragraph and do all 100 at once
If you like, I can repeat my advice:

"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:
I'll try to avoid arguing with myself
It makes it confusing to read:
Code:
ALLCAPS ALLCAPS ALLCAPS lower case
Should become:
Code:
Allcaps allcaps allcaps lower case
When the truth of the matter is that the second line is not, in fact, still all caps despite the words saying "allcaps" (and being either titlecased or lowercase).
eschwartz is offline   Reply With Quote
Old 05-02-2016, 09:46 AM   #17
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
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
phossler is offline   Reply With Quote
Advert
Old 05-02-2016, 10:10 AM   #18
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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).
eschwartz is offline   Reply With Quote
Old 05-02-2016, 05:03 PM   #19
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
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
BetterRed is offline   Reply With Quote
Old 05-03-2016, 09:00 AM   #20
Thom*
The Fumbler
Thom* began at the beginning.
 
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.
Thom* is offline   Reply With Quote
Advert
Old 05-03-2016, 07:53 PM   #21
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,686
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Thom* View Post
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.
Just in case anyone is mistaken, the publisher/printer didn't neglect to put in the opening quote, the scanning software lost it, and the OCR Fixup process failed to detect its absence, as it often fails to detect these scanner errors:

'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
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 11:37 PM.


MobileRead.com is a privately owned, operated and funded community.