robin wrote:
> Thanks, but that replaces all apostrophes with quotation marks - what I
> need is something to replace straight quotes (").  Nevertheless, I think
> I've got the idea - I'm not that familiar with sed, but I can probably
> knock something together in Perl.

It would have failed if the quotes were on different lines anyway.
This one will work as you want, so long as your sed buffer is big enough.
Perl is probably a better tool in this case but you may be lucky...

# Read the entire file into pattern space
:loop
$!{
N
bloop
}

# Replace "foo" with LfooR where L,R are your quotes.
# Do it globally
s/"\([^"]*\)"/\
\\begin_inset Quotes eld\
\\end_inset\
\
\1\
\\begin_inset Quotes erd\
\\end_inset\
/g


-- 
Angus

Reply via email to