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 hans@at.or.at wrote:
From: Hans-Christoph Steiner hans@at.or.at Subject: Re: [PD] Pd META: Author/Help Patch Authors To: "Jonathan Wilkes" jancsika@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 hans@at.or.at
wrote:
From: Hans-Christoph Steiner hans@at.or.at Subject: Re: [PD] Pd META: Author/Help Patch
Authors
To: "Jonathan Wilkes" jancsika@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
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
.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 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 hans@at.or.at wrote:
From: Hans-Christoph Steiner hans@at.or.at Subject: Re: [PD] Pd META: Author/Help Patch Authors To: "Jonathan Wilkes" jancsika@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 hans@at.or.at
wrote:
From: Hans-Christoph Steiner hans@at.or.at Subject: Re: [PD] Pd META: Author/Help Patch
Authors
To: "Jonathan Wilkes" jancsika@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
<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
--- On Tue, 9/1/09, Hans-Christoph Steiner hans@at.or.at wrote:
From: Hans-Christoph Steiner hans@at.or.at Subject: Re: [PD] Pd META: Author/Help Patch Authors To: "Jonathan Wilkes" jancsika@yahoo.com Cc: pd-list@iem.at Date: Tuesday, September 1, 2009, 5:00 AM
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
Hi Hans, I wouldn't expect my example to work as a general solution. If you want a general solution, I'd be happy to take a stab at it, but you haven't said what you want Pd to do with the data example you've provided above.
-Jonathan
On Sep 1, 2009, at 12:41 AM, Jonathan Wilkes wrote:
--- On Tue, 9/1/09, Hans-Christoph Steiner hans@at.or.at wrote:
From: Hans-Christoph Steiner hans@at.or.at Subject: Re: [PD] Pd META: Author/Help Patch Authors To: "Jonathan Wilkes" jancsika@yahoo.com Cc: pd-list@iem.at Date: Tuesday, September 1, 2009, 5:00 AM
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
Hi Hans, I wouldn't expect my example to work as a general solution. If
you want a general solution, I'd be happy to take a stab at it, but you haven't said what you want Pd to do with the data example you've
provided above.
Ah, sorry, I thought you'd followed the object_db.tcl plugin
discussion and the [pd META] discussion with Frank. Basically, the
object_db.tcl plugin builds a multilevel menu for finding objects
based on tags. I'm am sure people will think of other uses for the
tags. Frank suggested using comma separated tags in his [pd
REFERENCE] format, the PDDP group came to the conclusion that the meta
data should be easily parsable by Pd, and I still think that's a good
idea.
So the idea is to have every help patch have a [pd META] subpatch, and
in it, have a comment with tags.
.hc
¡El pueblo unido jamás será vencido!
Hallo, Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote:
On Sep 1, 2009, at 12:41 AM, Jonathan Wilkes wrote: Ah, sorry, I thought you'd followed the object_db.tcl plugin discussion and the [pd META] discussion with Frank. Basically, the object_db.tcl plugin builds a multilevel menu for finding objects based on tags. I'm am sure people will think of other uses for the tags. Frank suggested using comma separated tags in his [pd REFERENCE] format, the PDDP group came to the conclusion that the meta data should be easily parsable by Pd, and I still think that's a good idea.
Actually you have already convinced me to use a "-" in the tags field. But as I started with commas, I will continue with that until all help files are converted, then run a perl script to replace every comma in the tags field.
Frank
--- On Tue, 9/1/09, Hans-Christoph Steiner hans@at.or.at wrote:
From: Hans-Christoph Steiner hans@at.or.at Subject: Re: [PD] Pd META: Author/Help Patch Authors To: "Jonathan Wilkes" jancsika@yahoo.com Cc: pd-list@iem.at Date: Tuesday, September 1, 2009, 4:05 PM
On Sep 1, 2009, at 12:41 AM, Jonathan Wilkes wrote:
--- On Tue, 9/1/09, Hans-Christoph Steiner hans@at.or.at
wrote:
From: Hans-Christoph Steiner hans@at.or.at Subject: Re: [PD] Pd META: Author/Help Patch
Authors
To: "Jonathan Wilkes" jancsika@yahoo.com Cc: pd-list@iem.at Date: Tuesday, September 1, 2009, 5:00 AM
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
Hi Hans, I wouldn't expect my example
to work as a general solution. If you
want a general solution, I'd be happy to take a stab
at it, but you
haven't said what you want Pd to do with the data
example you've provided
above.
Ah, sorry, I thought you'd followed the object_db.tcl plugin discussion and the [pd META] discussion with Frank. Basically, the object_db.tcl plugin builds a multilevel menu for finding objects based on tags. I'm am sure people will think of other uses for the tags. Frank suggested using comma separated tags in his [pd REFERENCE] format, the PDDP group came to the conclusion that the meta data should be easily parsable by Pd, and I still think that's a good idea.
So the idea is to have every help patch have a [pd META] subpatch, and in it, have a comment with tags.
.hc
Oh, ok. I'll have a look at that discussion.
-Jonathan
On Mon, 31 Aug 2009, Hans-Christoph Steiner wrote:
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.
I think that you will eventually find a context in which you can't use commas and in which you will want to put the tags, and then you will regret not having just used underscore or dash or capitals as separator.
Here's my data: tags - pure data, frequency modulation, synthesis
here are six fairly common ways to join multiple words:
pure-data frequency-modulation synthesis pure_data frequency_modulation synthesis pure.data frequency.modulation synthesis puredata frequencymodulation synthesis pureData frequencyModulation synthesis PureData FrequencyModulation Synthesis
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801