--- On Wed, 9/2/09, Mathieu Bouchard <ma...@artengine.ca> wrote:

> From: Mathieu Bouchard <ma...@artengine.ca>
> Subject: Re: [PD] Pd META: Author/Help Patch Authors
> To: "Hans-Christoph Steiner" <h...@at.or.at>
> Cc: "Jonathan Wilkes" <jancs...@yahoo.com>, pd-list@iem.at
> Date: Wednesday, September 2, 2009, 7:55 PM
> On Tue, 1 Sep 2009, Hans-Christoph
> Steiner wrote:
> 
> > If we use commas as the delimiter for individual tags,
> then just removing the commas means you don't know if you
> have multi-word tags or just single word tags.  So if
> you have:
> >     tags - frequency modulation, synth
> > and its parsed as:
> >     tags frequency modulation synth
> > then key information is lost.
> 
> It's not just that... e.g. suppose you made an abstraction
> for looking up all patches that contain certain keywords...
> any number of them at once. How do you send a message to
> look for them? you'd need to put a comma _inside_ a
> message...
> 
> (this is an example of what I was alluding to in my
> previous mail)

It's possible (see quick-and-dirty-attachment, although the first 
typed character doesn't show up in the gop window for some reason).

But if searching is to be done from within Pd, I guess my question is 
how well this would work, regardless of commas.  If a tag is 
"frequency modulation," it won't be found if someone types in 
"Frequency Modulation," or frequency-modulation, or "fm."  Same for sinusoid, 
sine, sin, sinewave, etc.

Or is there already a regular expression object?

-Jonathan


      
#N canvas 3 12 1004 680 12;
#X obj 549 14 key;
#X floatatom 575 62 5 0 0 0 - - -;
#X obj 778 261 makefilename %c;
#X msg 778 203 set %c;
#X msg 913 261 set \$1%c;
#X obj 549 329 symbol;
#X obj 595 390 t a;
#X obj 549 361 list prepend;
#X obj 611 176 44;
#X obj 611 203 makefilename %c;
#X obj 549 86 route 32 44 10;
#X obj 172 325 list;
#X obj 549 415 list prepend set;
#X obj 549 443 list trim;
#X msg 804 443 add2 \$1;
#X obj 549 40 spigot;
#X obj 634 22 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 778 292 t b a b;
#X obj 549 551 list trim;
#N canvas 0 0 450 300 testwin 0;
#X coords 0 -1 1 1 400 50 1;
#X restore 64 127 pd testwin;
#X obj 549 576 t a b;
#X obj 586 630 s pd-testwin;
#X obj 549 296 spigot 1;
#X obj 610 242 0;
#X msg 610 268 1;
#X obj 585 146 t b b b;
#X obj 172 350 print;
#X msg 658 443 bang \, set;
#X obj 621 116 t b b;
#X text 44 323 send on <enter>;
#X msg 585 605 donecanvasdialog -1 1 1 0 -1 1 1 400 50 0 0 \, clear
;
#X obj 549 526 prepend text 15 20;
#X text 653 18 1 click to test;
#X text 127 89 2 type some keywords \, commas \, etc.;
#X text 138 107 reset on enter;
#X msg 549 481;
#X connect 0 0 15 0;
#X connect 2 0 4 0;
#X connect 2 0 5 1;
#X connect 2 0 17 0;
#X connect 3 0 2 0;
#X connect 4 0 2 0;
#X connect 5 0 7 0;
#X connect 6 0 7 1;
#X connect 7 0 6 0;
#X connect 7 0 12 0;
#X connect 8 0 9 0;
#X connect 9 0 7 0;
#X connect 10 0 22 0;
#X connect 10 1 25 0;
#X connect 10 2 28 0;
#X connect 10 3 2 0;
#X connect 10 3 24 0;
#X connect 11 0 26 0;
#X connect 12 0 13 0;
#X connect 13 0 35 0;
#X connect 14 0 35 0;
#X connect 15 0 10 0;
#X connect 15 0 1 0;
#X connect 16 0 15 1;
#X connect 17 0 35 0;
#X connect 17 1 14 0;
#X connect 17 2 7 0;
#X connect 18 0 20 0;
#X connect 20 0 21 0;
#X connect 20 1 30 0;
#X connect 22 0 3 0;
#X connect 22 0 5 0;
#X connect 23 0 22 1;
#X connect 24 0 22 1;
#X connect 25 0 35 0;
#X connect 25 0 23 0;
#X connect 25 1 8 0;
#X connect 25 2 3 0;
#X connect 25 2 5 0;
#X connect 27 0 35 0;
#X connect 28 0 11 0;
#X connect 28 1 27 0;
#X connect 28 1 3 0;
#X connect 28 1 7 1;
#X connect 30 0 21 0;
#X connect 31 0 18 0;
#X connect 35 0 11 1;
#X connect 35 0 31 0;
_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to