Search found 1113 matches

by phspaelti
2020-03-15 23:37:26
Forum: Nisus Writer Pro
Topic: Diacritics in Greek
Replies: 5
Views: 1384

Re: Diacritics in Greek

You can do it through two different approaches: 1. Via the keyboard This is the same method that you can use anywhere on the mac. Switch to a keyboard that is dedicated for the task, either one provided by Apple, or one made yourself with a program like Ukelele . This would be the preferred method, ...
by phspaelti
2020-03-03 08:10:08
Forum: Nisus Writer Pro
Topic: Footnote paragraph style
Replies: 3
Views: 1287

Re: Footnote paragraph style

I'm not really a pro-user of footnotes, but I think you might be doing things backwards. The footnote style is a not a style intended for paragraph formatting, it's a special style to control the aspects of footnotes. I just looked, and I notice that since the footnote style is based on another styl...
by phspaelti
2020-02-23 16:47:18
Forum: Nisus Writer Pro Macros
Topic: Variable Typing
Replies: 5
Views: 3916

Re: Variable Typing

I try not to create type mismatches, because I consider them an error even if NWP doesn't :-) That is indeed the approach one should take, even if a language (like Nisus macro language) is "loosely" typed. In that sense you should ask yourself what happens when I add "George" and 3? As any first gr...
by phspaelti
2020-02-20 09:13:11
Forum: Nisus Writer Pro
Topic: Numbering style queries
Replies: 6
Views: 2415

Re: Numbering style queries

2. for the first level, I would like the style to be so that the number is not in bold, but the text is in bold. But this does not seem possible. This can also be achieved with a style, but this time a character style. Call it "First Level Number" and give it the attribute "Unbold". It seems to do ...
by phspaelti
2020-01-31 19:07:20
Forum: Nisus Writer Pro Macros
Topic: Join files macro - headers and footers
Replies: 4
Views: 2341

Re: Join files macro - headers and footers

Having suggested the above "hack", it must be said that this approach is likely to be brittle. As far as I can make out, there is no way to know which header text object belongs to which section break, especially if some of the section breaks do not have the "different headers" on. A setting for "di...
by phspaelti
2020-01-31 18:41:00
Forum: Nisus Writer Pro Macros
Topic: Join files macro - headers and footers
Replies: 4
Views: 2341

Re: Join files macro - headers and footers

While I sincerely hope that Nisus adds a "Section" object (and maybe a "Header/Footer" object, and/or a ".allHeaders/Footers" property to the Document object), I have to say it is possible to copy headers from one document to the other. Ideally the Section Object would allow for control of margins, ...
by phspaelti
2020-01-18 07:56:32
Forum: Nisus Writer Pro
Topic: NWP 3.0.4 How to assign menu key to Insert > Hyperlink > Remove Link
Replies: 3
Views: 1646

Re: NWP 3.0.4 How to assign menu key to Insert > Hyperlink > Remove Link

Screen Shot 2020-01-19 at 24.54.28 .png
Screen Shot 2020-01-19 at 24.54.28 .png (160.96 KiB) Viewed 1642 times
by phspaelti
2019-12-29 18:12:50
Forum: Nisus Writer Pro Macros
Topic: Foreach Command and Variable Scope
Replies: 2
Views: 2159

Re: Foreach Command and Variable Scope

You've got that exactly right. The iterator variable of the foreach loop is a local copy. So changing it does not persist beyond the loop. One way to achieve what you want is to use the index to access the original. Note that the foreach loop has a variant that allows you to get the index of the cur...
by phspaelti
2019-12-27 19:34:43
Forum: Nisus Writer Pro Macros
Topic: Boolean Operation Evaluation
Replies: 3
Views: 3214

Re: Boolean Operation Evaluation

Hello Bob, Have you tried them? :wink: The point you bring up is moot, since Nisus does not allow you to combine different operators in one expression. The work around that it does allow is for you to use parentheses. So you will have to specify the operator precedence yourself using parentheses any...
by phspaelti
2019-12-27 16:46:03
Forum: Nisus Writer Pro
Topic: How to prevent text to be modified
Replies: 14
Views: 4553

Re: How to prevent text to be modified

(2) Create a Macro called "Select All Except". It has two lines:– Find All @Text<(?:.|\n|\f)+>, 'Eau' Invert Selection In the first line, you need to apply the “Skip Me” Style to the string between “<“ and ”>”, but don’t include “<“ or ”>”. Now save the Macro. In order to avoid the need to mess aro...
by phspaelti
2019-12-27 16:28:04
Forum: Nisus Writer Pro
Topic: How to prevent text to be modified
Replies: 14
Views: 4553

Re: How to prevent text to be modified

At the very least, I would like to have the option to set the scope to “In Selection” using a modifier key. So a macro to do this would be: $find = Read Find Expression Find $find, '!*s' This uses the '*' to preserve all other options. And a macro to reset to full document search would be: $find = ...
by phspaelti
2019-12-27 16:05:01
Forum: Nisus Writer Pro
Topic: How to prevent text to be modified
Replies: 14
Views: 4553

Re: How to prevent text to be modified

I know of no inbuilt way to reset all the Find & Replace parameters to some default set. From the macro reference (under Find and Replace options):     !    Copy text/options into the Find & Replace dialog instead of doing an actual find/replace. So you can write a one line macro like this: Find ''...
by phspaelti
2019-12-23 10:09:53
Forum: Nisus Writer Pro
Topic: Disable "Center the Cursor"
Replies: 2
Views: 1785

Re: Disable "Center the Cursor"

Make sure View > Typewriter Scrolling is unchecked.
by phspaelti
2019-12-23 09:54:23
Forum: Nisus Writer Pro Macros
Topic: Why does the Split object surround everything with quotation marks?
Replies: 4
Views: 2796

Re: Why does the Split object surround everything with quotation marks?

And one more point: You mention "valid CSV". If the stuff you are trying to split into fields is CSV you might note that the .split command will not give you the correct result in the general case, since quoted fields will be used to protect commas within fields. But I'm sure you know that already. ...
by phspaelti
2019-12-23 09:24:37
Forum: Nisus Writer Pro Macros
Topic: Why does the Split object surround everything with quotation marks?
Replies: 4
Views: 2796

Re: Why does the Split object surround everything with quotation marks?

Now let's address the efficiency issue. Your current code keeps switching back and forth between two documents using the GUI. It also collects the paragraph info one paragraph at a time. The much more efficient method is to locate the paragraphs in $TempDoc first , then assemble the info, then switc...