Search found 1306 matches
- 2010-01-28 01:01:46
- Forum: Nisus Writer Pro Macros
- Topic: portability of (perl) macros
- Replies: 2
- Views: 6770
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...
- 2010-01-27 23:21:55
- Forum: Nisus Writer Pro Macros
- Topic: Styles in new file created by macro
- Replies: 5
- Views: 9581
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 st...
- 2010-01-26 23:26:16
- Forum: Nisus Writer Pro Macros
- Topic: Styles in new file created by macro
- Replies: 5
- Views: 9581
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 ...
- 2010-01-26 21:45:37
- Forum: Nisus Writer Pro
- Topic: No soft hyphen???
- Replies: 34
- Views: 47242
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 &q...
- 2010-01-22 23:23:40
- Forum: Nisus Writer Pro
- Topic: No soft hyphen???
- Replies: 34
- Views: 47242
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
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
- 2010-01-22 23:16:44
- Forum: Nisus Writer Pro
- Topic: No soft hyphen???
- Replies: 34
- Views: 47242
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
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
- 2010-01-10 10:56:22
- Forum: Nisus Writer Pro Macros
- Topic: sorting arrays
- Replies: 5
- Views: 9484
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...
- 2010-01-10 01:01:58
- Forum: Nisus Writer Pro Macros
- Topic: sorting arrays
- Replies: 5
- Views: 9484
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 ...
- 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: 8478
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.)
- 2009-12-17 22:46:27
- Forum: Nisus Writer Templates
- Topic: Numbered Outline/Report Template
- Replies: 12
- Views: 49343
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...
- 2009-12-16 19:15:10
- Forum: Nisus Writer Templates
- Topic: Numbered Outline/Report Template
- Replies: 12
- Views: 49343
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...
- 2009-12-16 18:16:11
- Forum: Nisus Writer Templates
- Topic: Numbered Outline/Report Template
- Replies: 12
- Views: 49343
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.
- 2009-12-10 00:01:09
- Forum: Nisus Writer Pro Macros
- Topic: Aplying bold, italic, normal without using menu
- Replies: 9
- Views: 15625
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...
- 2009-12-09 08:11:11
- Forum: Nisus Writer Pro Macros
- Topic: Aplying bold, italic, normal without using menu
- Replies: 9
- Views: 15625
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 loca...
- 2009-12-09 07:39:45
- Forum: Nisus Writer Pro Macros
- Topic: Aplying bold, italic, normal without using menu
- Replies: 9
- Views: 15625
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...