Search found 561 matches

by adryan
2022-12-17 05:49:47
Forum: Nisus Writer Pro Macros
Topic: Extend Line to Right Line Indent
Replies: 14
Views: 3835

Re: Extend Line to Right Line Indent

G'day, all Here is a Macro that addresses my original problem which was to preserve paragraph formatting (specifically, alignment at the Right Line Indent) when a paragraph is interrupted by an interposed Section. I have named this more comprehensive Macro "Paragraph Straddling Section”. #Nisus...
by adryan
2022-12-17 00:39:48
Forum: Nisus Writer Pro Macros
Topic: Extend Line to Right Line Indent
Replies: 14
Views: 3835

Re: Extend Line to Right Line Indent

G'day, Philip et al Here's my version of Philip's Macro. #NisusMacroProperty Name: Extend Line to Right Line Indent # Code mostly thanks to Philip Spaelti. # Select the line containing the insertion point. $doc = Document.active $loc = $doc.textSelection.location $range = $doc.text.rangeOfLineAtInde...
by adryan
2022-12-16 22:02:49
Forum: Nisus Writer Pro Macros
Topic: Extend Line to Right Line Indent
Replies: 14
Views: 3835

Re: Extend Line to Right Line Indent

G'day, Philip et al No, the problem lies in the definition of $spaceSels. It should just find each space, without the characters either side of it. $spaceSels = $sel.text.find ' ', 'Ea', $sel.range Then it works! I can see why you might have wanted to find those adjacent characters, Philip, but I ma...
by adryan
2022-12-16 19:31:40
Forum: Nisus Writer Pro Macros
Topic: Extend Line to Right Line Indent
Replies: 14
Views: 3835

Re: Extend Line to Right Line Indent

G'day, Philip et al I tried to implement this idea, but I couldn't get the syntax to work for me, so I’m grateful for your latest contribution, Philip. It seems to work except for one small problem. In addition to loosening the kerning at spaces, it loosens the kerning between the first and second c...
by adryan
2022-12-16 06:01:35
Forum: Nisus Writer Pro Macros
Topic: Extend Line to Right Line Indent
Replies: 14
Views: 3835

Re: Extend Line to Right Line Indent

G'day, all A different approach! The problem lies with overinclusive kerning. Rather than adjusting the kerning at multiple locations at once, we need to do it one location at a time. Loosen the kerning at the first space in the line; if that's not enough, leave it loosened there and loosen also at ...
by adryan
2022-12-16 05:27:22
Forum: Nisus Writer Pro Macros
Topic: Extend Line to Right Line Indent
Replies: 14
Views: 3835

Re: Extend Line to Right Line Indent

G'day, all Pursuing the idea in my previous posting, I see that the Macro Language contains a .tailIndent Attribute and a Set Tail Indent command. It may be that one could use the former to retrieve the current setting of the Right Line Indent and the latter to progressively shift it leftwards until...
by adryan
2022-12-15 20:34:00
Forum: Nisus Writer Pro Macros
Topic: Extend Line to Right Line Indent
Replies: 14
Views: 3835

Re: Extend Line to Right Line Indent

G’day, all Maybe a better approach would be to find the amount of trailing white space (in points, presumably) and then distribute that among appropriate locations (eg, spaces) in the line. Differential adjustments may need to be made, but the discrepancies may not be obvious to the reader. Cheers, ...
by adryan
2022-12-15 20:19:10
Forum: Nisus Writer Pro Macros
Topic: Extend Line to Right Line Indent
Replies: 14
Views: 3835

Re: Extend Line to Right Line Indent

G'day, Philip et al I've had a bit of a closer look at this. It is immaterial whether the line ends with a period or not. The discrepancy just happened to show in a line I had that ended with a period. The reason we can still end up with a bit of white space at the end of a line is that progressive ...
by adryan
2022-12-15 16:47:26
Forum: Nisus Writer Pro Macros
Topic: Extend Line to Right Line Indent
Replies: 14
Views: 3835

Re: Extend Line to Right Line Indent

G'day, Philip et al That was quick! Thanks, Philip. Yes, the second version is better and looks like it does what I want. However, if the line ends on a period, the period may not end up at the Right Line Indent. Your "different kludge" wouldn't work here because, if I understand it correc...
by adryan
2022-12-15 15:34:24
Forum: Nisus Writer Pro Macros
Topic: Extend Line to Right Line Indent
Replies: 14
Views: 3835

Extend Line to Right Line Indent

G'day, all I sometimes want to interrupt the flow of text in a document by inserting a new Section with different properties. But I want the text succeeding the Section to continue the flow of the text preceding the Section. Problems arise when the new Section splits an indented paragraph into two p...
by adryan
2022-12-12 16:16:00
Forum: Nisus Writer Pro
Topic: Tutor/help
Replies: 7
Views: 1510

Re: Tutor/help

G'day, all I'm afraid I don't have time to go into this in detail just now, but it makes a difference if you have a Style's "Based on" setting set to "None" rather than something else (like "Normal" perhaps). Try this with a Character Style and apply it to a whole word ...
by adryan
2022-12-12 06:47:16
Forum: Nisus Writer Pro
Topic: Tutor/help
Replies: 7
Views: 1510

Re: Tutor/help

G'day, Phil et al Without seeing a step-by-step account of what you are doing, it's hard to know why things aren't working for you. Here is an absolutely basic and straightforward procedure for you to try. It's not quite the way I would normally do things myself, but I've done it this way for pedago...
by adryan
2022-12-09 03:26:58
Forum: Nisus Writer Pro Macros
Topic: Keyboard shortcuts not visible on Macro Menu
Replies: 7
Views: 2331

Re: Keyboard shortcuts not visible on Macro Menu

G'day, all And now, I've just seen that a keyboard shortcut associated with a Service (viz, Look Up in Dictionary) suddenly stopped working. Normal operation resumed after an NWP restart. The shortcut remained visible in the Services menu the whole time. However, the fault may lie deeper in the oper...
by adryan
2022-12-08 20:31:29
Forum: Nisus Writer Pro Macros
Topic: Keyboard shortcuts not visible on Macro Menu
Replies: 7
Views: 2331

Re: Keyboard shortcuts not visible on Macro Menu

G'day, WF, Philip et al I've looked at this again. NWP shows keyboard shortcut in Macros menu. I quit NWP and restarted. No documents open. Keyboard shortcut now does not show in Macros menu. Create a new blank document. Keyboard shortcut still does not show in Macros menu. Enter a single character ...
by adryan
2022-12-08 19:52:04
Forum: Nisus Writer Pro Macros
Topic: Keyboard shortcuts not visible on Macro Menu
Replies: 7
Views: 2331

Re: Keyboard shortcuts not visible on Macro Menu

G'day, WF et al

It works for me in NWP 3.3.

Cheers,
Adrian