View Single Post
Old 03-24-2016, 07:44 AM   #18
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,557
Karma: 93980341
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by fbrzvnrnd View Post
You can search text in straight quotes using RegEx, and replace it with curly ones. Using RegEx could give you more instruments to get the text you really need and jump the other. The regex I wrote about book/article title is an example.
Thanks.

I strongly suspect that we're all familiar with the use of regular expressions, but unfortunately they really don't help with the fundamental problem we're addressing here. You can certainly use a regex to find a single quote at the start of a word, but the problem is knowing whether to replace it with an left or a right curly quote. How would you address that issue?

Eg, if you find the string 'ello you need to replace the straight quote with a right apostrophe (abbreviated word), whereas if you find the string 'hello you need to replace it with left apostrophe (opening speech or quotation mark).

Have you any suggestions to assist with this?
HarryT is offline   Reply With Quote