[squeak-dev] [ANN] true unicode left arrows without clobbering underscores (cs)

Tobias Pape Das.Linux at gmx.de
Mon Oct 4 04:36:13 UTC 2010


Am 2010-10-03 um 16:44 schrieb Michal:
> 
> hi - 
> 
> Attached is a changeset that gives you back the left arrow for assignement, without clobbering the underscore charcode and without hacking fonts. It also preserves ansi assignment in the change file and in fileOuts. Practically, this means that whenever you type := in a code editor, and accept it, you will see a left arrow, but the source file will preserve the ':='.
> 
> It does that by using the unicode character for left arrow (instead of hijacking the underscore), and rewriting that unicode character as := on write out. This is a tiny changeset (3 lines of code, basically), which I have made for my personal use, but I'm posting it here both for comments/ameliorations/criticisms, and in case it is useful to anyone. This is by far not an area of the image that I am familiar with, so I welcome criticism and pointers (and of course(I can package it for the inbox in case there is interest).
> 
> In order to benefit from this changeset, you must be using a font that has the unicode left arrow. The default fonts that come with squeak 4.2a don't have it, so you will need to install the FreeType package first and choose a font such as Times New Roman or Arial Unicode MS, etc. (To see a left arrow, do a PrintIt on 'Character value: 8592', and make sure that the chosen font is installed as the default code font (World Menu > appearances > system fonts > code font)).
> 
> Whenever I have a moment, I will add the up arrow, and also a preference for converting underscore assignments to true unicode left arrows. If there is interest, I will post that too.
> 
> Michal
> <trueLeftArrowModest.2.cs>

Wonderful!

Thought of something like that myself. 
Does any other smalltalk allow 'true' arrows,
btw?
  Anyone there to add the arrow to the default
font(s)?

So Long,
	-Tobias


More information about the Squeak-dev mailing list