Yes. But why do you want to parse pd files with pd? The only prototype I saw in the PDDP docs that use this META data was written in c (or maybe it was python, I can't remember).
-Jonathan --- On Mon, 8/31/09, Hans-Christoph Steiner <h...@at.or.at> wrote: > From: Hans-Christoph Steiner <h...@at.or.at> > Subject: Re: [PD] Pd META: Author/Help Patch Authors > To: "Jonathan Wilkes" <jancs...@yahoo.com> > Cc: pd-list@iem.at > Date: Monday, August 31, 2009, 9:20 PM > > I think that in practice, the commas will cause problems, > since Pd > interprets a comma as a message separator. In my > experience, at least. > > Do you have a working example of reading from textfile and > doing > something with the text with commas in it? > > .hc > > On Aug 31, 2009, at 1:40 PM, Jonathan Wilkes wrote: > > > [bang( > > | > > [list append foo, bar] > > | > > [$2( > > | > > [print] > > > > To parse, just use [sel,] > > Same for semicolon. > > Also works when reading from [textfile] > > > > -Jonathan > > > > --- On Mon, 8/31/09, Hans-Christoph Steiner <h...@at.or.at> > wrote: > > > >> From: Hans-Christoph Steiner <h...@at.or.at> > >> Subject: Re: [PD] Pd META: Author/Help Patch > Authors > >> To: "Jonathan Wilkes" <jancs...@yahoo.com> > >> Cc: pd-list@iem.at > >> Date: Monday, August 31, 2009, 4:16 PM > >> > >> Cool, could you post an example of parsing commas > in Pd? If > >> its easy to parse the commas from a 'text' object, > then that > >> would solve the tags debate. > >> > >> .hc > >> > >> On Aug 28, 2009, at 1:10 PM, Jonathan Wilkes > wrote: > >> > >>> I'm getting close to finishing making all the > help > >> patches in the reference > >>> folder conform to the PDDP template. > >>> > >>> I need to add a keyword to pd META for the > object > >> author and the help patch > >>> authors, something like: > >>> > >>> AUTHOR Miller Puckette > >>> > >>> HELP_PATCH_AUTHOR(S) Dave Sabine, Krzysztof > Czaja, > >> Jonathan Wilkes > >>> > >>> (BTW, it's quite easy to parse commas in Pd.) > >>> > >>> -Jonathan > >>> > >>> > >>> > >>> > >>> > >>> > _______________________________________________ > >>> Pd-list@iem.at > >> mailing list > >>> UNSUBSCRIBE and account-management -> > >>> http://lists.puredata.info/listinfo/pd-list > >> > >> > >> > >> > ---------------------------------------------------------------------------- > >> > >> There is no way to peace, peace is the way. > >> -A.J. Muste > >> > >> > >> > > > > > > > > > > ---------------------------------------------------------------------------- > > "[W]e have invented the technology to eliminate scarcity, > but we are > deliberately throwing it away to benefit those who profit > from > scarcity." -John Gilmore > > >
#N canvas 261 110 450 300 12; #X text 45 42 foo \, bar;
#N canvas 412 253 344 325 12; #X obj 12 35 textfile; #X msg 12 10 read file.pd \, rewind \, bang \, bang; #X obj 12 60 route #X; #X obj 12 85 route text; #X obj 12 110 list split 2; #X obj 58 160 list split 1; #X obj 104 210 route \,; #X obj 104 185 list trim; #X obj 58 286 print before_comma; #X obj 104 261 print after_comma; #X obj 104 235 list; #X obj 76 135 print altogether; #X obj 124 60 file; #X text 170 60 <- file to be parsed; #X connect 0 0 2 0; #X connect 1 0 0 0; #X connect 2 0 3 0; #X connect 3 0 4 0; #X connect 4 1 5 0; #X connect 4 1 11 0; #X connect 5 0 8 0; #X connect 5 1 7 0; #X connect 6 0 10 0; #X connect 7 0 6 0; #X connect 10 0 9 0;
_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list