Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > Miscellaneous > Lounge

Notices

Reply
 
Thread Tools Search this Thread
Old 07-31-2015, 12:45 AM   #496
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
Quote:
Originally Posted by conan50 View Post
I really like Ubuntu, but prefer Debian or Linux Mint (LTS). What I don't like about Ubuntu is it pushes through lots of updates, including Kernel updates that break things. After losing my wireless firmware after an Ubuntu update I moved all my machines to Linux Mint (17 the current LTS). Mint does not push through Kernel updates, but allows the user to select them if they wish, unlike Ubuntu.
I tried Mint. I liked that it had a ton of accessories (I use Xubuntu) but things didn't work as well there as they did in Xubuntu. (Like for some things I had to do ctrl-c and ctrl-v for copying and pasting, instead of write clicking and doing it that way.) You do get the kernel updates in Xubuntu but I learned how to get rid of the old ones pretty easily. Never had anything break (that I know of).
Gregg Bell is offline   Reply With Quote
Old 07-31-2015, 12:51 AM   #497
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
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.)
Gregg Bell is offline   Reply With Quote
Old 07-31-2015, 01:34 AM   #498
avantman42
Wizard
avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.
 
avantman42's Avatar
 
Posts: 1,090
Karma: 6058305
Join Date: Sep 2010
Location: UK
Device: Kindle Paperwhite
Quote:
Originally Posted by Gregg Bell View Post
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.)
I wrote a guest post for a friend that shows some regular expressions that can be used in LibreOffice, including one to find double words:
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.
avantman42 is offline   Reply With Quote
Old 07-31-2015, 01:39 AM   #499
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)
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.
eschwartz is offline   Reply With Quote
Old 07-31-2015, 01:43 AM   #500
avantman42
Wizard
avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.
 
avantman42's Avatar
 
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.
avantman42 is offline   Reply With Quote
Old 07-31-2015, 02:20 AM   #501
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)
Hey, they've got unittests. I've always wanted to use unittests for my regexes...
eschwartz is offline   Reply With Quote
Old 07-31-2015, 08:20 AM   #502
conan50
Fanatic
conan50 ought to be getting tired of karma fortunes by now.conan50 ought to be getting tired of karma fortunes by now.conan50 ought to be getting tired of karma fortunes by now.conan50 ought to be getting tired of karma fortunes by now.conan50 ought to be getting tired of karma fortunes by now.conan50 ought to be getting tired of karma fortunes by now.conan50 ought to be getting tired of karma fortunes by now.conan50 ought to be getting tired of karma fortunes by now.conan50 ought to be getting tired of karma fortunes by now.conan50 ought to be getting tired of karma fortunes by now.conan50 ought to be getting tired of karma fortunes by now.
 
Posts: 597
Karma: 14054112
Join Date: Jun 2014
Device: kindle
Quote:
Originally Posted by eschwartz View Post
I find using the command-line backends for things is much easier.
Most package managers, I think, allow you to hold a package in the configuration file. apt has apt-mark which can mark a package to be held.
Right. Mint just makes it easier by default through not automatically adding kernel updates when you update. Especially useful for newbies to Linux.
conan50 is offline   Reply With Quote
Old 07-31-2015, 11:47 PM   #503
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
Quote:
Originally Posted by avantman42 View Post
I wrote a guest post for a friend that shows some regular expressions that can be used in LibreOffice, including one to find double words:
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.
Thanks Russell. And I never thought of making the replacements manually. (I did the double word replace automatically.) That's a great suggestion. And thanks for the link. Looks good (and interestingly one of my books will be in British English).
Gregg Bell is offline   Reply With Quote
Old 07-31-2015, 11:54 PM   #504
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
Quote:
Originally Posted by eschwartz View Post
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
Thanks eschwartz. Yeah, I'll be double probably triple checking any regex stuff for a while. Hey, that link. Do I have to buy Regex Buddy to use that link?

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
Gregg Bell is offline   Reply With Quote
Old 07-31-2015, 11:59 PM   #505
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
Quote:
Originally Posted by avantman42 View Post
Another useful site is https://regex101.com/ It allows you to try regular expression patterns, with highlighting and explanations.
Wow. What a cool site. Thanks. I don't know how to use it. LOL But I'll figure it out eventually.
Gregg Bell is offline   Reply With Quote
Old 08-01-2015, 12:49 AM   #506
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
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
Gregg Bell is offline   Reply With Quote
Old 08-01-2015, 08:50 AM   #507
avantman42
Wizard
avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.
 
avantman42's Avatar
 
Posts: 1,090
Karma: 6058305
Join Date: Sep 2010
Location: UK
Device: Kindle Paperwhite
Quote:
Originally Posted by Gregg Bell View Post
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.
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.
avantman42 is offline   Reply With Quote
Old 08-01-2015, 01:55 PM   #508
badgoodDeb
Grand Sorcerer
badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.
 
badgoodDeb's Avatar
 
Posts: 8,555
Karma: 64462893
Join Date: Jan 2008
Location: Harrisburg outskirts
Device: Palms, K1-4s, iPads, iPhones, KV, KO1
Quote:
Originally Posted by Gregg Bell View Post
Thanks Russell. And I never thought of making the replacements manually. (I did the double word replace automatically.) That's a great suggestion. And thanks for the link. Looks good (and interestingly one of my books will be in British English).
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!
badgoodDeb is offline   Reply With Quote
Old 08-01-2015, 02:57 PM   #509
avantman42
Wizard
avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.
 
avantman42's Avatar
 
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.
avantman42 is offline   Reply With Quote
Old 08-01-2015, 03:55 PM   #510
badgoodDeb
Grand Sorcerer
badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.badgoodDeb ought to be getting tired of karma fortunes by now.
 
badgoodDeb's Avatar
 
Posts: 8,555
Karma: 64462893
Join Date: Jan 2008
Location: Harrisburg outskirts
Device: Palms, K1-4s, iPads, iPhones, KV, KO1
Quote:
Originally Posted by avantman42 View Post
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.
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.)
badgoodDeb is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 09:18 PM.


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