<!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>
I just removed the double quotes, but kept the additional dot at the
end, as it helps proper shouting in the next line (in case there's
not an empty line).<br>
<br>
Cheers,<br>
Juan Vuletich<br>
<br>
On 6/17/2023 2:07 PM, Luciano Notarfrancesco via Cuis-dev wrote:
<blockquote
cite="mid:CAL5GDyq+UXJOXh+A3OLa--zeqV2_Q1WaR8RYGyM4XpMsUiEn4w@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Great, thank you.</div>
<div>I removed the double quotes from printIt (see attached
method) and have been using it like that for two days, seems
to work fine, shout doesn't get confused. IMO without the
double quotes the output looks cleaner, but it's up to you how
you want it in the core image.</div>
<div>Cheers,</div>
<div>Luciano<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sat, Jun 17, 2023 at
2:47 AM Juan Vuletich <<a moz-do-not-send="true"
href="mailto:juan@cuis.st">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"> Hi Luciano,<br>
<br>
On 6/16/2023 2:37 PM, Luciano Notarfrancesco via Cuis-dev
wrote:
<blockquote 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 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 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" target="_blank">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"> 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" 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" 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" 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" 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">
<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 cols="72">--
Juan Vuletich
<a moz-do-not-send="true" href="http://cuis.st" target="_blank">cuis.st</a>
<a moz-do-not-send="true" href="http://github.com/jvuletich" target="_blank">github.com/jvuletich</a>
<a moz-do-not-send="true" href="http://researchgate.net/profile/Juan-Vuletich" target="_blank">researchgate.net/profile/Juan-Vuletich</a>
<a moz-do-not-send="true" href="http://independent.academia.edu/JuanVuletich" target="_blank">independent.academia.edu/JuanVuletich</a>
<a moz-do-not-send="true" href="http://patents.justia.com/inventor/juan-manuel-vuletich" target="_blank">patents.justia.com/inventor/juan-manuel-vuletich</a>
<a moz-do-not-send="true" href="http://linkedin.com/in/juan-vuletich-75611b3" target="_blank">linkedin.com/in/juan-vuletich-75611b3</a>
<a moz-do-not-send="true" href="http://twitter.com/JuanVuletich" target="_blank">twitter.com/JuanVuletich</a></pre>
</div>
</blockquote>
</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>