Main : Macros : 

Category: Macros
Download Now!Macro to stupefy quotes Popular Version: 
Submitted Date:  2/21/2008
Description:
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=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);

Downloaded 1269 times  1269     Supported Platforms EmEditor Professional   Home Page http://www.emeditor.com/
Rating: 3.00 (1 vote)
Rate this File | Modify | Report Broken File | Tell a Friend | Comments (0)


English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文