Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!adobe!heaven!heaven.woodside.ca.us From: glenn@heaven.woodside.ca.us (Glenn Reid) Newsgroups: comp.sys.next Subject: Re: A Feature that Preview ought to have... Message-ID: <476@heaven.woodside.ca.us> Date: 11 Apr 91 06:51:55 GMT References: <1991Apr11.004820.22692@menudo.uh.edu> Sender: glenn@heaven.woodside.ca.us Lines: 22 Matt Emerson writes > I was looking through some Adobe documentation in Preview and thought, "Gee, > it sure would be cool if Preview had a Find panel. Then I wouldn't have > to flip though every single page before I get to the windowdeviceround > operator." > > It would be quite easy to implement -- just look though the file, using > the structuring comments to keep track of what page you're on, and then > only look inside of the () for strings. This is a good idea, but might not be so easy. Any application that plays with word and/or letter spacing (many/most of them these days) will break up words into lots of little string pieces, and searching for words gets a lot harder. Still, it wouldn't hurt to *look* for it, at least. And if you sort of "concatenated" text by ignoring the parentheses and just looking for spaces to delineate the words, you might get lucky most of the time. -- Glenn Reid RightBrain Software glenn@heaven.woodside.ca.us NeXT/PostScript developers ..{adobe,next}!heaven!glenn 415-851-1785 (fax 851-1470)