[squeak-dev] Re: keeping arrow for assignment operator

Bert Freudenberg bert at freudenbergs.de
Fri Mar 13 22:43:41 UTC 2009


On 13.03.2009, at 19:20, Jecel Assumpcao Jr wrote:

> Bert Freudenberg wrote on Fri, 13 Mar 2009 18:54:24 +0100
>> On 13.03.2009, at 17:57, Cédrick Béler wrote:
>>> I tried and it works... except instead of having a real left  
>>> arrow, I
>>> get an underscore (strangely, this is working in pharo that way
>>> whereas in a fresh squeak dev based on 3.10, this isn't). Anyway,
>>> isn't the idea to have displayed "real" arrow   <-  ?
>>
>>
>> Looks like you need to teach Shout what character to use to display a
>> left-arrow in your preferred font, now that the underscore actually
>> displays as an underscore.
>
> Actually, the character is the same and has always been shown as a  
> left
> arrow or as an underscore depending on what font you are using (as
> copy/pasting some code from a browser to this window, which is also in
> Squeak but uses a different font, will show).

Actually actually, we patched the StrikeFonts in the image to have an  
underscore glyph in the place that formerly had an arrow. When we did  
this, the original arrow glyph was moved to character code 16r8F.   
This code is unassigned in iso8859-1 so pretty safe for private use.  
If StrikeFonts supported the whole unicode range we could have used  
16r2190, the proper unicode codepoint.

Which character shows the arrow glyph in the currently used font is  
the thing I think Shout needs to be taught.

> So the way to "fix" this
> is to go to background menu and play around with "appearence..." -->
> "system fonts..." and select one of the patched fonts for Shout to use
> (if that is possible - I have not tried it).


I don't think patching the underscore character is the way to go  
forward. If it appears in code, it should be displayed as an underscore.

- Bert -




More information about the Squeak-dev mailing list