Quote:
Originally Posted by Tex2002ans
Search: (“[^”<]+”)
Replace: <b>\1</b>
|
That will work for most cases. But not if a speech goes over several paragraphs. Then only the final para has a close quote.
In that case the <b> codes will overlap the <p> and you'll have a syntax error.
Don't know about Calibre, but in Sigil, F7 check will list all these and you can fix them manually by adding </b> to the end of paras and <b> to the opening quotes of intermediate ones.
I can't think of a way to completely automate this. I'd just do
Search: “
Replace: <b>“
Search: ”
Replace: ”</b>
That will also screw up with extended speech, but simpler to fix as you just have to add closing </b> to intermediates paras.