-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Dear list,
sorry if this question has already been asked - I did not find much on the archives.
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.
nicb
+--------------------------------------------------------------------+ |Nicola Bernardini | |E-mail: nicb@centrotemporeale.it | |GPG Fingerprint = 6AE6 AF21 E160 D9B3 396E EBAC 906C CFAE 4D65 D910| |Neither MS-Word nor MS-PowerPoint attachments please: | |http://www.fsf.org/philosophy/no-word-attachments.html | +--------------------------------------------------------------------+
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.