[Cuis-dev] Fix for VectorCanvas>>#image:at:

Luciano Notarfrancesco luchiano at gmail.com
Fri Jun 16 10:37:01 PDT 2023


Hi Juan,
Your last changes seem to work great so far.
However I found another little issue that maybe we can fix: copy and
pasting looses text attributes, so subscripts and superscripts get lost. 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.

On Thu, 15 Jun 2023 at 22:43 Luciano Notarfrancesco <luchiano at gmail.com>
wrote:

> 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.
> Thanks for taking the time to do this!
> Luciano
>
> On Thu, 15 Jun 2023 at 22:09 Juan Vuletich <juan at cuis.st> wrote:
>
>> Hi Luciano,
>>
>> On 6/15/2023 3:23 PM, Luciano Notarfrancesco via Cuis-dev wrote:
>>
>> Hi Juan,
>>
>> On Thu, 15 Jun 2023 at 19:43 Juan Vuletich <juan at cuis.st> wrote:
>>
>>>
>>> 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 $.
>>>
>>
>> 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.
>>
>>
>> I agree. Currently the parsers take String, not Text, so I'm not sure if
>> doing as you suggest is complicated or not.
>>
>> 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.
>>
>>
>> > I’m still having troubles with := and _ not being shown as arrows,
>>> leaving empty
>>>
>> > lines between fragments of code doesn’t seem to help.
>>>
>>> Does adding $. after the "offending code" help? Double quoting it?
>>>
>>
>> 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…
>>
>>
>> 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.
>>
>> 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!
>>
>> Thanks,--
>>
>> Juan Vuletichcuis.stgithub.com/jvuletichresearchgate.net/profile/Juan-Vuletichindependent.academia.edu/JuanVuletichpatents.justia.com/inventor/juan-manuel-vuletichlinkedin.com/in/juan-vuletich-75611b3twitter.com/JuanVuletich
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230616/5d526cfd/attachment.htm>


More information about the Cuis-dev mailing list