Reply to topic  [ 3 posts ] 
Move Previous Sentence Macro Problem 
Author Message

Joined: 2010-02-22 15:06:48
Posts: 98
Hello All,

I'm using the Move Previous Sentence and Move Next Sentence Macros from the macro repository (just installed them the other day, so I imagine that they are current).

The Move Next Sentence Macro works exactly as advertised, however the Move Previous Sentence macro has very odd behaviour: whenever there is a sentence with a comma in it the insertion point moves to the comma and then gets "stuck" there, so that the insertion point won't move to the previous sentence no matter how many times the Move Previous Sentence is run.

I see that there was some discussion of what I assume was an older version of the macro at: http://www.nisus.com/forum/viewtopic.php?f=17&t=3669&p=17009&hilit=previous+sentence#p17009, but from that discussion it seems like earlier issues had been solved.

Any suggestions?

Thanks,
Josh


2010-06-11 18:44:59
Profile
Official Nisus Person
User avatar

Joined: 2002-07-11 17:14:10
Posts: 4251
Location: San Diego, CA
Hi Josh,

It looks like you found a bug in the macro. I've updated the macro repository to fix the "Move Previous Sentence" macro. If you don't want to download the full archive of all sentence macros again, here's the fixed code for just the one macro:
Code:
Select Sentence
Select Start
Find Previous '\p{Punct}+\s+', 'E-W'
Select Start

Thanks for letting us know.


2010-06-14 11:30:18
Profile WWW

Joined: 2010-02-22 15:06:48
Posts: 98
Hi Martin, thanks, that works great! Josh


2010-06-14 17:06:43
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:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software