Has nobody noticed that appledogx still has his Find/Replace set to Powerfind rather than Powerfind Pro? Does that make a difference?
Mark
Applying QuickFix after I've written a document
Re: Applying QuickFix after I've written a document
It certainly does, because then the metacharacters are treated as literals!xiamenese wrote:[...]Does that make a difference?
Mark
Re: Applying QuickFix after I've written a document
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".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 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]
Last edited by phspaelti on 2014-01-12 06:38:06, edited 1 time in total.
philip
Re: Applying QuickFix after I've written a document
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
There was an error on line 1 in the macro "Sentence_Case_Diplay_As".
Unknown menu item path:
lowercase
Re: Applying QuickFix after I've written a document
My bad.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
It is supposed to be "To lowercase".
Fixed macro:
philip
Re: Applying QuickFix after I've written a document
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 455 times
Re: Applying QuickFix after I've written a document
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.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.
Here I am attaching a version of your macro that has been changed to work for non-contiguous selections.
philip
Re: Applying QuickFix after I've written a document
Thanks Philip! It's absolutely perfect now! 
