Search found 1008 matches

by phspaelti
2009-12-09 08:11:11
Forum: Nisus Writer Pro Macros
Topic: Aplying bold, italic, normal without using menu
Replies: 9
Views: 7584

Re: Aplying bold, italic, normal without using menu

I think macros should refer to menu commands as they are in English, no matter what localization you are using. Nisus might then provide a table with English commands and their localized names. Do you means "…should be able to refer to …?" The ability to refer to menu commands in the local language...
by phspaelti
2009-12-09 07:39:45
Forum: Nisus Writer Pro Macros
Topic: Aplying bold, italic, normal without using menu
Replies: 9
Views: 7584

Re: Aplying bold, italic, normal without using menu

Hi again. Here is an example of what I meant by trying to write the macro to Nisus' strengths. Instead of searching for each letter one at a time and then doing something, this macro looks at the letters one by one and then applies what is needed. This macro works by first defining a hash, which ass...
by phspaelti
2009-12-08 08:24:33
Forum: Nisus Writer Pro Macros
Topic: Aplying bold, italic, normal without using menu
Replies: 9
Views: 7584

Re: Aplying bold, italic, normal without using menu

At some point it might be good to know what you are trying to do with your macro. I generally try to write my macros so they work with the kinds of things that Nisus can do easily. Previously Henry suggested using Find and Replace to apply the formatting directly. Note that when you do it that way y...
by phspaelti
2009-12-07 01:21:24
Forum: Nisus Writer Pro Macros
Topic: how to separate tasks?
Replies: 9
Views: 6899

Re: how to separate tasks?

Hi Pat, you can prevent the problem if you make the code conditional on the actual finding of the text. You can modify your code like this: If Find all 'a', 'Eam' $color = Color.newWithHexTriplet 'FFCC00' Set Text Color $color end Note that I put an "if" on the line with the find, and and "end" afte...
by phspaelti
2009-10-28 08:42:12
Forum: Nisus Writer Pro
Topic: Find/Replace Strings don't work!
Replies: 6
Views: 3283

Re: Find/Replace Strings don't work!

Matze, why are you placing parentheses around the "(one)" etc. ? You don't need those. Just make it ^(one|two|three)(\n\n)(four) But since you don't want to touch the (one|two|three) and (four) you could also use "look ahead" and "look behind" (in the select menu). Then you can rewrite the whole thi...
by phspaelti
2009-10-27 07:20:43
Forum: Nisus Writer Pro Macros
Topic: Macro for font convert.
Replies: 6
Views: 6920

Re: Macro for font convert.

No, you'll need to write the find expression exactly as Martin said with '.+' etc., and then you need to apply the actual font to the relevant bits of the expression. May I however suggest a different approach to this problem? Try going to the macro repository and download Kino's "Select by font" ma...
by phspaelti
2009-09-04 09:18:58
Forum: Nisus Writer Pro
Topic: Problem converting footnotes to endnotes
Replies: 4
Views: 3503

Re: Problem converting footnotes to endnotes

On second thought I realize something. You might have a file that has no endnote style. In that case you need to add the endnote style. (The easiest way to do that that I can see, is to copy it out of some other document.)
by phspaelti
2009-09-04 09:09:21
Forum: Nisus Writer Pro
Topic: Problem converting footnotes to endnotes
Replies: 4
Views: 3503

Re: Problem converting footnotes to endnotes

But you do also see the other form "Endnote", don't you?
Just select that, and then the footnote becomes an endnote.
by phspaelti
2009-08-11 16:40:33
Forum: Nisus Writer Pro Macros
Topic: turntable
Replies: 7
Views: 8467

Re: turntable

Here is my version of such a macro that *does* work for tables with merged cells. # Macro Swap Rows and Columns with Merged Cells # version 1.0 # written 2009.3.16 by p. spaelti # # This macro has been inspired by and benefitted from code written by Kino. # # # The following macro transforms a table...
by phspaelti
2009-07-14 08:05:12
Forum: Nisus Writer Pro
Topic: Feature request: split screen/window
Replies: 12
Views: 10633

Re: Feature request: split screen/window

Just note one thing though. The macro creates a copy of the document. As you edit the original the two windows will diverge. So this is quite different from a split screen.
by phspaelti
2009-06-01 05:10:51
Forum: Nisus Writer Pro Macros
Topic: How to apply color properties
Replies: 3
Views: 4821

Re: How to apply color properties

The Color.black command is a command which returns a constant. The result is a rgb value (0,0,0). You can use this in commands like the "Set Text Color" command. That command assigns the color value to the current selection. In your case, I am guessing, the $value is not the current selection, but m...
by phspaelti
2009-05-28 22:40:00
Forum: Nisus Writer Pro
Topic: drag-drop-type bug?
Replies: 6
Views: 4345

Re: drag-drop-type bug?

I can definitey confirm the bug. I have at times edited files where the drag-and-drop operation consistently results in a "freeze". The cursor disappears and trying to type results in a beep. One has to use the mouse and click at a location to re-obtain a cursor and continue work. Having said that I...
by phspaelti
2009-04-25 07:05:32
Forum: Nisus Writer Pro Macros
Topic: Delete and backspace key
Replies: 12
Views: 11280

Re: Delete and backspace key

…and finally if you use the combining diacritic (U+0300) instead you can actually write the whole thing like this:

Code: Select all

Find and Replace '(?<=[aeiou])[\’\'´`]+', '̀', 'EsSa'
(for what it's worth…)
by phspaelti
2009-04-16 07:35:06
Forum: Nisus Writer Pro Macros
Topic: Deleting the line you are in
Replies: 9
Views: 8772

Re: Deleting the line you are in

Yes, this is flaky and confusing. White space characters (or something looking such) between note texts are treated as \n when "One Note per Line" is checked in Note Styles and as \t when it is not checked. And those at the end of each page are treated as \f . Aha. Explained that way it all makes s...
by phspaelti
2009-04-16 01:56:42
Forum: Nisus Writer Pro Macros
Topic: Deleting the line you are in
Replies: 9
Views: 8772

Re: Deleting the line you are in

Kino, thanks for your reply. I must say that I hardly ever use footnotes, so I really don't think about them. For the same reason I have not usually read your and Nobumi's comments on these matters very carefully However after reading about them, and then trying some tests of my own, I have to say t...