Search found 992 matches

by phspaelti
2010-01-28 01:26:12
Forum: Nisus Writer Pro Macros
Topic: Styles in new file created by macro
Replies: 5
Views: 4744

Re: Styles in new file created by macro

I see what you are saying. But it happens in saved macros too, if the text used to create the new document comes from a string as opposed to text. So the following macro shows the problem if even it is saved and run from the menu: $doc = Document.active $sel = $doc.selectedSubstrings Document.newWit...
by phspaelti
2010-01-28 01:01:46
Forum: Nisus Writer Pro Macros
Topic: portability of (perl) macros
Replies: 2
Views: 3538

portability of (perl) macros

I am trying to write a macro to transform a file. Since I would like this macro to have some degree of portability (i.e. be usable independent of Nisus Writer) I have chosen to write the macro in perl. This works fine for me since perl macros run in Nisus as well. However the following issues have c...
by phspaelti
2010-01-27 23:21:55
Forum: Nisus Writer Pro Macros
Topic: Styles in new file created by macro
Replies: 5
Views: 4744

Re: Styles in new file created by macro

But what is your $newDoc? Well you can try it like this: Document.newWithText “Hello World” So Nisus will create a new document containing the the text "Hello World". The style sheet for that document (for me) looks like this with the drawer open. As you can see on the left there are 3 styles, and ...
by phspaelti
2010-01-26 23:26:16
Forum: Nisus Writer Pro Macros
Topic: Styles in new file created by macro
Replies: 5
Views: 4744

Styles in new file created by macro

In a macro I am creating a new file using the following code Document.newWithText $newDoc When the macro finishes it gives me an untitled file. The drawer shows a complete set of styles, which are clearly the styles from my "Nisus New File". But when I switch to the style sheet, there are only 3 sty...
by phspaelti
2010-01-26 21:45:37
Forum: Nisus Writer Pro
Topic: No soft hyphen???
Replies: 34
Views: 21494

Re: No soft hyphen???

Well the one advantage that a macro has over HE's keyboard solution is that it can make sure that hyphenation is "on". Unfortunately it seems that the macro posted in the depository does not do that. (It just has a single line "Type…"). Here is a macro that does: if Menu State "Allow Hyphenation" el...
by phspaelti
2010-01-22 23:23:40
Forum: Nisus Writer Pro
Topic: No soft hyphen???
Replies: 34
Views: 21494

Re: No soft hyphen???

I figured it out.
In order to make the soft hyphen visible one needs to choose "Allow Hyphenation" from the "View" menu. If "Allow Hyphenation" is unchecked the soft-hyphen allows breaking of words, but itself stays invisible. :?

Philip
by phspaelti
2010-01-22 23:16:44
Forum: Nisus Writer Pro
Topic: No soft hyphen???
Replies: 34
Views: 21494

Re: No soft hyphen???

I have pretty much the same problem as Geoff. I get a break but no visible hyphen, when I insert U+00AD.
However the file that Elbrecht posted works fine. And if I add more soft-hyphens to that file they work like his. So I can't quite figure what is going on.

Philip
by phspaelti
2010-01-10 10:56:22
Forum: Nisus Writer Pro Macros
Topic: sorting arrays
Replies: 5
Views: 4772

Re: sorting arrays

Thank you Kino. I had completely disregarded the language setting, since it didn't appear relevant. But now it makes sense. I can now also understand the following from the macro reference on the 'n' sort option: In this mode logically equivalent character sequences are considered equal. For example...
by phspaelti
2010-01-10 01:01:58
Forum: Nisus Writer Pro Macros
Topic: sorting arrays
Replies: 5
Views: 4772

sorting arrays

I've been having trouble sorting arrays. It seems that the sort order for arrays is different from the sort that can be used in documents (from the Menu). Is that correct? :( The Macro reference mentions sort "options" and refers one to "compare". There it mentions the following possibilities: n, l,...
by phspaelti
2009-12-22 01:13:42
Forum: Nisus Writer Pro
Topic: Double click selecting super- or sub- script as part of word
Replies: 6
Views: 3352

Re: Double click selecting super- or sub- script as part of word

Try using a character style for the subscripts. If you do it that way you should notice a change. And as a bonus you can easily redefine the look of the subscripts (e.g. you can reduce the baseline without making the typesize so much smaller.)
by phspaelti
2009-12-17 22:46:27
Forum: Nisus Writer Templates
Topic: Numbered Outline/Report Template
Replies: 12
Views: 22061

Re: Numbered Outline/Report Template

Hi Geoff, there is actually one more typical feature of a true outliner that is missing here. That is demotion/promotion of headings etc. In a true outliner you could choose to move a heading of level 2 (and its attached subtext) to heading level 1, with a simple "promote" command. In fact the "Incr...
by phspaelti
2009-12-16 19:15:10
Forum: Nisus Writer Templates
Topic: Numbered Outline/Report Template
Replies: 12
Views: 22061

Re: Numbered Outline/Report Template

1.2.1. Body Print Text When it is time to print, I use a Character Style, Body Print Text, to change from Verdana to something a normal person can read on the page — in my case, I use Adobe Caslon. You might prefer something different. The quick way to apply it is to place your cursor in the text i...
by phspaelti
2009-12-16 18:16:11
Forum: Nisus Writer Templates
Topic: Numbered Outline/Report Template
Replies: 12
Views: 22061

Re: Numbered Outline/Report Template

1.3. Moving heads and text around The text follows on from the heads when you are typing, but is not attached to the heads as it is in MORE. Geoff, have you ever tried dragging things around in the Navigator pane? If you did it that way you would find that the text is indeed attached to the heads.
by phspaelti
2009-12-10 00:01:09
Forum: Nisus Writer Pro Macros
Topic: Aplying bold, italic, normal without using menu
Replies: 9
Views: 7363

Re: Aplying bold, italic, normal without using menu

Also, some of the translatable phrases take an unexpected form, eg: instead of finding "Red" one must use "_Red". This last peculiarity should be removed, I'll file it as an issue for fixing, but it's something to be aware of. Indeed, I just had a look a this file. Is there some kind of logic behin...
by phspaelti
2009-12-09 08:11:11
Forum: Nisus Writer Pro Macros
Topic: Aplying bold, italic, normal without using menu
Replies: 9
Views: 7363

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...