Hi,
Is there an escape character sequence to make special characters (',' and ';') in messages literal?
I need something like
+*--,
|3
+*---+
|
+*-----------
| add2 $1, (
+*-----------
|
+*------------
| 0, 1, 2, 3 (
+*------------
Whenever I try to type a \ in a message box, I get
: dropped : dropped
in the console output. This is on win2k, and PD 35-1.
I found one (maybe) related comment in m_binbuf.c :
/* add a binbuf to another one for saving. Semicolons and commas go to symbols ";", "'",; the symbol ";" goes to ";", etc. */
Is this only for internal housekeeping?
Another possibility to achieve this would be an 'add1' method, that adds the ',', just like 'add' adds a ';'.
Other solutions?
thanks, j#|@
Hi, Johannes Taelman hat gesagt: // Johannes Taelman wrote:
Hi,
Is there an escape character sequence to make special characters (',' and ';') in messages literal?
No, there isn't unfortunatly.
I need something like
+*--, |3
+*---+ | +*----------- | add2 $1, ( +*----------- | +*------------ | 0, 1, 2, 3 ( +*------------
You could send this into a textfile object like shown in the attached patch.
I found one (maybe) related comment in m_binbuf.c :
/* add a binbuf to another one for saving. Semicolons and commas go to symbols ";", "'",; the symbol ";" goes to ";", etc. */
Is this only for internal housekeeping?
This is actually for saving of patches. If you open a pd-patch in a text editor, you'll see a backslash before messages with a ";", like #X msg 300 205 ; pd dsp 1;
Another possibility to achieve this would be an 'add1' method, that adds the ',', just like 'add' adds a ';'.
Other solutions?
There are several external objects operating on lists like sprinkler, prepend and such.
Frank Barknecht _ ______footils.org__
Good idea... Maybe, just "addcomma" would be best. I'm against adding a general escape mechanism, because I think it's better to find a design that obviate teh need for it...
cheers Miller
On Sat, Oct 12, 2002 at 03:29:30PM +0200, Johannes Taelman wrote:
Hi,
Is there an escape character sequence to make special characters (',' and ';') in messages literal?
I need something like
+*--, |3
+*---+ | +*----------- | add2 $1, ( +*----------- | +*------------ | 0, 1, 2, 3 ( +*------------Whenever I try to type a \ in a message box, I get
: dropped : dropped
in the console output. This is on win2k, and PD 35-1.
I found one (maybe) related comment in m_binbuf.c :
/* add a binbuf to another one for saving. Semicolons and commas go to symbols ";", "'",; the symbol ";" goes to ";", etc. */
Is this only for internal housekeeping?
Another possibility to achieve this would be an 'add1' method, that adds the ',', just like 'add' adds a ';'.
Other solutions?
thanks, j#|@
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
The possibility to write any string, would be very useful to have. We need it for filenames, etc. Also PD is used for more and more things and it would be nice, if you could write any arbitrary string: "Blabla !;*,%2" asdas "
For example Olaf's Oggcast~ where I have to use = or _ for spaces.
Miller Puckette wrote:
Good idea... Maybe, just "addcomma" would be best. I'm against adding a general escape mechanism, because I think it's better to find a design that obviate teh need for it...
cheers Miller
I agree... I just don't think the best way is to allow message boxes to parse escape characters... probably, filenames, URLs, etc, should be handled in some better way than by typing them (with appropriate escape chars) into message boxes.
Of course I don't have a better idea yet (well, actually I might, but I'm still thinking about it: what about "symbol" boxes that remember their contents? and/or having a way to handle arrays of symbols... since there isn't the same parsing as in message boxes, there shouldn't need to be any funny escape mechanism.
cheers Miller
On Sun, Oct 13, 2002 at 01:51:23PM +0300, Smoerk wrote:
The possibility to write any string, would be very useful to have. We need it for filenames, etc. Also PD is used for more and more things and it would be nice, if you could write any arbitrary string: "Blabla !;*,%2" asdas "
For example Olaf's Oggcast~ where I have to use = or _ for spaces.
Miller Puckette wrote:
Good idea... Maybe, just "addcomma" would be best. I'm against adding a general escape mechanism, because I think it's better to find a design that obviate teh need for it...
cheers Miller