I am proofreading a text, and I would like to change all occurrences of ' to the relevant character, ‘ or ’; ditto per " and double quotes. The task cannot be automated, because there are apostrophes in the middle of the text, like in "I'm", and of course " is heavily used in the XHTML markup. At the moment I am using Sigil, but replacing every single character takes a bit of time because of the tidying involved. Do you know of any better way?

  • btw, I had some partial results by changing first all occurrences of 's, n't, 've, 'll, and then using a regex changing '([^']*)' to ‘\1’
    – mau
    Commented Feb 21, 2019 at 14:44

1 Answer 1


You could use the PunctuationSmarten Sigil plugin.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.