Reply to topic  [ 23 posts ]  Go to page Previous  1, 2
Applying QuickFix after I've written a document 
Author Message

Joined: 2006-12-08 00:46:44
Posts: 416
Location: London or Exeter, UK
Has nobody noticed that appledogx still has his Find/Replace set to Powerfind rather than Powerfind Pro? Does that make a difference?

Mark


2014-01-11 09:45:18
Profile
User avatar

Joined: 2007-01-17 03:25:42
Posts: 729
xiamenese wrote:
[...]Does that make a difference?

Mark

It certainly does, because then the metacharacters are treated as literals!


2014-01-11 10:46:56
Profile
User avatar

Joined: 2007-02-07 00:58:12
Posts: 876
Location: Japan
appledogx wrote:
Well, using this macro you've provided (thank you), I've been able to modify it and get closer... The problem I now have is that if I select after the text, I cannot seem to type any uppercase letters and I'm not quite sure how to cure this.


The problem you are having is due to your using "display as". This is a style attribute that overrides what you type (and hides what you have typed). You should use actual conversion. So change the first line of your macro to "lowercase" without the "display as".
The final line of "display as uppercase" does nothing in your macro, because the characters you're applying this to are already uppercase. I think it would make most sense to actually convert the sentence initial letters (rather than just using "display as"). But you could do the latter. In that case the find/replace should be changed to a "Find All" (and removing the bit that does the uppercasing). Below I have a macro with these changes.

[macro removed: see below]

_________________
philip


Last edited by phspaelti on 2014-01-12 06:38:06, edited 1 time in total.



2014-01-11 19:40:37
Profile
User avatar

Joined: 2013-12-31 07:29:10
Posts: 7
Location: Mexico
Just using 'lowercase' generates an error:

There was an error on line 1 in the macro "Sentence_Case_Diplay_As".

Unknown menu item path:
lowercase


2014-01-12 06:07:41
Profile
User avatar

Joined: 2007-02-07 00:58:12
Posts: 876
Location: Japan
appledogx wrote:
Just using 'lowercase' generates an error:

There was an error on line 1 in the macro "Sentence_Case_Diplay_As".

Unknown menu item path:
lowercase


My bad.
It is supposed to be "To lowercase".

Fixed macro:
Attachment:
Sentence_Case_Diplay_As.nwm [17.48 KiB]
Downloaded 94 times

_________________
philip


2014-01-12 06:14:57
Profile
User avatar

Joined: 2013-12-31 07:29:10
Posts: 7
Location: Mexico
It works! I tried to make something that will keep your selected text selected. It will work for a single selection, but non-contiguous text only gets the first selection selected. I'm not sure there is a way to do this for all selections in other cases.


Attachments:
Sentence Case.nwm [18.15 KiB]
Downloaded 96 times
2014-01-12 06:56:35
Profile
User avatar

Joined: 2007-02-07 00:58:12
Posts: 876
Location: Japan
appledogx wrote:
It works! I tried to make something that will keep your selected text selected. It will work for a single selection, but non-contiguous text only gets the first selection selected. I'm not sure there is a way to do this for all selections in other cases.


Glad you got it working. The easiest way to do this is to use the macro language. Check in the help menu for the Macro Reference.
Here I am attaching a version of your macro that has been changed to work for non-contiguous selections.
Attachment:
Sentence_Case-2.nwm [18.18 KiB]
Downloaded 82 times

_________________
philip


2014-01-12 07:03:37
Profile
User avatar

Joined: 2013-12-31 07:29:10
Posts: 7
Location: Mexico
Thanks Philip! It's absolutely perfect now! :)


2014-01-12 07:15:28
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 23 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: No registered users and 8 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