NISUS Archives

May 2011

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:
Þorvarður Davíðsson <[log in to unmask]>
Reply To:
Date:
Mon, 30 May 2011 15:37:50 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (24 lines)
On 30.05.2011, at 13:27, Kino wrote:

>> Names of chapters and/or poems are usually written in UPPERCASE and span one paragraph. I'm now trying to write a macro that selects all chapter names
> 
> Does this work for you?
> 
> Find All '^\p{Upper}[\P{Lower}&&[^\n]]*$', 'E-i'

Yes, this does the trick. Since every paragraph in the sample text began with a space I inserted a space before ^ and it worked perfectly.

I wish there was a way in the Find box to go from PowerFind Pro back to PowerFind in order to see the bubbles. We can go from the bubbles in PowerFind to PowerFind Pro but not back again. This is a huge drawback for beginners like me.

I have two questions that are of general interest to all of us who are not so good at writing macros yet. When you Kino write macros do you then usually start with PowerFind in order to see the bubbles which can be quite helpful or do you write everything from the beginning using PowerFind Pro only? 


The second question is how to "translate" the above search into normal, PowerFind language. This part
Find All '^\p{Upper}

is clear, but why is it followed by [\P{Lower} since we are looking exclusively for uppercase paragraphs and not lowercase paragraphs?

I guess the "*" in *$ means that options currently set in Find/Replace window should be used, but what does $ mean here?

Where in the manual are all these Grep characters? I seem to have lost track of them. IIRC they were all in one place in the old Nisus Classic manual.

ATOM RSS1 RSS2