Search found 48 matches
- 2020-08-16 15:13:45
- Forum: Nisus Writer Pro Macros
- Topic: Turning styled text into tagged text
- Replies: 2
- Views: 2854
Re: Turning styled text into tagged text
phspaelti wrote: In current NWP language you will need to use the formatting attributes. You can get the attributes for any location in the text of a document like so: {etc.] Amazingly impressive. I wasn't even sure there was a way, and you gave me two! Thank you again for all your knowledge and all...
- 2020-08-16 08:39:52
- Forum: Nisus Writer Pro Macros
- Topic: Turning styled text into tagged text
- Replies: 2
- Views: 2854
Turning styled text into tagged text
This one takes me back a long, long way.... Back in the NisusWriter Classic days, I created a macro that would convert a formatted document into a markup language (in this case, Quark XPress tags). The most important part of this process, and the one I don't know how to recreate, was reading the rul...
- 2020-07-31 07:56:24
- Forum: Nisus Writer Pro
- Topic: nisus/word issues (including Hebrew)
- Replies: 8
- Views: 5219
Re: nisus/word issues (including Hebrew)
It was many years ago. It certainly wasn't NWP 3.x; it might even have preceded 2.x. Long enough that I'm not sure. :-) And it was only a few words of Hebrew. I should have caught it myself, but the book editor was so hard to deal with that I never looked at the finished product until after it was p...
- 2020-07-31 05:49:47
- Forum: Nisus Writer Pro
- Topic: nisus/word issues (including Hebrew)
- Replies: 8
- Views: 5219
Re: nisus/word issues (including Hebrew)
I doubt I can help with this, except to confirm your issue #2 -- when one of my NWP files was opened in Word, it reversed the Hebrew. (And no one noticed, so the book was published with the Hebrew backward. Ouch.) But I have a question that might help others: Is your document ALL Hebrew, or does it ...
- 2020-06-26 11:48:47
- Forum: Nisus Writer Pro
- Topic: NW for iPad?
- Replies: 112
- Views: 156248
Re: NW for iPad?
I agree with those who would like to give Nisus Software money, because I want to keep the company and their software around. But I find myself wondering. Obviously the new Macs, and Catalyst, should make it easier to bring NisusWriter to the iPad. But porting a program requires more than just re-co...
- 2020-02-24 15:47:37
- Forum: Nisus Writer Pro Macros
- Topic: Variable Typing
- Replies: 5
- Views: 6751
Re: Variable Typing
martin wrote: That's always a good idea! I'll see about adding some cross-references between the topics you've discussed. Thanks :) Thank you. I can think of some cases where not casting types is useful, but they're mostly for debugging. (Real debugging, not joke code such as I used in this thread.)...
- 2020-02-23 17:10:28
- Forum: Nisus Writer Pro Macros
- Topic: Variable Typing
- Replies: 5
- Views: 6751
Re: Variable Typing
Thanks for your reply. Both your knowledge and your willingness to share are amazing. phspaelti wrote: I think this stuff is explained reasonably well in the Macro Language reference in appropriate places. I'm not sure that there is a simple answer, probably because the underlying implementation is ...
- 2020-02-23 08:14:01
- Forum: Nisus Writer Pro Macros
- Topic: Variable Typing
- Replies: 5
- Views: 6751
Variable Typing
Nisusy folks: I'm intermittently teaching someone about programming with NWP macros. I was recently trying to explain the concept of variable typing. I wrote a tiny piece of example code: $Name = 'George' $Number = 3 $FullName = $Name + $Number My goal, quite frankly, was to have this fail with a ty...
- 2020-02-10 10:55:43
- Forum: Nisus Writer Pro
- Topic: removing page break mid-paragraph
- Replies: 18
- Views: 9442
Re: removing page break mid-paragraph
This is only a wild thought, but I notice that your document is fairly long -- and has curious page numbering. The page number in your screen shot is 21, yet the bar at the bottom says you're on page 3 of 16. This raises two thoughts: 1. Long documents take time -- a lot of time -- to repaginate, an...
- 2019-12-30 06:39:19
- Forum: Nisus Writer Pro Macros
- Topic: Foreach Command and Variable Scope
- Replies: 2
- Views: 4042
Re: Foreach Command and Variable Scope
phspaelti wrote: Note that the foreach loop has a variant that allows you to get the index of the current value: foreach $i, $value in $values $values[$i] = … end That did it! Thank you again. At this point, pending field testing, the macro seems to be done, so maybe you'll be through with me for a ...
- 2019-12-29 10:04:47
- Forum: Nisus Writer Pro Macros
- Topic: Foreach Command and Variable Scope
- Replies: 2
- Views: 4042
Foreach Command and Variable Scope
Hello again, kind people. Apologies again for being apparently the only user asking questions here. At least I'm giving you something to read -- and I'm definitely learning things! I'm still working on this CSV macro, and am having a problem, I think, with variable scope. What I need to do is take a...
- 2019-12-28 07:00:23
- Forum: Nisus Writer Pro Macros
- Topic: Boolean Operation Evaluation
- Replies: 3
- Views: 5297
Re: Boolean Operation Evaluation
In reply to: phspaelti » 2019-12-27 22:34:43 Hello Bob, Have you tried them? :wink: Yes, I had tried them -- that's how I knew that an invalid test halted the macro instead of, say, reporting an error and asking to continue. :-) But I didn't know if there was a general rule. If it's in the manual, I...
- 2019-12-27 17:15:27
- Forum: Nisus Writer Pro Macros
- Topic: Boolean Operation Evaluation
- Replies: 3
- Views: 5297
Boolean Operation Evaluation
Boolean Operation Evaluation Good People -- I seem to be the only person asking questions these days. :-) Apologies twice for taking so much of your time, because I'm going to start with a lecture. NisusWriter macros allow two binary Boolean operators, AND (&&) and OR (||). AND is true if both state...
- 2019-12-23 12:01:43
- Forum: Nisus Writer Pro Macros
- Topic: Why does the Split object surround everything with quotation marks?
- Replies: 4
- Views: 4898
Re: Why does the Split object surround everything with quotation marks?
Many thanks for all the help! on 2019-12-23 12:04:59 phspaelti wrote: Hello Bob, Just to answer your immediate question, it isn't the the .split command that is putting quotes around things, it's the Type text command that's doing that. Or to put it more accurately, the Type text creates a string co...
- 2019-12-23 07:03:25
- Forum: Nisus Writer Pro Macros
- Topic: Why does the Split object surround everything with quotation marks?
- Replies: 4
- Views: 4898
Why does the Split object surround everything with quotation marks?
Good people, I'm working on a macro to take data from one CSV file, reformat it, and export it as another CSV file. And learning how much I didn't know about the macro language while I'm at it. :-) To load the data from the first CSV file, I'm using the .split command: $TheFields = $MyCurrentRecord....