John Drake wrote:-
Well I extended RX to handle multiple files. It took longer than expected because I ran into a bug in RX. RX as shipped won't handle files containing charecters over 138. That's fine for a lot of things (all ASCII files for instance) but Oberon Text can have charecters over 138. I'm not sure why this wasn't caught before. It took me a while to realize that the problem existed in RX as shipped and not in the changes I had made.
There were some 'updates' to RX. My 2001 version shows: System.Directory RX.Obj\d == RX.Obj 01.05.2002 15:07:30 11588
Anyway I've added a command RX.GrepAll that will search all files meeting a specific pattern. For instance:
RX.GrepAll "*.Mod" ("Write" | "String")
Are you making the code available [for beta testers].
would return all lines from all modules containing the words "Write" or "String". Of course that's an "or" type search. It looks like you're wanting to do "and" searches.
Yes please ! Google blows my mind away: I need the press/print report[s] of municipal corruption exposed on TV last night [here is deep-dark africa]. By ANDing a few key-words I've got it/them. Obviously the print occured before the TV - google won't update from distant locations within hours ? What attracted me to [the existing] "Find" is that it uses "Find.Domain <file list>", so you can 'refine/restrict' the file search-space by existing tools. Eg. by SmartDir.Directory [which I suspect is not included in the distributions, but which I use daily, and should be included]. Running RX.Grep <file of list-of-files> \i <extentions/types to omit> trims out the fileTypes which are not to be searched. Eg. in a BIG SYS: partition, you can skip all: *.Obj, *.Bak, *.Scn.Fnt, ...etc. [which can't be moved out to their own partition] by building a file list, [for repeated use], by repeated applications of RX.Grep. BTW. v2.3.2 has a facility & panel to include a date range for the files to be searched [it's potentially problematic, since the date format required is not obvious]. I'm wondering why this was omitted from later versions ?
Edgar who wrote:_
The problem is that I have to find WebNavigator first. I'm sure it's still somewhere on my disk :-)
I believe that ascii-text is ascii-text inside of *.Obj ?
A text search facility is the wrong tool for that job IMO. Edgar could easily go to the Documents.Panel, type "WebNav*" in the search box and click the "Show" button. That would should all files in the Oberon search path that began with the string "WebNav". Or in this case it might be better to go to the website to be sure and have the latest copy.
Well yes of course if he knows 'something usefull' about the fileID, he'd search for that. But in a worse case one only knows something about the file contents. BTW is 'WebNavigator' usefull for local files ? It sounds like being intended for inet searching ? I don't want to spend half a day installing another package that doesn't do what I need. The collecting and moving of all files [copy & delete] to the appropriate partitions takes effort/time. Thanks. == Chris Glur.
--- easlab@absamail.co.za wrote:
John Drake wrote:-
Anyway I've added a command RX.GrepAll that will search all files meeting a specific pattern. For instance:
RX.GrepAll "*.Mod" ("Write" | "String")
Are you making the code available [for beta testers].
Yes. In the process now of deciding where to host it. Thinking seriously about SourceForge. Perhaps an "Oberon Sys 3 enhancements" project? I thought about pasting the new code (about 139 lines) to the Wiki, but I wasn't sure if that was appropriate.
Yes please !
Google blows my mind away: I need the press/print report[s] of municipal corruption exposed on TV last night [here is deep-dark africa]. By ANDing a few key-words I've got it/them. Obviously the print occured before the TV - google won't update from distant locations within hours ?
What attracted me to [the existing] "Find" is that it uses "Find.Domain <file list>", so you can 'refine/restrict' the file search-space by existing tools. Eg. by SmartDir.Directory [which I suspect is not included in the distributions, but which I use daily, and should be included].
Interesting. So this was part of the NO distribution? If not, where did you find it?
Running RX.Grep <file of list-of-files> \i <extentions/types to omit> trims out the fileTypes which are not to be searched. Eg. in a BIG SYS: partition, you can skip all: *.Obj, *.Bak, *.Scn.Fnt, ...etc. [which can't be moved out to their own partition] by building a file list, [for repeated use], by repeated applications of RX.Grep.
BTW. v2.3.2 has a facility & panel to include a date range for the files to be searched [it's potentially problematic, since the date format required is not obvious]. I'm wondering why this was omitted from later versions ?
I'm not sure. But that does sound like a nice feature.
BTW is 'WebNavigator' usefull for local files ? It sounds like being intended for inet searching ?
WebNavigator is an HTML 4.0 web browser. (Think "Netscape Navigator".) It was a student project. I recall the author asking for help with it some time back, but I don't know if anyone ever responded. Anyway the parser works pretty good (I've used it in a project at work to parse HTML output from a statistics program), and it renders some pages nicely, but it needs a lot of work. In some ways the HTML 2.0 parser that comes with Oberon is more sophisticated since it can handle forms. (WebNavigator can't handle Google for instance, but the built in HTML 2.0 parser can). Incidently this means that WebNavigator currently can't handle editing the Wiki either. Unfortunately the HTML 2.0 browser doesn't seem to be able to handle the Wiki either. You can edit a page but your edits don't get saved. I wonder if this has something to do with Oberon's weak (practically non existent) support for cookies? Anyway Google does support XMLRPC. And since we have an XMLRPC client it should be possible to build a Google search client in Oberon. Regards, John M. Drake __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail
participants (2)
-
easlabīŧ absamail.co.za -
John Drake