<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Luciano,<br>
    <br>
    On 6/16/2023 2:37 PM, Luciano Notarfrancesco via Cuis-dev wrote:
    <blockquote
cite="mid:CAL5GDypLX_Ok8giJoU+J_XAGkNCe4RkywD3PbaooFx+A9QfNtw@mail.gmail.com"
      type="cite">
      <div dir="auto">Hi Juan,</div>
      <div dir="auto">Your last changes seem to work great so far.</div>
      <div dir="auto">However I found another little issue that maybe we
        can fix: copy and pasting looses text attributes, so subscripts
        and superscripts get lost. </div>
    </blockquote>
    <br>
    Right. I was thinking on code browsers (code is plain text by
    definition), but pasting Text makes sense in  Workspaces.<br>
    <br>
    <blockquote
cite="mid:CAL5GDypLX_Ok8giJoU+J_XAGkNCe4RkywD3PbaooFx+A9QfNtw@mail.gmail.com"
      type="cite">
      <div dir="auto">I think we can fix this by just removing the two
        methods in the ‘clipboard’ category in SmalltalkEditor. I’m not
        sure if there’s still a need to replace underscores with arrows
        like you do in those methods. I just removed those two methods
        and the underscore is still converted to arrow on paste, and
        subscripts and superscripts now are pasted correctly.</div>
    </blockquote>
    <br>
    Those methods are there just in case you paste code with Unicode
    Arrows (not underscores!). We do that to have good looking and
    functional code in The Cuis Book. So I kept them, but keeping Text
    Attributes.<br>
    <br>
    Fix is now at github.<br>
    <br>
    Thanks!<br>
    <br>
    <blockquote
