[Cuis-dev] Copy and paste and arrow characters

Juan Vuletich juan at cuis.st
Wed Jun 10 10:28:15 PDT 2026


It is for pasting code from EXTERNAL sources, like The Cuis Book in pdf 
or html form. In them, we show assignment and return as Unicode arrows, 
cp 16r2190 and 16r2191, so they look nice. But those are not what we use 
in Cuis for Shout to show return and assignment! Those Unicode arrows 
are actually not reserved at all in Cuis, and therefore available to be 
used as binary selectors. So, pasting that code into Cuis will not even 
compile, unless converted to $^ and $_, or #smalltalkLeftArrow and 
#smalltalkUpArrow.

When pasting that kind of external clipboard conent into Cuis code, 
beginners will expect to "just work",  so the conversion from  Unicode 
arrows (16r2190 and 16r2191) to Smalltalk arrows (hijaking cp 28 and 30).

Hope it makes sense now.

Cheers,

On 2026-06-10 10:33 AM, Luciano Notarfrancesco via Cuis-dev wrote:
> Great, thanks!
> I was wondering if this conversion on paste was really necessary, 
> because I thought the browser and workspace would do it automatically 
> with the syntax highlighter, but maybe I’m wrong. Anyway, this fixes 
> it for me, I can just set the preference to false, thanks!
>
>
> On Wed, Jun 10, 2026 at 19:52 Juan Vuletich <juan at cuis.st> wrote:
>
>     Hi Luciano,
>
>     We did this essentially to enable readers of The Cuis Book to copy
>     code from the book and paste into Smalltalk, with nice looking
>     ST-80 glyphs, and without needing to know about these details.
>
>     I have just added a #replaceUnicodeArrowsWithSmalltalkArrows
>     preferences that defaults to true. Please turn it off. I believe
>     now the behavior will be ok for you (and any experienced
>     Smalltalker). If not, please tell!
>
>     Cheers,
>
>     On 2026-06-10 5:28 AM, Luciano Notarfrancesco via Cuis-dev wrote:
>>     When I copy and paste text with the arrow characters Cuis does
>>     some replacements, like ↑  is replaced with ^. But in many cases
>>     this is wrong, for example I have arrows in string literals, and
>>     in comments. Do we really need to do this replacement
>>     automatically? Won’t everything work fine without doing it?
>>
>>     Thanks,
>>     Luciano
>>
>     -- 
>     Juan Vuletich
>     www.cuis.st <http://www.cuis.st>
>     github.com/jvuletich <http://github.com/jvuletich>
>     researchgate.net/profile/Juan-Vuletich <http://researchgate.net/profile/Juan-Vuletich>
>     independent.academia.edu/JuanVuletich <http://independent.academia.edu/JuanVuletich>
>     patents.justia.com/inventor/juan-manuel-vuletich <http://patents.justia.com/inventor/juan-manuel-vuletich>
>
>
-- 
Juan Vuletich
www.cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260610/5242fb41/attachment-0001.htm>


More information about the Cuis-dev mailing list