It is Pd, so I think we should at least make an effort to make things easy to parse in Pd. I tried your parser using data that is probably closer to what we might use, and it didn't work at all. If someone can get a Pd parser working that can handle the commas well, then I would be OK using commas in the meta data format.
Here's my data: tags - pure data, frequency modulation, synthesis
file.pd
Description: Binary data
.hc On Aug 31, 2009, at 7:55 PM, Jonathan Wilkes wrote:
Yes. But why do you want to parse pd files with pd? The only prototype Isaw in the PDDP docs that use this META data was written in c (or maybeit 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 PatchAuthorsTo: "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 commasin Pd? Ifits easy to parse the commas from a 'text' object,then thatwould solve the tags debate. .hc On Aug 28, 2009, at 1:10 PM, Jonathan Wilkeswrote:I'm getting close to finishing making all thehelppatches in the referencefolder conform to the PDDP template. I need to add a keyword to pd META for theobjectauthor and the help patchauthors, something like: AUTHOR Miller Puckette HELP_PATCH_AUTHOR(S) Dave Sabine, KrzysztofCzaja,Jonathan Wilkes(BTW, it's quite easy to parse commas in Pd.) -Jonathan_______________________________________________Pd-list@iem.atmailing listUNSUBSCRIBE 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<file.pd><parser.pd>
----------------------------------------------------------------------------Looking at things from a more basic level, you can come up with a more direct solution... It may sound small in theory, but it in practice, it can change entire economies. - Amy Smith
_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list