Reply to topic  [ 3 posts ] 
clean up on selected text 
Author Message

Joined: 2002-08-15 22:06:44
Posts: 36
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


2008-01-28 06:31:45
Profile

Joined: 2007-03-03 09:55:06
Posts: 494
Location: Europe
Post 
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


2008-01-28 13:09:18
Profile

Joined: 2002-08-15 22:06:44
Posts: 36
Post 
Hello Henry,
many thanks.
it does work
gio


2008-01-30 07:18:04
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software