Applying QuickFix after I've written a document

Everything related to our flagship word processor.
xiamenese
Posts: 421
Joined: 2006-12-08 00:46:44
Location: London or Exeter, UK

Re: Applying QuickFix after I've written a document

Post by xiamenese » 2014-01-11 09:45:18

Has nobody noticed that appledogx still has his Find/Replace set to Powerfind rather than Powerfind Pro? Does that make a difference?

Mark

User avatar
Hamid
Posts: 732
Joined: 2007-01-17 03:25:42

Re: Applying QuickFix after I've written a document

Post by Hamid » 2014-01-11 10:46:56

xiamenese wrote:[...]Does that make a difference?

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

User avatar
phspaelti
Posts: 912
Joined: 2007-02-07 00:58:12
Location: Japan

Re: Applying QuickFix after I've written a document

Post by phspaelti » 2014-01-11 19:40:37

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]
Last edited by phspaelti on 2014-01-12 06:38:06, edited 1 time in total.
philip

User avatar
appledogx
Posts: 7
Joined: 2013-12-31 07:29:10
Location: Mexico

Re: Applying QuickFix after I've written a document

Post by appledogx » 2014-01-12 06:07:41

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

User avatar
phspaelti
Posts: 912
Joined: 2007-02-07 00:58:12
Location: Japan

Re: Applying QuickFix after I've written a document

Post by phspaelti » 2014-01-12 06:14:57

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:
Sentence_Case_Diplay_As.nwm
(17.48 KiB) Downloaded 98 times
philip

User avatar
appledogx
Posts: 7
Joined: 2013-12-31 07:29:10
Location: Mexico

Re: Applying QuickFix after I've written a document

Post by appledogx » 2014-01-12 06:56:35

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 98 times

User avatar
phspaelti
Posts: 912
Joined: 2007-02-07 00:58:12
Location: Japan

Re: Applying QuickFix after I've written a document

Post by phspaelti » 2014-01-12 07:03:37

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.
Sentence_Case-2.nwm
(18.18 KiB) Downloaded 85 times
philip

User avatar
appledogx
Posts: 7
Joined: 2013-12-31 07:29:10
Location: Mexico

Re: Applying QuickFix after I've written a document

Post by appledogx » 2014-01-12 07:15:28

Thanks Philip! It's absolutely perfect now! :)

Post Reply