hi,
here is my problem : a symbol with a space send to stdout is transformed to a list this is very inconvenient when using pd~ see attachment should this be reported as bug ? is there a generic workaround for that ?
thanks
antoine
do it yourself http://antoine.villeret.free.fr http://drii.ensad.fr -- Google lit ce mail... si vous refusez cela, utilisez l'adresse antoine.villeret [at] free.fr pour me contacter
pd did not have any escape character to deal with space. this is a generic problem more than a bug.
so, you should find dirty hack to avoid problem. if you have only a symbol, then it's not a problem to split it to a list and make back a symbol thanks to symbol2list and list2symbol.
if you wish to send a list composed of symbol (with space) and other value, then it's a bit harder. here is a very crappy workaround assuming list are always composed of one symbol and one float.
Cyrille
Le 07/02/2012 16:35, Antoine Villeret a écrit :
hi,
here is my problem : a symbol with a space send to stdout is transformed to a list this is very inconvenient when using pd~ see attachment should this be reported as bug ? is there a generic workaround for that ?
thanks
antoine
PS : Sorry Iohannes, I was to quick, the issue seems to be there...
do it yourself http://antoine.villeret.free.fr http://drii.ensad.fr -- Google lit ce mail... si vous refusez cela, utilisez l'adresse antoine.villeret [at] free.fr http://free.fr pour me contacter
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Le 2012-02-07 à 17:08:00, Cyrille Henry a écrit :
pd did not have any escape character to deal with space. this is a generic problem more than a bug.
The parser knows how to parse backslash space to mean a space within a symbol, but the printer doesn't handle it.
Additionally, third-party parsers in other languages don't support blackslash space, except the one I wrote in Tcl.
so, you should find dirty hack to avoid problem. if you have only a symbol, then it's not a problem to split it to a list and make back a symbol thanks to symbol2list and list2symbol.
Il y a aussi [#import] et/ou [#sprintf], avec [#to_l], pour faire des listes d'octets.
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC
On Tue, Feb 07, 2012 at 11:24:13AM -0500, Mathieu Bouchard wrote:
Le 2012-02-07 à 17:08:00, Cyrille Henry a écrit :
pd did not have any escape character to deal with space. this is a generic problem more than a bug.
The parser knows how to parse backslash space to mean a space within a
symbol, but the printer doesn't handle it.
[stdout] does handle spaces in symbols, but not in combination with the [t a] in front of it, only when it receives the spaced-out symbol directly. I guess there is something shady with [stdout]'s anything-method going on.
Frank Barknecht Do You RjDj.me? _ ______footils.org__
hi guys,
Thanks for your tips. Finally the workaround i choosed is to not use [stdout]... In fact i need to get and set properties of a [pix_video] embedded in a [pd~] and I was forwarding pix_video outlet to the main patch through [stdout] which leads to disaster with symbols with space... Actually, i made another [pix_video] instance in the main patch outside the rendering chain, just to get and set properties. It's linked to the embedded one (just to use the same driver/device). it seems to work for now...
cheers
do it yourself http://antoine.villeret.free.fr http://drii.ensad.fr -- Google lit ce mail... si vous refusez cela, utilisez l'adresse antoine.villeret [at] free.fr pour me contacter
2012/2/7 Mathieu Bouchard matju@artengine.ca
Le 2012-02-07 à 17:08:00, Cyrille Henry a écrit :
pd did not have any escape character to deal with space.
this is a generic problem more than a bug.
The parser knows how to parse backslash space to mean a space within a symbol, but the printer doesn't handle it.
Additionally, third-party parsers in other languages don't support blackslash space, except the one I wrote in Tcl.
so, you should find dirty hack to avoid problem. if you have only a
symbol, then it's not a problem to split it to a list and make back a symbol thanks to symbol2list and list2symbol.
Il y a aussi [#import] et/ou [#sprintf], avec [#to_l], pour faire des listes d'octets.
______________________________**______________________________** __________ | Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC
Le 2012-02-07 à 16:35:00, Antoine Villeret a écrit :
should this be reported as bug ?
Oui.
is there a generic workaround for that ?
Soit les détours sont tortueux, soit ils impliquent de ne pas utiliser d'espaces.
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC