[PD-dev] [not trivial] escaping special character in messages
Krzysztof Czaja
czaja at chopin.edu.pl
Sun Jun 9 14:28:03 CEST 2002
hi Nicola,
no easy way... you could force commas and semicolons into message
boxes with something like '44' -> [makefilename %c] -> 'set $1' ->
'', but they would not survive saving into a .pd file. So perhaps
you would rather prepend a [loadbang] to '44', and make your patch
construct the message while loading.
Btw, this is not a trivial question -- the escaping thing is quite
complicated in Pd. For example. a backslash in '\,' would need to
be escaped itself in a .pd file, like '\\,'. I vaguely recall
a thread on pd-list about how to enable escaping and/or quoting
by the user. I think the proper escaping or quoting mechanism
waits on a todo list...
Krzysztof
Nicola Bernardini wrote:
...
> How do you escape special characters (i.e. ';' and ',') in messages?
> I tried with '\', but it gets thrown away (it also says: '\: dropped'
> on stderr.
More information about the Pd-dev
mailing list