Search found 968 matches

by phspaelti
2009-06-01 05:10:51
Forum: Nisus Writer Pro Macros
Topic: How to apply color properties
Replies: 3
Views: 4024

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: 3894

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: 9397

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: 7842

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: 7842

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...
by phspaelti
2009-04-15 18:49:13
Forum: Nisus Writer Pro Macros
Topic: Deleting the line you are in
Replies: 9
Views: 7842

Re: Deleting the line you are in

@Groucho: But js wanted to start from a selection that he already had. So your method doesn't really apply here. It did however give me an idea for a much simpler approach than Kino's. How about the following: Find and Replace '.+', '_Line_To_Be_Deleted_', 'Esa' Find and Replace '^.*_Line_To_Be_Dele...
by phspaelti
2009-04-09 18:19:09
Forum: Nisus Writer Pro
Topic: Nisus and MobileMe
Replies: 3
Views: 2388

Re: Nisus and MobileMe

martin wrote:
As for the forum's list tag, it does work, but the syntax is a little awkward. For a bulleted list you should use:

And a numbered list:
So the "1" (or some other number) was the trick. Thanks, I got it to work now.
by phspaelti
2009-04-09 06:06:21
Forum: Nisus Writer Pro
Topic: Nisus and MobileMe
Replies: 3
Views: 2388

Nisus and MobileMe

As a MobileMe user I recently began using the sync "Preferences" setting. Little did I know that this would not only synch my Mac's system preferences, but also the preferences for applications. The result is that if I make changes to the "Nisus New File" on one machine the same changes will later s...
by phspaelti
2009-04-06 18:17:48
Forum: Nisus Writer Pro Macros
Topic: I think I found a bug
Replies: 8
Views: 6804

Re: I think I found a bug

Here's is where I think the problem lies. When I open the macro and check the color of the find string, for "normal" colors the format menu will show the correct color checked. So if the find expression has the text color "Red" then "Red" will be checked. But with "Gray" even if apply and save "Gray...
by phspaelti
2009-04-06 17:21:11
Forum: Nisus Writer Pro Macros
Topic: I think I found a bug
Replies: 8
Views: 6804

Re: I think I found a bug

I can confirm Lou's problem, and whatever the value of Martin's remedy, it isn't applicable here. Here are the steps for reproducing the problem. Let's first try a case that works: 1. Open the find box 2. Enter '.+' as the find expression 3. Apply a text color (let's use "Red") 4. Test the find --->...
by phspaelti
2009-04-05 09:01:03
Forum: Nisus Writer Pro
Topic: Fixed line spacing is hiding in-line equations.
Replies: 5
Views: 4907

Re: Fixed line spacing is hiding in-line equations.

I don't use MathEq myself, but the equation is basically a graphic, isn't it? And the graphic is inline, isn't it? so you are trying to put a graphic that is too large on a line of fixed height. Obviously it isn't going to fit so what do you want Nisus to do? Overwrite the line above? Something is g...
by phspaelti
2009-03-30 07:34:21
Forum: Nisus Writer Pro Macros
Topic: Sort lines and kill duplicates
Replies: 10
Views: 8835

Re: Sort lines and kill duplicates

Kino wrote: By making plain text the text object.

Code: Select all

…
	$textcopy = Cast to String $sel.subtext
…
In the non-styled-text mode, it runs 100 times faster (!) on my test file of 22000 lines.
So that does it.
That's a nice trick. It works like a charn. Thanks!
by phspaelti
2009-03-29 19:40:33
Forum: Nisus Writer Pro Macros
Topic: Sort lines and kill duplicates
Replies: 10
Views: 8835

Re: Sort lines and kill duplicates

You can make it far faster if you don't take care of style attributes at all. Actually I was wondering about this too. But what part of the macro takes care of the style attributes? The slow part of the macro is the loop which assembles the $output string. Timing individual bits of the macro, the "...
by phspaelti
2009-03-29 19:08:31
Forum: Nisus Writer Pro Macros
Topic: Sort lines and kill duplicates
Replies: 10
Views: 8835

Re: Sort lines and kill duplicates

Err... if we were competing in a car race... Actually my point is that if we were competing we (apparently) shouldn't bother with all this hash business. The "bullet count" version I posted earlier is much faster. Your version timed to 292 seconds on my machine on the 6000 line file. The "bullet co...
by phspaelti
2009-03-29 09:49:50
Forum: Nisus Writer Pro Macros
Topic: Sort lines and kill duplicates
Replies: 10
Views: 8835

Re: Sort lines and kill duplicates

Now I see it. Of course the keys of the hash are an array. So they can be sorted.
You're version does have some improvements over the version that I was experimenting with. But testing it on a file with a bit less than 6000 lines, this approach is markedly slower than the Find and Replace version.