<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1446433167259_27274">What's the problem with simply backslashing the dollar sign before sending <br></div><div dir="ltr">the message to Pd?</div><div id="yui_3_16_0_1_1446433167259_27276"><br></div><div id="yui_3_16_0_1_1446433167259_27278">-Jonathan<br></div><div class=".yiv5673964018yahoo_quoted"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Sunday, November 1, 2015 11:04 PM, Miller Puckette <msp@ucsd.edu> wrote:<br clear="none"> </font> </div>  <br clear="none"><br clear="none"> <div class="yiv5673964018y_msg_container">This does need fixing... it's a primitive escaping mechanism which needs to<br clear="none">be replaced with a "correct" one.  Unfortunately there are various places<br clear="none">in the code that escape stuff in various ways (to get strings past<br clear="none">the TCL parser or the Pd parser) and it's never been thought about in a<br clear="none">unified way.<br clear="none"><br clear="none">cheers<br clear="none">Miller<br clear="none"><br clear="none">On Sun, Nov 01, 2015 at 10:57:42PM -0500, Ivica Bukvic wrote:<br clear="none">> Right, but this function does not do that, it explicitly replaces # with $.<br clear="none">> What does # have to do with anything? Are you saying # is being substituted<br clear="none">> for $ to preserve it? Even so, this still makes no sense because if you<br clear="none">> create an iemgui object (pick one), then add a label with only a "#" in it.<br clear="none">> Once you click apply, you get $ on the label instead. Reopening properties<br clear="none">> provides you with a label that is equal to $, so  this sounds like a bug to<br clear="none">> me that does some sort of one-way mangling that needs to be fixed and more<br clear="none">> so, it seems to me there should be a different ascii character used to<br clear="none">> preserve $, one that does not exist in the regular text-based ascii<br clear="none">> chars... e.g. in pd-l2ork we use \t to substitute for \n and thus preserve<br clear="none">> endlines in comments and other places.<br clear="none">> <br clear="none">> On Sun, Nov 1, 2015 at 10:33 PM, Jonathan Wilkes <<a rel="nofollow" shape="rect" ymailto="mailto:jancsika@yahoo.com" target="_blank" href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>> wrote:<br clear="none">> <br clear="none">> > Because Pd's parser is likely to eat up a "$" followed by a number as a<br clear="none">> > banking<br clear="none">> > fee to pay the cost of sending messages.  :)<br clear="none">> ><br clear="none">> > Send this from the GUI:<br clear="none">> > (canvas_addy) obj 0 0 clip $1 $2<br clear="none">> ><br clear="none">> > and it becomes this in Pd:<br clear="none">> > [clip 0 0]<br clear="none">> ><br clear="none">> > There's also sys_decodeddialog/sys_encodedialog that is used for<br clear="none">> > canvas_find.<br clear="none">> ><br clear="none">> > Additionally, I think you may have added another parser inside s_main<br clear="none">> > to separate filenames in Pd-l2ork (although that one doesn't have anything<br clear="none">> > to do with dollarsigns).<br clear="none">> ><br clear="none">> > I have not yet decided where I want to add my own parser for the GUI port.<br clear="none">> > I think a Pratt parser for message-box math would be neat.<br clear="none">> ><br clear="none">> > -Jonathan<br clear="none">> ><br clear="none">> ><br clear="none">> ><br clear="none">> > On Sunday, November 1, 2015 9:38 PM, Ivica Bukvic <<a rel="nofollow" shape="rect" ymailto="mailto:ico@vt.edu" target="_blank" href="mailto:ico@vt.edu">ico@vt.edu</a>> wrote:<br clear="none">> ><br clear="none">> ><br clear="none">> > I presume this may pertain primarily to IOhannes and Miller,<br clear="none">> ><br clear="none">> > I am trying to figure out what is the purpose of raute2dollar in iemgui<br clear="none">> > objects? On an obvious level the function replaces # with an $ in a send,<br clear="none">> > receive, and label symbols. Why is this necessary? Personally, I cannot<br clear="none">> > think of a reason why it would be, but then again, I may very well be<br clear="none">> > missing something...<br clear="none">> ><br clear="none">> > Best,<br clear="none">> ><br clear="none">> > Ico<br clear="none">> ><br clear="none">> > _______________________________________________<br clear="none">> > <a rel="nofollow" shape="rect" ymailto="mailto:Pd-list@lists.iem.at" target="_blank" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br clear="none">> > UNSUBSCRIBE and account-management -><br clear="none">> > <a rel="nofollow" shape="rect" target="_blank" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><div class="qtdSeparateBR"><br><br></div><div class="yiv5673964018yqt6576408053" id="yiv5673964018yqtfd51217"><br clear="none">> ><br clear="none">> ><br clear="none">> ><br clear="none"><br clear="none">> _______________________________________________<br clear="none">> <a rel="nofollow" shape="rect" ymailto="mailto:Pd-list@lists.iem.at" target="_blank" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br clear="none">> UNSUBSCRIBE and account-management -> <a rel="nofollow" shape="rect" target="_blank" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br clear="none"><br clear="none"></div><br clear="none"><br clear="none"></div>  </div> </div>  </div></div></body></html>