nisus.com
https://www.nisus.com/forum/

clean up on selected text
https://www.nisus.com/forum/viewtopic.php?f=17&t=2779
Page 1 of 1

Author:  lellius [ 2008-01-28 06:31:45 ]
Post subject:  clean up on selected text

I have this macro to clean up text


Find and Replace ‘([,;:\!\?])\1+’, ‘\1’, ‘aE’
Find and Replace ‘^\s*[,.;:\!\?]+‘, ‘’, ‘aE’
Find and Replace ‘(\(|\[) +’, ‘\1’, ‘aE’
Find and Replace ‘ +(\)|\])’, ‘\1’, ‘aE’
Find and Replace ‘(\(|\[)’, ‘ \1’, ‘aE’
Find and Replace ‘(\)|\])’, ‘\1 ’, ‘aE’
Find and Replace ‘\s*([,.;:\!\?\)\]])‘, ‘\1’, ‘aE’
Find and Replace ‘,([.;:\!\?])’, ‘\1’, ‘aE’
Find and Replace '(?<=[,.:;!?])(?=\p{Latin})', ' ', 'aE'
Find and Replace ‘ +’, ‘ ’, ‘aE’
Find and Replace ‘^[\t ]+|[\t ]+$’, ‘’, ‘aE'
Find and Replace ‘^[\t ]+|[\t ]+$’, ‘’, ‘aE'

which is applied to the whole text of the file.
Who can correct it , so that i can apply the clean up macro ONLY TO A SELECTED TEXT?
Thanks
lellius

Author:  Groucho [ 2008-01-28 13:09:18 ]
Post subject: 

Hi, Lellius

Change 'aE' into 'saE'

s standing for 'search in selection only'

Also, see Nisus Help and Nisus Macro Reference that is shipped with the last two versions of NWP.

Cheers
Henry

Author:  lellius [ 2008-01-30 07:18:04 ]
Post subject: 

Hello Henry,
many thanks.
it does work
gio

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/