Search found 984 matches

by phspaelti
2018-11-19 17:35:01
Forum: Nisus Writer Pro
Topic: List formatting
Replies: 14
Views: 6942

Re: List formatting

And a short addition. To make inserting a Heading style more convenient one can use a macro like the following to insert the Heading style. Just attach the macro to the preferred shortcut for the heading style. Type Newline # Optional convenience Paragraph Style:Heading 1 if Find '^.+\t', 'Eb' Chara...
by phspaelti
2018-11-19 16:28:41
Forum: Nisus Writer Pro
Topic: List formatting
Replies: 14
Views: 6942

Re: List formatting

One possibility is that of using a character style to remove formatting of this kind. While the following solution is a kludge it can be made to work. While a character style cannot directly be given a feature "Unbold" or "No Underline", the trick is to first define a "dummy" character style with al...
by phspaelti
2018-11-19 09:10:13
Forum: Nisus Writer Pro
Topic: Two Language Fonts in Styles?
Replies: 4
Views: 2049

Re: Two Language Fonts in Styles?

Actually the keyboard is associated with the language attribute. You should go to Preferences > Language , then choose the language. Then you can set dictionaries, and preferred keyboard settings as appropriate for the language. Font behavior can also be set there. So depending on how you work just ...
by phspaelti
2018-11-19 08:12:13
Forum: Nisus Writer Pro
Topic: Two Language Fonts in Styles?
Replies: 4
Views: 2049

Re: Two Language Fonts in Styles?

There is no way to tell a single style that "these characters should be in font A and those characters in font B". But (what I think) is the better way to handle such situations is to create "language" character styles. So in your case you could create a character style "Hebrew", and attach the lang...
by phspaelti
2018-11-18 03:53:34
Forum: Nisus Writer Pro
Topic: Text colors change in Nisus 2 and 3
Replies: 10
Views: 4437

Re: Text colors change in Nisus 2 and 3

xiamenese wrote:
2018-11-18 01:02:16
Are the rest of you using 10.14(.1)? Is it something 10.14 has brought in?
Indeed. I am currently testing this on 10.14.1.
by phspaelti
2018-11-17 20:41:07
Forum: Nisus Writer Pro
Topic: Hotkeys for paragraph styles
Replies: 9
Views: 3280

Re: Hotkeys for paragraph styles

DoctorDan wrote:
2018-11-17 20:38:13
I think the documentation and the menus would be clearer if they said “cmd-h cmd-3” because that is really the way the system sees it and it’s more instructive to the user
Well no. That is not how it works. That makes it look like you have to press twice.
by phspaelti
2018-11-17 20:39:21
Forum: Nisus Writer Pro
Topic: Hotkeys for paragraph styles
Replies: 9
Views: 3280

Re: Hotkeys for paragraph styles

Thanks, if that’s in the manual, I couldn’t find it. Kind of critical to know however. You're referring specifically to the need to hold the command key while typing the full shortcut? I just checked in the manual, and as far as I can see, it seems you are right. Well that manual is quite a work of...
by phspaelti
2018-11-17 20:19:00
Forum: Nisus Writer Pro
Topic: Text colors change in Nisus 2 and 3
Replies: 10
Views: 4437

Re: Text colors change in Nisus 2 and 3

I hadn't really paid attention to this before, but I can confirm what Xuanying is saying: If I insert the text color Red from the menu I do not get (255, 0, 0) in NWP 3.0. Instead I get (251, 0 , 6). That's kind of a drag. One notable clue is that Kino's "Select by Attribute" macro seems unable to "...
by phspaelti
2018-11-17 16:22:02
Forum: Nisus Writer Pro
Topic: Hotkeys for paragraph styles
Replies: 9
Views: 3280

Re: Hotkeys for paragraph styles

Hi Dan, the "hotkeys" you are referring to are also known as multi-key shortcuts. You will need to keep holding the command key while you type them. So press and hold <command>, and type H-3 before you let go. Nisus allows you to define shortcuts of up to 3 keys in length. [Having said that, my shor...
by phspaelti
2018-11-14 06:26:59
Forum: Nisus Writer Pro Macros
Topic: Selecting paragraph and formatting
Replies: 6
Views: 2781

Re: Selecting paragraph and formatting

Since we're on the topic, I decided to try an experiment. I tried to use applescript to write a script to highlight every paragraph where the second letter was an "i". Not a particularly sensible task, but just something to test. I ran it on a list of words with about 1,500 paragraphs. The applescri...
by phspaelti
2018-11-14 04:48:27
Forum: Nisus Writer Pro Macros
Topic: Selecting paragraph and formatting
Replies: 6
Views: 2781

Re: Selecting paragraph and formatting

You mean a ".nwm" file? A macro is just another "menu command" in Nisus. So, yes, of course you can run it from an applescript. In fact to do anything complex in Nisus, that would be my recommendation: write a Nisus macro, then run it from the applescript with a Do Menu Macro with macro command.
by phspaelti
2018-11-12 21:20:12
Forum: Nisus Writer Pro Macros
Topic: Selecting paragraph and formatting
Replies: 6
Views: 2781

Re: Selecting paragraph and formatting

And one comment on this: A search of the Nisus Macro forum produced: tell application "Nisus Writer Pro" set doctext to text of front document set para to paragraph 1 of doctext end tell This code will basically extract the text from the first paragraph of the document and put it into a container in...
by phspaelti
2018-11-12 20:48:06
Forum: Nisus Writer Pro Macros
Topic: Selecting paragraph and formatting
Replies: 6
Views: 2781

Re: Selecting paragraph and formatting

Just to be clear, it isn't just the choice of applescript that is going to make this clunky, it's the whole approach to doing things. If your goal is to format a document, I just wouldn't go through the document one paragraph at a time. This might work as a "demonstration object" (a proof of concept...
by phspaelti
2018-11-12 07:26:25
Forum: Nisus Writer Pro
Topic: Convert return separated text to table
Replies: 7
Views: 1930

Re: Convert return separated text to table

The macro worked but I will need to study this to see WHY it worked! :D The crucial line of the macro is the one which selects N lines of text, excluding the last return. For example if you want 9 columns you have 9 lines of text with 8 returns. So the find expression will need to select 1 line fol...
by phspaelti
2018-11-11 19:08:51
Forum: Nisus Writer Pro Macros
Topic: Citation
Replies: 4
Views: 2093

Re: Citation

Hi again, Nisus macros aren't really ideal for interactive use of the kind you are aiming for. For example there is really no need to work 'bit by bit', and in fact it's often just inconvenient, though you can write the macro that way if you prefer. Here is a macro that will do what you want. It wor...