<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>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.</p>
    <p>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).</p>
    <p>Hope it makes sense now.</p>
    <p>Cheers,</p>
    <div class="moz-cite-prefix">On 2026-06-10 10:33 AM, Luciano
      Notarfrancesco via Cuis-dev wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAL5GDyrB+xj6s9HSUCLUCc3FD9K10D_bDn5-rMjcYvi57PoiBw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div>
        <div style="font-size:inherit">
          <div dir="auto"
style="font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgba(0,0,0,0);border-color:rgb(0,0,0);color:rgb(0,0,0)">Great,
            thanks!</div>
          <div dir="auto"
style="font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgba(0,0,0,0);border-color:rgb(0,0,0);color:rgb(0,0,0)">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!</div>
        </div>
        <br>
      </div>
      <div><br>
        <div class="gmail_quote gmail_quote_container">
          <div dir="ltr" class="gmail_attr">On Wed, Jun 10, 2026 at
            19:52 Juan Vuletich <<a href="mailto:juan@cuis.st"
              moz-do-not-send="true" class="moz-txt-link-freetext">juan@cuis.st</a>>
            wrote:<br>
          </div>
          <blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
            <div>
              <p>Hi Luciano,</p>
              <p>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.</p>
              <p>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!</p>
              <p>Cheers,</p>
            </div>
            <div>
              <div>On 2026-06-10 5:28 AM, Luciano Notarfrancesco via
                Cuis-dev wrote:<br>
              </div>
              <blockquote type="cite"> When I copy and paste text with
                the arrow characters Cuis does some replacements, like <span
                  style="font-size:inherit">↑  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?</span>
                <div dir="auto"><span style="font-size:inherit"><br>
                  </span></div>
                <div dir="auto"><span style="font-size:inherit">Thanks,</span></div>
                <div dir="auto"><span style="font-size:inherit">Luciano</span></div>
                <br>
                <fieldset></fieldset>
              </blockquote>
            </div>
            <div>
              <pre cols="72" style="font-family:monospace">-- 
Juan Vuletich
<a href="http://www.cuis.st" target="_blank"
              style="font-family:monospace" moz-do-not-send="true">www.cuis.st</a>
<a href="http://github.com/jvuletich" target="_blank"
              style="font-family:monospace" moz-do-not-send="true">github.com/jvuletich</a>
<a href="http://researchgate.net/profile/Juan-Vuletich" target="_blank"
              style="font-family:monospace" moz-do-not-send="true">researchgate.net/profile/Juan-Vuletich</a>
<a href="http://independent.academia.edu/JuanVuletich" target="_blank"
              style="font-family:monospace" moz-do-not-send="true">independent.academia.edu/JuanVuletich</a>
<a href="http://patents.justia.com/inventor/juan-manuel-vuletich"
              target="_blank" style="font-family:monospace"
              moz-do-not-send="true">patents.justia.com/inventor/juan-manuel-vuletich</a></pre>
            </div>
          </blockquote>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis.st">www.cuis.st</a>
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich</pre>
  </body>
</html>