[PD] Hide backslash escapes in symbol atoms

Christof Ressi info at christofressi.com
Fri Nov 19 12:24:06 CET 2021


> intuitively i would prefer something less ugly than '\ ', e.g. "␣". 
As I've written elsewhere: as simple rule could be "show what you type". 
In a list box (and many other objects) you have to explicitly type '\' 
to get a whitespace inside a symbol, so I think it's also fine to 
display it as such.

> probably the best would be to have delimiters a display property of 
> the list-box, rather than of the text itself. 
But what about object boxes, comments, [text] etc.? They all follow the 
same rules regarding whitespace (the user has to explicitly escape it).

The only exception are cases where you are dealing with a single symbol: 
symbol atoms and since Pd 0.52 also all GUI object lables resp. 
send/receive symbols. Here it doesn't make sense to show the escape 
character as it is really an implementation detail and doesn't add any 
value to the end user. It just looks ugly.

Christof

On 19.11.2021 11:51, IOhannes m zmoelnig wrote:
>
> On 11/19/21 10:02, Antoine Rousseau wrote:
>> - in a float atom, no space at all is allowed... (BTW wouldn't it be 
>> a nice
>> addition to filter the keyboard input to only numeric characters in the
>> "number" context?...)
>
> what's a "numeric character"?
>
> > - in a list atom, space is the delimiter, so if you want an actual
> > space it has to be escaped;
>
> i'm not really sure about this to be honest.
> i agree that there should be a visual distinction between the atom 
> delimiter and the sapce (within a symbol).
>
> intuitively i would prefer something less ugly than '\ ', e.g. "␣".
> but what if the user actually wants the character "␣"?
>
> probably the best would be to have delimiters a display property of 
> the list-box, rather than of the text itself.
> as in the attached mockup.
>
> dmgfsr
> IOhannes
>
> _______________________________________________
> Pd-list at lists.iem.at  mailing list
> UNSUBSCRIBE and account-management ->https://lists.puredata.info/listinfo/pd-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20211119/95db4395/attachment.htm>


More information about the Pd-list mailing list