Smart/curly quotes vs straight quotes

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Smart/curly quotes vs straight quotes

Agoldenquill
I'm a new LyX user needing to convert a novel manuscript to LyX format. I managed to remove all but the barebones formatting from my OpenOffice-formatted document (could not export directly to LyX -- didn't work for some reason), but now I cannot seem to find any way to convert all the quotes to smart, or curly, quotes. They're all straight quotes.

The only thing I've discovered so far is to manually go through and delete the left-quote / right-quote and type in the new one. With over 400 pages including extensive dialogue, this is a huge undertaking!

Does anyone know of a macro-type method or any other method to automatically convert straight quotes to smart/curly quotes?

FYI, I've already tried search-and-replace, but this too is a time-consuming task, having to go through and search each left straight quote and replace it with a left smart quote, then do the same for the right. Twice through 400+ pages...not fun.

Any help is appreciated.
Reply | Threaded
Open this post in threaded view
|

Re: Smart/curly quotes vs straight quotes

Jethro Belle
This post has NOT been accepted by the mailing list yet.
The latest LyX has |Edit>Find & Replace (Advanced)...>  that is brilliant and allows you to use RegEx. RegEx is cryptic, but this example will give you a start.
Search for "before a letter and replace with left curly bracket, the "after a letter and replace with right curly bracket should do it.

Alternatively you could push it through MSWord that claims to do the conversion before importing though the indicated route.
Reply | Threaded
Open this post in threaded view
|

Re: Smart/curly quotes vs straight quotes

dajare
This post has NOT been accepted by the mailing list yet.
In reply to this post by Agoldenquill
The global search/replace can be done in OpenOffice using the instructions contained in this Q&A on the AskLibO site:

https://ask.libreoffice.org/en/question/2612/how-do-i-convert-straight-quotes-to-typographic-quotes/?answer=7010#post-id-7010

The regex works pretty well in my experience, and it is at least worth a look since you have this software already.