I didnt realize this was a problem until i tried to read a textfile with a comma in it (yes escaped with a )
so "hello,world;" gives me:
hello\,world
now what?
the archive was not helpful because all suggested solutions use extended objects. is there no way to have a coma in textfile in vanilla?
m
On Sam, 2014-01-25 at 18:09 -0500, me.grimm wrote:
I didnt realize this was a problem until i tried to read a textfile with a comma in it (yes escaped with a )
so "hello,world;" gives me:
hello\,world
now what?
What would you rather expect to see within Pd? Non-escaped commas or single-escaped commas? What version of Pd is that?
I made a small test with most recent 0.45 from git and my results are somewhat different, though still a bit messy:
----text-- , comma at the beginning; comma, right after first word; comma in, the middle; comma at the end,; ----/text---
gives:
----print-- print: , comma at the beginning print: comma, right after first word print: comma in, the middle print: comma at the end, ----/print--
While commas at the beginning or after the first word are displayed unescaped, all other commas are shown with escaping character. Is that a bug? Am I right in thinking it would be desirable if escaping characters wouldn't be displayed at all?
It might be worth to note that feeding those lines to another [textfile] leads to a text file identical to the source which might indicate this is only a displaying issue.
Roman
hmmmm.... using your example i get from textfile:
----print-- print: , comma at the beginning print: comma, right after first word print: comma in\, the middle print: comma at the end\, ----/print--
i had not noticed before commas in beginning and after first word are displayed unescaped.... BUT, notice with my console output i get a double "\" while you get a single ""
why might that be so?
i assume you are on 0.45 linux my system is 0.45 osx 10.9
to answer your question I would rather see a unescaped comma in the console (without the escaping character)
Am I right in thinking it would be desirable if escaping characters
wouldn't be displayed at all?
not at all. but then how to deal with a "desirable" comma?
m
On Sun, Jan 26, 2014 at 6:08 AM, Roman Haefeli reduzent@gmail.com wrote:
On Sam, 2014-01-25 at 18:09 -0500, me.grimm wrote:
I didnt realize this was a problem until i tried to read a textfile with a comma in it (yes escaped with a )
so "hello,world;" gives me:
hello\,world
now what?
What would you rather expect to see within Pd? Non-escaped commas or single-escaped commas? What version of Pd is that?
I made a small test with most recent 0.45 from git and my results are somewhat different, though still a bit messy:
----text-- , comma at the beginning; comma, right after first word; comma in, the middle; comma at the end,; ----/text---
gives:
----print-- print: , comma at the beginning print: comma, right after first word print: comma in, the middle print: comma at the end, ----/print--
While commas at the beginning or after the first word are displayed unescaped, all other commas are shown with escaping character. Is that a bug? Am I right in thinking it would be desirable if escaping characters wouldn't be displayed at all?
It might be worth to note that feeding those lines to another [textfile] leads to a text file identical to the source which might indicate this is only a displaying issue.
Roman
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Son, 2014-01-26 at 10:50 -0500, me.grimm wrote:
BUT, notice with my console output i get a double "\" while you get a single ""
why might that be so?
I also get double backslashes when printing to Pd's console. While using the flag -stderr, I get single backslashes in my terminal window. I only noticed now that there is a difference
i assume you are on 0.45 linux
Yup.
my system is 0.45 osx 10.9
It's probably not the difference in OS, but whether using -stderr or not.
Roman