On Sun, Apr 15, 2012 at 7:46 AM, Richard Heck <rgh...@comcast.net> wrote: > On 04/14/2012 07:39 PM, stefano franchi wrote: >> >> I have a (long) manuscript imported from Framemaker via Latex where >> all the quotation marks (both single and double) appear in Lyx as >> straight quotes instead of the properly curly ones. The source view, >> in fact, shows me countless \texquotedbl commands instead of regular >> quotes. >> >> Is there any way to do a global find and replace that would properly >> substitute opening straight quotes with open single|double quotes and >> viceversa for closing quotes? I could search and replace for >> space+quote(s) and, respectively for quote+space. That would work in >> most cases and I could fix the remaining issues by hand. I thought the >> new find and replace could manage, but: >> >> 1. I cannot do a simple find and replace for [space][quote] because I >> am not allowed to enter a space in the find area >> 2. I can search for reg expression \s" thereby finding most of the >> instances I'm looking for. But I cannot enter a space in the replace >> area, nor can I enter a regular expression in it (as the manual >> explains, reg expressions are not allowed in the replace area yet). >> 3. Using regular expressions as sketched above in an external editor >> breaks the lyx file, because straight quotes are needed for citation >> commands (and probably in other places as well. >> >> Any idea? >> > Try inserting into the Advanced Find field: [REGEX .*] ", or something like > that. The regex matches anything, or nothing, so is pointless, but it allows > you to enter the space. You could presumably also enter a user-defined regex > for a space: \s.
Hi Richard, sorry for not being clear. I can match a space with a regex in the find field (I did it with /s), but how do I put the space back in? The replace field does not allow regexes nor spaces. Cheers, Stefano -- __________________________________________________ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas A&M University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org