cite="mid:CAL5GDypLX_Ok8giJoU+J_XAGkNCe4RkywD3PbaooFx+A9QfNtw@mail.gmail.com"
      type="cite">
      <div><br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Thu, 15 Jun 2023 at 22:43
            Luciano Notarfrancesco <<a moz-do-not-send="true"
              href="mailto:luchiano@gmail.com">luchiano@gmail.com</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 dir="auto">That’s fantastic, thank you! I just updated
              a fresh image and seems to work well. I’ll continue using
              it and let you know if I find any problems.</div>
            <div dir="auto">Thanks for taking the time to do this!</div>
            <div dir="auto">Luciano</div>
            <div dir="auto"><br>
            </div>
            <div>
              <div class="gmail_quote">
                <div dir="ltr" class="gmail_attr">On Thu, 15 Jun 2023 at
                  22:09 Juan Vuletich <<a moz-do-not-send="true"
                    href="mailto:juan@cuis.st" target="_blank">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 bgcolor="#ffffff" text="#000000"> Hi Luciano,<br>
                    <br>
                    On 6/15/2023 3:23 PM, Luciano Notarfrancesco via
                    Cuis-dev wrote:
                    <blockquote type="cite">
                      <div dir="auto">Hi Juan,</div>
                      <div><br>
                        <div class="gmail_quote">
                          <div dir="ltr" class="gmail_attr">On Thu, 15
                            Jun 2023 at 19:43 Juan Vuletich <<a
                              moz-do-not-send="true"
                              href="mailto:juan@cuis.st" target="_blank">juan@cuis.st</a>>
                            wrote:</div>
                          <blockquote class="gmail_quote" style="margin:
                            0px 0px 0px 0.8ex; border-left: 1px solid
                            rgb(204, 204, 204); padding-left: 1ex;">
                            <div bgcolor="#ffffff" text="#000000"
                              dir="auto"><br>
                            </div>
                          </blockquote>
                          <blockquote class="gmail_quote" style="margin:
                            0px 0px 0px 0.8ex; border-left: 1px solid
                            rgb(204, 204, 204); padding-left: 1ex;">
                            <div bgcolor="#ffffff" text="#000000"
                              dir="auto">I guess the name is not clear.
                              It just avoids Shout Attirbutes, but not
                              Shout analizing the text as if it was
                              source code and getting confused. That's
                              why we need the double quotes and final $.</div>
                          </blockquote>
                          <div dir="auto"><br>
                          </div>
                          <div dir="auto">Oh, I see. It seems to me that
                            it would be more useful to tag printIt text
                            as “not code” instead, and make Shout ignore
                            it completely. It could also function as
                            “separator” between fragments of code to be
                            syntax highlighted, just like leaving two
                            empty lines. And it would make the double
                            quotes and final dot unnecessary.</div>
                        </div>
                      </div>
                    </blockquote>
                    <br>
                    I agree. Currently the parsers take String, not
                    Text, so I'm not sure if doing as you suggest is
                    complicated or not.<br>
                    <br>
                    As a start, I just commited a few updates that make
                    Workspace Shout parsing start fresh after any empty
                    line (i.e. a sequence of two LFs). Maybe this is
                    enough. Maybe the double quotes are no longer
                    needed. We'll see.<br>
                    <br>
                    <blockquote type="cite">
                      <div>
                        <div class="gmail_quote">
                          <div dir="auto"><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 bgcolor="#ffffff" text="#000000"
                              dir="auto">> I’m still having troubles
                              with := and _ not being shown as arrows,
                              leaving empty</div>
                          </blockquote>
                          <blockquote class="gmail_quote" style="margin:
                            0px 0px 0px 0.8ex; border-left: 1px solid
                            rgb(204, 204, 204); padding-left: 1ex;">
                            <div bgcolor="#ffffff" text="#000000"
                              dir="auto"> > lines between fragments
                              of code doesn’t seem to help.<br>
                              <br>
                              Does adding $. after the "offending code"
                              help? Double quoting it?<br>
                            </div>
                          </blockquote>
                          <div dir="auto"><br>
                          </div>
                          <div dir="auto">Adding $. doesn’t help, but
                            commenting out big portions of text does
                            (it’s hard to find the exact offending text
                            and fix it). Ideally, it would be nice if
                            syntax highlighting worked properly in
                            workspaces without requiring the user to
                            make sure that all the text in workspace
                            compiles correctly. I’d turn off syntax
                            highlighting in workspaces if that helped,
                            but if I do that underscores are not
                            converted to arrows anymore…</div>
                        </div>
                      </div>
                    </blockquote>
                    <br>
                    If I got right the stuff I just pushed, just an
                    empty line should be enough to get left arrows for
                    assignment and Shout attributes right. Please test.<br>
                    <br>
                    BTW, You all folks telling these kinds of things out
                    loud is extremely important. I have a tendency to
                    get used to, and ignore these small annoyances. You
                    all pointing at them makes me try to fix them!<br>
                    <br>
                    Thanks,-- <br>
                  </div>
                  <div bgcolor="#ffffff" text="#000000">
                    <pre style="font-family: monospace;" cols="72">Juan Vuletich
<a moz-do-not-send="true" href="http://cuis.st" style="font-family: monospace;" target="_blank">cuis.st</a>
<a moz-do-not-send="true" href="http://github.com/jvuletich" style="font-family: monospace;" target="_blank">github.com/jvuletich</a>
<a moz-do-not-send="true" href="http://researchgate.net/profile/Juan-Vuletich" style="font-family: monospace;" target="_blank">researchgate.net/profile/Juan-Vuletich</a>
<a moz-do-not-send="true" href="http://independent.academia.edu/JuanVuletich" style="font-family: monospace;" target="_blank">independent.academia.edu/JuanVuletich</a>
<a moz-do-not-send="true" href="http://patents.justia.com/inventor/juan-manuel-vuletich" style="font-family: monospace;" target="_blank">patents.justia.com/inventor/juan-manuel-vuletich</a>
<a moz-do-not-send="true" href="http://linkedin.com/in/juan-vuletich-75611b3" style="font-family: monospace;" target="_blank">linkedin.com/in/juan-vuletich-75611b3</a>
<a moz-do-not-send="true" href="http://twitter.com/JuanVuletich" style="font-family: monospace;" target="_blank">twitter.com/JuanVuletich</a></pre>
                  </div>
                </blockquote>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich</pre>
  </body>
</html>