Search found 563 matches

by adryan
2023-04-13 14:23:40
Forum: Nisus Writer Pro Macros
Topic: Macro Driven Undo Conundrum Solved
Replies: 5
Views: 2467

Re: Macro Driven Undo Conundrum Solved

G'day, loulesko et al I'm not sure I would rely on an Undo command (in any application) to revert a file to its previous condition after a major operation. I think it's safer to work with a duplicate of the file. In relation to your use of the "Sleep" command, judicious use of the equivale...
by adryan
2023-02-25 14:13:57
Forum: Nisus Writer Pro
Topic: Sections — Feature Requests
Replies: 0
Views: 2159

Sections — Feature Requests

G'day, Martin et al We may already have touched on some of this before, but I thought it might be as well to address it again. I think the idea of having the Macro Language incorporate commands relating to Sections has already been advanced. Something else I would like to see is a pair of commands n...
by adryan
2023-02-25 13:33:07
Forum: Nisus Writer Pro Macros
Topic: Extend Line to Right Line Indent
Replies: 14
Views: 4026

Re: Extend Line to Right Line Indent

G'day, Philip et al I'd been successfully using our "Paragraph Straddling Section" Macro until I changed from manual hyphenation to automatic hyphenation, whereupon the line preceding the interposed Section failed to be extended to the Right Line Indent. If automatic hyphenation is enabled...
by adryan
2023-02-14 06:00:27
Forum: Nisus Writer Pro Macros
Topic: Find and replace using attributes works, but macro doesn't
Replies: 11
Views: 3301

Re: Find and replace using attributes works, but macro doesn't

G'day, davidmacd et al Again, knowing your document is crucial. It occurs to me that there may even be some relatively obvious distinction between your superscripts and the rest of the content that you could exploit. For example, you've been searching for every formatting-sensitive occurrence of an ...
by adryan
2023-02-14 03:31:32
Forum: Nisus Writer Pro Macros
Topic: Find and replace using attributes works, but macro doesn't
Replies: 11
Views: 3301

Re: Find and replace using attributes works, but macro doesn't

G'day, davidmacd et al First, I generally advise people considering extensive Find & Replace operations to know the contents of their document first. Obviously you do, as you are aware of multiple legitimate uses of en dashes in your document that mean that my simple offering will not suffice in...
by adryan
2023-02-13 15:42:08
Forum: Nisus Writer Pro Macros
Topic: Way to shade in gray every other paragraph
Replies: 2
Views: 1656

Re: Way to shade in gray every other paragraph

G'day, NisusUser et al Here's one way of going about it. I've chosen a pale orange, just to illustrate the idea. Find All @Text<\n.+\n>, 'Esa-i' Find All @Text<[^\n]>, 'Esa-i' Format:Paragraph Shading Pattern:10% Blend Format:Paragraph Shading Color:Orange I’d name this as “Shade Alternate Paragraph...
by adryan
2023-02-13 14:54:15
Forum: Nisus Writer Pro Macros
Topic: Find and replace using attributes works, but macro doesn't
Replies: 11
Views: 3301

Re: Find and replace using attributes works, but macro doesn't

G'day, davidmacd et al Maybe an easier solution would be to replace all your en dashes with hyphens, then replace just the hyphens in your superscripts with en dashes. You don’t need any fancy F/R expressions for this. The first part is simple. For the second part, you apply the Superscript command ...
by adryan
2023-02-10 06:31:32
Forum: Nisus Writer Pro Macros
Topic: Find and replace using attributes works, but macro doesn't
Replies: 11
Views: 3301

Re: Find and replace using attributes works, but macro doesn't

G'day, davidmacd et al

I see the same thing: F/R works, but not when Macroized.

Cheers,
Adrian
by adryan
2023-01-29 14:17:01
Forum: Nisus Writer Pro
Topic: Search/find any Hebrew characters
Replies: 2
Views: 1013

Re: Search/find any Hebrew characters

G'day, rabbijacobs et al

Insert the following expression (without quotation marks) in the "Find what" field of the Find & Replace window using PowerFind Pro: "[\u0590-\u05FF]"

Cheers,
Adrian
by adryan
2023-01-29 06:53:54
Forum: Nisus Writer Pro Macros
Topic: Scientific Macro
Replies: 7
Views: 2571

Re: Scientific Macro

G'day, NisusUser et al Undeterred by rejection of my previous suggestion, I offer a couple more. The first is that we really require a fraction with a horizontal line separating numerator and denominator to appear as a glyph. So there may be some inexpensive font creation software out there that wou...
by adryan
2023-01-28 23:11:43
Forum: Nisus Writer Pro Macros
Topic: Scientific Macro
Replies: 7
Views: 2571

Re: Scientific Macro

G'day, patrickg et al Thanks for that. A nice addition to the Macro collection. A couple of things others may need to take note of:– (1) The last line of the instructions should read: "Select any text containing your expression(s) and run the macro." (Highlighting is something different. A...
by adryan
2023-01-22 01:17:59
Forum: Nisus Writer Pro Macros
Topic: Encourage Later Line Break
Replies: 5
Views: 2360

Re: Encourage Later Line Break

G'day, Philip et al Thanks for the clear and detailed explanations, Philip. Just what I needed. I know I speak for many on these forums in expressing my appreciation for your generous contributions of time, knowledge and code, especially when it comes to the more arcane aspects of this powerful soft...
by adryan
2023-01-21 14:35:11
Forum: Nisus Writer Pro Macros
Topic: Encourage Later Line Break
Replies: 5
Views: 2360

Re: Encourage Later Line Break

G'day, Philip et al First, thanks for the prompt reply, Philip. Your idea of checking whether or not the bound of the line Range has changed, without having to worry about what character terminates the line, is absolutely brilliant! So this Macro does exactly what I want. I have named your second Ma...
by adryan
2023-01-21 01:23:46
Forum: Nisus Writer Pro Macros
Topic: Encourage Later Line Break
Replies: 5
Views: 2360

Encourage Later Line Break

G'day, all First, the aim: I want to tighten the kerning at each space in a line of fully justified text until either a fragment of the first word in the following line jumps up to the end of the initial line or there is no point in tightening it further. The word to be split would separate either b...
by adryan
2023-01-20 16:44:17
Forum: Nisus Writer Pro
Topic: bookmark highlight color
Replies: 2
Views: 907

Re: bookmark highlight color

G'day, dougeddy et al

Preferences > Appearance > Colors > Selection > Inactive Selection

Cheers,
Adrian