On Apr 27, 2005, at 4:46 AM, Krzysztof Czaja wrote:
Hans-Christoph Steiner wrote: ...
A simple set of keywords would be easiest to implement to start with. Then we can test the basic idea out, and see whether its worthwhile to invest a lot of time coding an dynamic, flexible keyword system.
dynamic is easier... in tcl it could be
while {[gets $ch line] >= 0} { if {[regexp $skipbadentries $line] == 0} { ;# for safety set helpfile [lindex $line 0] foreach c [lrange $line 1 end] { lappend categories($c) $helpfile } } }
which might be fed by
find . -name "*-help.pd" -exec awk \ '/KEYWORDS/ {print FILENAME substr($0,index($0,"KEYWORDS")+9)}' {} ;
Krzysztof
Looks good, except find and awk are not standard on Windows. If we are doing to make a dynamic system, it should be dynamic at run time, not just build time. It should run whenever Pd starts so that user-added patches are also included.
And I don't think we want to start making Pd dependent on find and awk.
.hc
________________________________________________________________________ ____
"Information wants to be free." -Stewart Brand