![]() |
#496 | |
Gregg Bell
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
Quote:
|
|
![]() |
![]() |
![]() |
#497 |
Gregg Bell
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
I realized Libreoffice didn't flag double words. So I Googled and found a Regex solution that works fine. I'm pretty intimidated by Regex though. Somebody once gave me a Regex command and yeah, it worked great but it also added some stuff. Freaked me out.
Anyway, now that I found this nifty double word thing, I checked out the Regex commands for LO. I write novels and I'd be interested in finding missing periods, or missing quotation marks, that sort of thing. I have a friend that does that for me in Sigil but I'm tempted to try my luck with it in LO. Should I? Are there commands for the sort of things I want to do? Or am I asking for trouble? (Esp. since my friend will do it later in Sigil.) |
![]() |
![]() |
![]() |
#498 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,090
Karma: 6058305
Join Date: Sep 2010
Location: UK
Device: Kindle Paperwhite
|
Quote:
http://andrewknighton.com/?p=1460 I only included the expressions for search, not for replacement. I strongly suggest that replacements are done manually. There are always exceptions that shouldn't be replaced. |
|
![]() |
![]() |
![]() |
#499 |
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)
|
Yes, there are commands to do that. Fundamentally, regex is a language for describing word and character patterns.
Try a few regexes, check that they did what you want before continuing, and gradually you will get a feel for them. ![]() And you will find even the regex gurus strongly advocate double-checking all replacements. It's not critical, but it's a nice skill to have. I found the following site very helpful and easy to follow -- it taught me most of what I know about regex: http://www.regular-expressions.info Last edited by eschwartz; 07-31-2015 at 01:42 AM. |
![]() |
![]() |
![]() |
#500 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,090
Karma: 6058305
Join Date: Sep 2010
Location: UK
Device: Kindle Paperwhite
|
Another useful site is https://regex101.com/ It allows you to try regular expression patterns, with highlighting and explanations.
|
![]() |
![]() |
![]() |
#501 |
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)
|
Hey, they've got unittests.
![]() |
![]() |
![]() |
![]() |
#502 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 597
Karma: 14054112
Join Date: Jun 2014
Device: kindle
|
Right. Mint just makes it easier by default through not automatically adding kernel updates when you update. Especially useful for newbies to Linux.
|
![]() |
![]() |
![]() |
#503 | |
Gregg Bell
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
Quote:
|
|
![]() |
![]() |
![]() |
#504 | |
Gregg Bell
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
Quote:
My bad. I looked a little deeper and can see that I don't have to. Last edited by Gregg Bell; 08-01-2015 at 12:05 AM. Reason: adding |
|
![]() |
![]() |
![]() |
#505 | |
Gregg Bell
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
Quote:
|
|
![]() |
![]() |
![]() |
#506 |
Gregg Bell
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
Okay, I've been playing around with it and already found one error in a manuscript using:
a [aeiou] But “[.,] which is supposed to be Expression to find commas and full stops outside quotation marks (use this if you write in US English): only led to ellipses as in "... So, not wanting to spend a ton of time on this, does anybody have a link to really common regex commands that would benefit a writer. Like one quotation mark missing from the pair. Like no punctuation within a closed set of exclamation marks. Like missing punctuation. Like (above) finding commas and periods outside of quotation marks. Thanks |
![]() |
![]() |
![]() |
#507 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,090
Karma: 6058305
Join Date: Sep 2010
Location: UK
Device: Kindle Paperwhite
|
All the ones I use are in the article. I think the reason it isn't working for you is that the web page has opening quotation marks - you'll need to use closing quotation marks.
|
![]() |
![]() |
![]() |
#508 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,555
Karma: 64462893
Join Date: Jan 2008
Location: Harrisburg outskirts
Device: Palms, K1-4s, iPads, iPhones, KV, KO1
|
Well, you'd never think that that would be a problem, but sometimes you really do want a double word. I just used one. See? Your automatic replace probably took that out. I hope maybe you have a previous version, and can go back and do a manual replace instead!
|
![]() |
![]() |
![]() |
#509 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,090
Karma: 6058305
Join Date: Sep 2010
Location: UK
Device: Kindle Paperwhite
|
That's exactly why I do manual replacements in a manuscript. I frequently use RegExp replacements in code, but never in English. There are just too many edge cases and exceptions to rules.
|
![]() |
![]() |
![]() |
#510 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,555
Karma: 64462893
Join Date: Jan 2008
Location: Harrisburg outskirts
Device: Palms, K1-4s, iPads, iPhones, KV, KO1
|
And, if I had had a better idea, I would have said so earlier. (Ok, I don't really mean that, but that's another perfectly find example of requiring a double word.)
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
gregg from ectaco | ProDigit | Ectaco jetBook | 6 | 02-14-2012 08:17 PM |
Gregg Byron -- Nuke em in Je$u$' name... | Gregg Byron | Introduce Yourself | 4 | 08-20-2011 01:06 PM |
History Berry, Robert Lee: Adventures in the Land of Canaan v1 02.jan.2009 | ProDigit | BBeB/LRF Books | 0 | 01-04-2009 09:29 AM |