Search found 45 matches

by Nobumi Iyanaga
2017-07-18 17:47:49
Forum: Nisus Writer Pro Macros
Topic: macro to delete "tracks" containing certain characters
Replies: 6
Views: 14611

macro to delete "tracks" containing certain characters

Hello, I am editing a file containing an enormous number of "track changes -- and I notice that NWP is very weak to deal with this kind of documents. If I open and edit it in MS Word, there are almost no problems, but in NWP, each change takes minutes and each time, the rainbow wheel is turning...
by Nobumi Iyanaga
2017-04-01 21:15:38
Forum: Nisus Writer Pro Macros
Topic: Create Index for Japanese Documents
Replies: 8
Views: 21561

Re: Create Index for Japanese Documents

This is an essential feature. Please add it to NW!
by Nobumi Iyanaga
2014-06-13 17:36:13
Forum: Nisus Writer Pro Macros
Topic: Need a macro for track change
Replies: 2
Views: 9527

Re: Need a macro for track change

Hello Philip,

Thank you for your prompt reply.

I tested your macro. It worked perfectly. I saved it as the macro "Track_change-keep-contents" : its speed is very surprising.

Thank you again for your kind help!

Nobumi
by Nobumi Iyanaga
2014-06-13 06:37:13
Forum: Nisus Writer Pro Macros
Topic: Need a macro for track change
Replies: 2
Views: 9527

Need a macro for track change

Hello, I would like to have a macro that will "accept" all the track changes that are "isTextAttributesChanged". Here is the situation in which such a macro is needed. I have a long document in several versions. I can use MS Word to compare two of them, and generate a file in whi...
by Nobumi Iyanaga
2011-07-14 17:54:43
Forum: Nisus Writer Pro Macros
Topic: How to get the file path of a converted file
Replies: 2
Views: 7631

Re: How to get the file path of a converted file

Hello Martin,

I had not received any reply to this request, but I discovered that in the new 2.0.1 public beta 1, the feature is already implemented:

* Added: macros: added Document object property convertedFilePath.

Thank you very much! You are really very smart!
by Nobumi Iyanaga
2011-07-11 22:12:28
Forum: Nisus Writer Pro Macros
Topic: How to get the file path of a converted file
Replies: 2
Views: 7631

How to get the file path of a converted file

Hello, How would it be possible to get the file path of a file (for example a Classic Nisus Writer file, or a .doc file) which is "temporarily" open as "xxx (converted)". In fact, I already asked this question to the Nisus mailing list, and I was answered that there is no command...
by Nobumi Iyanaga
2009-07-12 04:44:15
Forum: Nisus Writer Pro Macros
Topic: Why is this macro so slow?
Replies: 5
Views: 11285

Re: Why is this macro so slow?

Hello Kino,

Thank you for your reply. I tried with your method. It is definitely the fastest way. I will use this code. Thank you very much!
by Nobumi Iyanaga
2009-07-11 20:53:50
Forum: Nisus Writer Pro Macros
Topic: Why is this macro so slow?
Replies: 5
Views: 11285

Re: Why is this macro so slow?

Hello Kino, Thank you for your reply. I tried with your advice, and found some problems. The following code is still slow, but it is much faster than the last one. I found that the most time consuming commands are string concatenations, and findAndReplace... # Begin macro 'nwp_1-2_to_utf8_test2' Req...
by Nobumi Iyanaga
2009-07-11 18:52:28
Forum: Nisus Writer Pro Macros
Topic: Why is this macro so slow?
Replies: 5
Views: 11285

Why is this macro so slow?

Hello, I have two version of a macro which lists up all the style attributes of a given text. One of them works rather quickly [version a], while the other [version b], which seems probably simpler, is VERY slow. Could you please indicate me why the latter is so slow, and how I can get it work more ...
by Nobumi Iyanaga
2009-02-08 06:12:04
Forum: Nisus Writer Pro Macros
Topic: menu item "Open macro folder"
Replies: 5
Views: 11902

Re: menu item "Open macro folder"

Hello js, I think the simplest in such a situation is to use the Terminal command "open", via Perl block. An example: Begin Perl `open "/Volumes/myVolume/myDocument/temp/Eudora Pro 4.2-J/"`; End The Terminal command in a Perl block must be enclosed between two "`" (&quo...
by Nobumi Iyanaga
2009-02-08 05:20:10
Forum: Nisus Writer Pro Macros
Topic: Open and save text files in specified encoding
Replies: 1
Views: 6843

Open and save text files in specified encoding

Hello,

Is it possible with Nisus macro to open and save text files in some specified encoding? As far as I can see in the Macro reference, it seems not possible. If it is not, I would like to make a feature request for this capability.

Thank you in advance for considering.
by Nobumi Iyanaga
2008-12-21 04:37:44
Forum: Nisus Writer Pro Macros
Topic: Embedded Perl macro and list variables
Replies: 3
Views: 9767

Re: Embedded Perl macro and list variables

Hello Kino, Thank you for your reply. The followings of your code are unnecessary and very likely to prevent your macro from working properly. If it is an array, $name is converted to @name autumatically when sent to a perl block. @ranges = $ranges; @attributes_array = $attributes_array; You are rig...
by Nobumi Iyanaga
2008-12-20 06:45:14
Forum: Nisus Writer Pro Macros
Topic: Embedded Perl macro and list variables
Replies: 3
Views: 9767

Embedded Perl macro and list variables

Hello, I have a question about the embedded Perl scripts: We read in the Macro Reference: "Scalar variables (integers, strings, etc) that have been defined by your macro are automatically made available to the Perl code. Array and hash variables are also available." But how can we have acc...
by Nobumi Iyanaga
2008-06-28 07:06:11
Forum: Nisus Writer Pro Macros
Topic: rangeOfAttributesAtIndex
Replies: 5
Views: 13787

Re: rangeOfAttributesAtIndex

Hello Martin, I'm sorry, my question was not well formulated. The only thing that rangeOfAttributesAtIndex guaranties is that the attributes over the range are equal. There may be adjacent characters with the same visible attributes or not. I understood, and this is what I wanted to know. Thank you!
by Nobumi Iyanaga
2008-06-27 15:50:32
Forum: Nisus Writer Pro Macros
Topic: rangeOfAttributesAtIndex
Replies: 5
Views: 13787

Re: rangeOfAttributesAtIndex

Hello Martin,

Thank you for your reply. So, if I understand well, this means that "rangeOfAttributesAtIndex" returns, if not the maximum, at least the minimum length of a text having the same attributes, is this right?

Thank you.