<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi!</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I noticed all my labels on GUI objects containing "#" had it replaced with a "$".<br>
<br>
<span style=" font-size: 16px; background-color: rgb(255, 255, 255); display: inline !important">The only workaround i know of is using dynamic patching to create the object you want with a # in it's label but that's definetely not something that every PD user
 want/know how to use.</span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
Searching the mailing list i found this discussion about the raute2dollar method but it seems it was abandoned. We have any news on that?<br>
<br>
<div style=" margin: 0px">Discussion i found in the mailing list:</div>
<div style=" margin: 0px"><a href="https://lists.puredata.info/pipermail/pd-list/2015-11/111972.html" title="CTRL+Clique para seguir o link
https://lists.puredata.info/pipermail/pd-list/2015-11/111972.html" style=" margin: 0px">https://lists.puredata.info/pipermail/pd-list/2015-11/111972.html</a></div>
<br>
On Mon, Nov 2 at 04:57 AM, Ivica Bukvic <ico at vt.edu > wrote:<br>
<span><br>
> so  this sounds like a bug to</span> me that does some sort of one-way mangling that needs to be fixed and more
<div><span style=" font-size: 16px; background-color: rgb(255, 255, 255); display: inline !important">><span> </span></span>so, it seems to me there should be a different ascii character used to <span style="font-size: 16px;"> </span>preserve $, one that does
 not exist in the regular text-based ascii</div>
<div><span style=" font-size: 16px; background-color: rgb(255, 255, 255); display: inline !important">><span> </span></span>chars... e.g. in pd-l2ork we use \t to substitute for \n and thus preserve endlines in comments and other places.<br>
<br>
Sounded like a good idea because # is definitely very useful for labels as it looks just like an sharp. I know there is an sharp char in DejaVu Sans Mono ($B"t(B) but it looks very small and is hard to read for some reason.</div>
<br>
So i changed the raute2dollar and the dollar2raute functions<br>
To use  '\"' (quotation mark) instead of '#' and it broke PD. <br>
I even tried using something pretty normal in it's place ('A') but didn't work either.<br>
<br>
Assuming the replacing char was just that, a replacement, and that any other char would do, it seemed like a good idea. Figured if users couldn't use quotation marks (") in their labels they would just use two apostrophes (') which would look the same.<br>
<br>
PD loads normally but when you open a new windows you get a TCL error. Call stack is something like this<br>
<br>
<span><br>
<br>
::pd_bindings::window_focusin .x229b790<br>
</span>
<div>....::pd_menus::configure_for_canvas $mytoplevel<br>
</div>
<div>........update_undo_on_menu $mytoplevel<br>
</div>
<div><br>
</div>
<div>............("update_undo_on_menu" line 3)<br>
</div>
<div>............"if {$mytoplevel eq $::undo_toplevel && $::undo_action ne "no"} {<br>
</div>
<span>................$menubar.edit entryconfigure 0 -state normal  -label [_ "Undo $::undo_action"..."</span><br>
<br>
<br>
<br>
So it seems that not only replacing the $ from some stuff is important but also what replaces it must be a '#'.<br>
<br>
I'm pretty new here so i can't get my head around what exactly is going on yet and why this is necessary.<br>
<br>
This Jonathan mail (below) seems to be the only explanation on why it was done this way in the first place but it doesn't go into much deta<br>
<a href="https://lists.puredata.info/pipermail/pd-list/2015-11/111968.html" id="LPlnk623532">https://lists.puredata.info/pipermail/pd-list/2015-11/111968.html</a><br>
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
What exactly is the purpose of this? Is it really needed for the labels?<br>
<br>
Cheers<br>
Henri.</div>
</body>
</html>