Search found 1300 matches

by phspaelti
2022-09-29 20:29:27
Forum: Nisus Writer Pro
Topic: Closing Quotation Marks
Replies: 6
Views: 1306

Re: Closing Quotation Marks

Hello Ulrich,
Here is a macro you can try that should insert joiners in front of such quotes. Note that the macro is hard-coded to work for codepoint \x{201C} which is the closing quote used in your sample. If your document includes other close quote characters it will need to be adjusted.
by phspaelti
2022-09-19 00:11:00
Forum: Nisus Writer Pro
Topic: Search & replace inside indexing codes?
Replies: 9
Views: 1569

Re: Search & replace inside indexing codes?

Okay, I gave it another try. The result is appended. I also added input prompts to specify the index topics. But as I was trying to say before, for this to work "as expected" will depend on the user. Basically it always affects only exact matches of topic along with all subtopics . So if y...
by phspaelti
2022-09-18 20:35:17
Forum: Nisus Writer Pro
Topic: Search & replace inside indexing codes?
Replies: 9
Views: 1569

Re: Search & replace inside indexing codes?

Hello Francisco, Sorry about that. Of course you are right, my macro would not work correctly for indexes with sub-topics. I would have to write it in a much more complicated manner. And at that point one would have to start to make decisions about what kind of cases to cover and how. NWP allows for...
by phspaelti
2022-09-18 02:45:24
Forum: Nisus Writer Pro
Topic: Search & replace inside indexing codes?
Replies: 9
Views: 1569

Re: Search & replace inside indexing codes?

Hello Francisco, It's been a while that I have tried working with Indexes. While Nisus allows you to index using PowerFind I think this only means using Find to find text in the document to index. It doesn't allow for searching the index topics. For that you seem to need a macro. I am adding here a ...
by phspaelti
2022-08-10 06:11:32
Forum: Nisus Writer Pro
Topic: Is this TOC flavor possible to achieve?
Replies: 6
Views: 1468

Re: Is this TOC flavor possible to achieve?

To Amontillado's point. Once you have the TOC entries on a line, rebuilding the TOC using the "page numbers only" option will not work correctly.
Instead you should always rebuild using the "Update all content" option and then reformat. Which is why you should try the macro.
by phspaelti
2022-08-10 06:05:54
Forum: Nisus Writer Pro
Topic: Is this TOC flavor possible to achieve?
Replies: 6
Views: 1468

Re: Is this TOC flavor possible to achieve?

Basically you have to reformat the lines after you insert the TOC. If you refresh the TOC at any time after that the TOC will be restored to the original version with each entry on it's own line. The most convenient way to do this reformatting is to use a macro. If you have this as a macro you can r...
by phspaelti
2022-08-08 18:44:16
Forum: Nisus Writer Pro Macros
Topic: Replace character style
Replies: 16
Views: 5803

Re: Replace character style

The search command for these in Powerfind Pro, I think is: \f If I do "find/replace" those with (say) xx$xx (anything unique) it removes the sections. Do a global set footer height and then do the reverse replacing the xx$xx with section breaks that seems to work without messing up the fo...
by phspaelti
2022-08-07 19:03:17
Forum: Nisus Writer Pro Macros
Topic: Replace character style
Replies: 16
Views: 5803

Re: Replace character style

Tacitus wrote: 2022-08-07 09:06:00 Sorry to push this but there is one other thing.

Is it possible to have a macro which sets all footers at (say) 0.5 inch?
See answer here
by phspaelti
2022-08-07 19:01:07
Forum: Nisus Writer Pro Macros
Topic: Controlling Margins
Replies: 0
Views: 2607

Controlling Margins

Froom another thread : Sorry to push this but there is one other thing. Is it possible to have a macro which sets all footers at (say) 0.5 inch? When importing a Scriv doc, for some reason it sets the footer (but not the header) within each section at different heights. It must be something in Scriv...
by phspaelti
2022-08-07 07:50:03
Forum: Nisus Writer Pro Macros
Topic: Replace character style
Replies: 16
Views: 5803

Re: Replace character style

Phillip's suggestion operates on the whole file, but I only need it to operate on the footnotes. $doc = Document.active if Find All $doc.styleWithName('Super'), '', '-an' Character Style:Super2 end If you prefer something that only works in the selection: $doc = Document.active if Find All in Selec...
by phspaelti
2022-08-07 07:43:23
Forum: Nisus Writer Pro Macros
Topic: Replace character style
Replies: 16
Views: 5803

Re: Replace character style

By the way; one should also point out that these macro solutions are really only necessary if you want this as part of some more complex macro. If you just want to change the style you can just use the menu command Select All in Style . Explicitly: Place the cursor in a selection with the relevant s...
by phspaelti
2022-08-07 07:07:08
Forum: Nisus Writer Pro Macros
Topic: Replace character style
Replies: 16
Views: 5803

Re: Replace character style

Personally to write a macro that replaces one style with another, I prefer to write it like this: $doc = Document.active if Find All $doc.styleWithName('Super') Character Style:Super2 end This uses the find by style feature, and it side steps the fickle nature of styled find and replace. PS: Note th...
by phspaelti
2022-07-15 08:26:42
Forum: Nisus Writer Pro
Topic: finding invisible hyperlinks
Replies: 3
Views: 1211

Re: finding invisible hyperlinks

And here is a macro you can try:
by phspaelti
2022-07-15 00:06:56
Forum: Nisus Writer Pro Macros
Topic: Change identical style in several files
Replies: 16
Views: 4811

Re: Change identical style in several files

Oh, and the alternative, if you are going to open the style document by hand is to use this: $styleDoc = Document.withDisplayName "test.rtf" So in that case your macro would be simply: $doc = Document.active $styleDoc = Document.withDisplayName "test.rtf" $doc.addStyles $styleDoc...
by phspaelti
2022-07-14 23:43:03
Forum: Nisus Writer Pro Macros
Topic: Change identical style in several files
Replies: 16
Views: 4811

Re: Change identical style in several files

Hi js, Yes. The line: $styleDoc = "/Applications/nisus writer settings/Style Library/test.rtf" doesn't open your style file. Rather it creates a text object (which contains the path to your style file). So change your code as follows: $doc = Document.active $styleFilePath = "/Applicat...