Macro to stupefy quotes

This macro converts educated quotes to stupefied quotes. For example,‘abc’will be converted to 'abc'.
See forum topic: http://www.emeditor.com/modules/newbb/viewtopic.php?topic_id=19&forum=4&post_id=49

I took this macro and modified it to replace *all* smart quotes, both single and double with their ' and " counterparts. It previously only worked on paired single quotes, which rarely occur in English. Macro follows:

document.selection.Replace("‘","\x27",eeFindNext | eeFindReplaceCase | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace("’","\x27",eeFindNext | eeFindReplaceCase | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace("“","\x22",eeFindNext | eeFindReplaceCase | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace("”","\x22",eeFindNext | eeFindReplaceCase | eeReplaceAll | eeFindReplaceRegExp);
StupefyQuotes.jsee
File Size246.0 B
DateFebruary 21, 2008
Downloads1440
AuthorEmurasoft
LicenseFreeware