Title: Macro to stupefy quotes
File name: StupefyQuotes.jsee
Updated: 10/11/2006
Author: Emurasoft
Website:
http://www.emeditor.com/Install: Macros menu - Select
Requires: EmEditor Professional
Support: Forum - Questions and Answers about Macros
Type: Freeware
Description:
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=49I 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);