[PD-dev] Work on "help" menu and help-patch searching spec

Hans-Christoph Steiner hans at eds.org
Thu Apr 28 00:41:23 CEST 2005


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2353 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20050427/e49c761d/attachment.bin>


More information about the Pd-dev mailing list