NISUS Archives

April 2013

NISUS@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Nobumi Iyanaga <[log in to unmask]>
Reply To:
Date:
Sun, 21 Apr 2013 22:54:31 +0900
Content-Type:
text/plain
Parts/Attachments:
text/plain (20 lines)
Hello,

I would like to write a macro that will do a wildcard search based on a text color. Here is the situation that needs such a macro. I am doing editing work, using different text colors (for example RED when I add something, BLUE when I wand to delete something, etc.). I can search all the RED text using the attribute sensitive PowerFind Pro search, setting ".+" in the Find box, and applying RED from the Text Color menu. All this is very fine.

But when I receive texts that were edited by others, with text colors, that will not work like this. As they use some other word processor (mostly MS Word), the colors that they use most often do not correspond with a defined color in the Text Color menu in Nisus Writer Pro. So, I cannot use the Text Color menu to apply the needed color to my ".+".

It is possible to enter a character in a specific color in the Find box (selecting this character and pressing Command + E), and overwrite this character in the Find box to ".+", then check the "Attribute Sensitive" check box. This works in general, but the entered character contains for example the Paragraph Style attribute, so that this will find only the colored text in the same paragraph style.

So, what I would like to have is a macro that copies in the Find box the find pattern ".+", in which only the color attribute of the selected character(s) is inherited. I think this should not be impossible, but as I have never used color related commands in the macro language, I would like to be helped by more knowledgeable people.

By the way, I think other macros of the same kind may be made easily, based on such a macro: for example a macro for the wildcard search based on a specific font, or other specific style attributes.

Thank you very much in advance.

Best regard,

Nobumi Iyanaga
Tokyo,
Japan

ATOM RSS1 RSS2