From stes at telenet.be Mon Jan 11 18:29:52 2021 From: stes at telenet.be (stes@PANDORA.BE) Date: Mon, 11 Jan 2021 19:29:52 +0100 (CET) Subject: [Newbies] two classes with the same name (Matrix issue) Message-ID: <598653604.84046331.1610389792571.JavaMail.zimbra@telenet.be> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Platform: /usr/lib/squeak/4.19.5-3793/squeakvm Squeak4.6 of 11 December 2017 [latest update: #15117] Unix built on Jan 1 2021 12:28:22 Compiler: 5.15.0 platform sources revision 3793 VMMaker versionString 4.19.5 Issue: There exists a class Matrix subclass of Collection, it seems to have been implemented in 2002 by 'raok' ? Go to the Browser, select "Matrix" and browse, and one can see Matrix, subclass of Collection. When I open a Monticello Browser and add a repository: http repository: MCHttpRepository location: 'http://www.squeaksource.com/cakit' user: '' password: '' I can load the Computer Algebra Kit with the "Load" button. HOWEVER ... despite the fact that there's no warning in the Transcript, this will now result in 2 Matrix classes in the system. Go to the Browser, select "Matrix" and browse, and one can see Matrix, in the Computer Algebra Kit. It's a different class ... but a hybrid or 'merged' version, perhaps some sort of 'pose As' version of the original, replaced by the different and totally different subclass Matrix in the CAkit. Now what I can do, and that works, is before installing the Computer Algebra Kit, I can remove the class Matrix subclass of Collection. In fact I'm under the impression that I should do that. If you select Matrix subclass of Collection and from the menu, Remove class ('x') that works. In fact, I think it is more or less required to do so, because I suspect the steps that I did above, corrupt the image. The old Matrix class is no longer displayed as subclass of Collection, and the methods of the old class and comments are visible in the new class, but that makes no sense since the instance variables of the new class, are totally different ... Puzzled by this result. I think what I'm observing here is that if you load 2 classes with the same name, and with different implementations, what Squeak 4.6 is doing, looks like some sort of poseAs where the last class that is loads substitutes/replaces the first version ... David Stes -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJf/JiUAAoJEAwpOKXMq1Man/EH/AyjlYBcb1iVF3qvjafGUM1B Xufeifr99y7yceyuLjQloYNBuLl8/sNnf5chksqk9jJKuRn6vRI06OG60gUHMatB TxKY4y6fevFYHoaLF6roIkjk94+BITssDZKWQpv+FiCooFpqti6FRpdfeSKL6+BZ Y9Om0qDV0/WB+zWmB31JIjxqjPBOe7ErH9l0bB1iby0+UhWZTlZK+et6U+AL/LLA iDQOmotY0PzMtj3teEPt3cE4BZg184ROBPsiWE8hJ2SOWNnEajFD+zA402UEQVWs noSULFoMsLhaOnHQFRyWrJl5HfMEEx8MONl80lb41uK4O7MaFU13iu2+Wx6vsdw= =Nxlv -----END PGP SIGNATURE----- From stes at telenet.be Tue Jan 12 13:25:38 2021 From: stes at telenet.be (stes@PANDORA.BE) Date: Tue, 12 Jan 2021 14:25:38 +0100 (CET) Subject: [Newbies] wiki page for 'how to change default font' Message-ID: <1080136828.1791693.1610457938922.JavaMail.zimbra@telenet.be> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 How to change the system font to a custom TrueType font ? I managed to solve with the help of the following: http://wiki.squeak.org/squeak/5586 http://wiki.squeak.org/squeak/5584 http://wiki.squeak.org/squeak/5773 - system with russian (cyrillic) fonts The above documents helped a lot; specifically the document 5773 "how to setup Squeak with a cyrillic font", had an important note: "Switch your fonts This can be done from World->Appearance->System Fonts." That works indeed, if you set the various fonts (text font, menu font, list font, code font etc.) in the World->Appearances->System Fonts. I think this could be in its own wiki page: "How to change the default System Fonts" if such a doc does not already exist. I didn't find it on wiki.squeak.org but fortunately the other docs helped. David Stes -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJf/aLAAAoJEAwpOKXMq1MaU48H/RnL+YHqpU+EzKlJJgPCW+Ee 9wI/TWJ6ygSBScmH2iJ/ClF+6XoT2aG7YxI853jCf6QYh48vWhNzr9IXaFtywzOo aqhlcwmvbeLYcfQRqzC7dxsGf+F+pPVp6YJzGX/OBCJ85Ae7IqBQXy7ScW7LEG7B gquKCvbuChib7GK5Pw1V9Tvt9n9n7zeYcTqSSlpp2yAYkKqUsuQV00w/y+LYt9YY PSLyU1c9GZaDUyPcsQjJvWLmpGFQZ6cUhediFL8q7pOEXTCTDmsh6VguZJtZvRwT QmZYRkxKqT7Gvn2tTi0kkIRTXzyE18pfwCue139BvPsoDdiqWMvZCyMWCoWe084= =m7OG -----END PGP SIGNATURE----- From stes at telenet.be Sat Jan 16 16:03:20 2021 From: stes at telenet.be (stes@PANDORA.BE) Date: Sat, 16 Jan 2021 17:03:20 +0100 (CET) Subject: [Newbies] syntaxHighlightingAsYouTypeLeftArrowAssignment Message-ID: <2110853394.15907207.1610813000079.JavaMail.zimbra@telenet.be> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, Platform: squeak 4.19.5 with Squeak 4.6 or squeak 5.x with Squeak 6.0alpha I wonder whether it's possible to display the assignment operator '_' underscore as Left Arrow. "Cuis-Smalltalk" is doing this, looks very nice. I've found something on wiki.squeak.org : syntaxHighlightingAsYouTypeLeftArrowAssignment in preferences. Go to Menu -> Tools -> Preferences (or Menu -> Apps -> Preferences Browser) Search : syntaxHighlightingAsYouType (it's under "browsing') enabled syntaxHighlightingAsYouTypeLeftArrowAssignment enabled does not work : do I need "Shout" http://wiki.squeak.org/squeak/5700 is Shout still working in 4.6 ? I have the impression from the wiki.squeak.org page that there existed a package to display '_' as left-arrow but not sure whether it is still there. David Stes -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJgAw4BAAoJEAwpOKXMq1Ma/1gIAK0vac+7G0o+nxaUZpwUZWEG tpeh0Bg+aruVO330FkJajKDkGxpnRdQ+9sjRQQ1jE3ZDY1V+V7zqQz0fciOtE56L 24l0A3gkhElte7B6zIpXwEUKwBPGrv1egA024JIuxw3Xb/FWNKZeUwMdyZGtn0nW LAlPjcv+r+/91Bkx8KuLT7E2Jas/JL3UpYYug9/F5umE/maN4+E3aKfggef8VKvz fdm7xDYBCDatQFqwsa1ixdKxAGql0+SID7QY1tRQ2hvBdl1jQmBWT6wXF9sDRELm YzXf2TWUiXUQDefr0Yc+qsJbYETKf0D4PmsdxNGgwwZ7zFbWpDm/OKy73wyhMiA= =xekh -----END PGP SIGNATURE----- From marcel.taeumel at hpi.de Mon Jan 18 09:19:57 2021 From: marcel.taeumel at hpi.de (Marcel Taeumel) Date: Mon, 18 Jan 2021 10:19:57 +0100 Subject: [Newbies] syntaxHighlightingAsYouTypeLeftArrowAssignment In-Reply-To: <2110853394.15907207.1610813000079.JavaMail.zimbra@telenet.be> References: <2110853394.15907207.1610813000079.JavaMail.zimbra@telenet.be> Message-ID: Hi David. > I wonder whether it's possible to display the assignment operator '_' > underscore as Left Arrow. Well, the original font rendered the underscore character ("_") as a left arrow. One could still extend Shout to add a special text attribute to either "_" or ":=" to change to a font that has such a property. Maybe take a look at FormSetFont and the example in FormInspector >> #embedForm:inText:. Of course, you could directly change the system's code font to one that renders all "_" as a left arrow, regardless of the context. Note that it might be confusing for some users to see a left arrow as a single entity while actually having to type ":" and "=". Also note that we removed all underscore assignments ("_") from Squeak's Trunk repository. For good. :-) Best, Marcel Am 16.01.2021 17:03:31 schrieb stes at PANDORA.BE : -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, Platform: squeak 4.19.5 with Squeak 4.6 or squeak 5.x with Squeak 6.0alpha I wonder whether it's possible to display the assignment operator '_' underscore as Left Arrow. "Cuis-Smalltalk" is doing this, looks very nice. I've found something on wiki.squeak.org : syntaxHighlightingAsYouTypeLeftArrowAssignment in preferences. Go to Menu -> Tools -> Preferences (or Menu -> Apps -> Preferences Browser) Search : syntaxHighlightingAsYouType (it's under "browsing') enabled syntaxHighlightingAsYouTypeLeftArrowAssignment enabled does not work : do I need "Shout" http://wiki.squeak.org/squeak/5700 is Shout still working in 4.6 ? I have the impression from the wiki.squeak.org page that there existed a package to display '_' as left-arrow but not sure whether it is still there. David Stes -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJgAw4BAAoJEAwpOKXMq1Ma/1gIAK0vac+7G0o+nxaUZpwUZWEG tpeh0Bg+aruVO330FkJajKDkGxpnRdQ+9sjRQQ1jE3ZDY1V+V7zqQz0fciOtE56L 24l0A3gkhElte7B6zIpXwEUKwBPGrv1egA024JIuxw3Xb/FWNKZeUwMdyZGtn0nW LAlPjcv+r+/91Bkx8KuLT7E2Jas/JL3UpYYug9/F5umE/maN4+E3aKfggef8VKvz fdm7xDYBCDatQFqwsa1ixdKxAGql0+SID7QY1tRQ2hvBdl1jQmBWT6wXF9sDRELm YzXf2TWUiXUQDefr0Yc+qsJbYETKf0D4PmsdxNGgwwZ7zFbWpDm/OKy73wyhMiA= =xekh -----END PGP SIGNATURE----- _______________________________________________ Beginners mailing list Beginners at lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners -------------- next part -------------- An HTML attachment was scrubbed... URL: From Das.Linux at gmx.de Mon Jan 18 10:00:15 2021 From: Das.Linux at gmx.de (Tobias Pape) Date: Mon, 18 Jan 2021 11:00:15 +0100 Subject: [Newbies] syntaxHighlightingAsYouTypeLeftArrowAssignment In-Reply-To: References: <2110853394.15907207.1610813000079.JavaMail.zimbra@telenet.be> Message-ID: > On 18. Jan 2021, at 10:19, Marcel Taeumel wrote: > > Hi David. > > > I wonder whether it's possible to display the assignment operator '_' > > underscore as Left Arrow. > > Well, the original font rendered the underscore character ("_") as a left arrow. One could still extend Shout to add a special text attribute to either "_" or ":=" to change to a font that has such a property. Maybe take a look at FormSetFont and the example in FormInspector >> #embedForm:inText:. > > Of course, you could directly change the system's code font to one that renders all "_" as a left arrow, regardless of the context. > > Note that it might be confusing for some users to see a left arrow as a single entity while actually having to type ":" and "=". > > Also note that we removed all underscore assignments ("_") from Squeak's Trunk repository. For good. :-) > SyntaxHighlightingAsYouTypeLeftArrowAssignment _should_ work: " 'If true, and syntaxHighlightingAsYouType is enabled, all ANSI format assignments ( := ) will be converted to left arrows ( _ ) when a method is selected in a Browser. Whilst editing a method, this setting has no effect - both the left arrow and the ansi format may be used. " If I enable it, I see _ instead of := in all methods, so it works fine. Note that the fonts themselves support swapping _ and ^ for arrows. Variant A: (destructive) See TextStyle>>#makeArrows Variant B: (semi-destructive) See StrikeFont>>#useLeftArrow and StrikeFont>>$#useUnderscore. However, useLeftArrow is not completely right. It should read: useLeftArrow self characterToGlyphMap. characterToGlyphMap at: 96 put: 131. characterToGlyphMap at: 95 put: 130. After that, If you do ``` Preferences enable: #syntaxHighlightingAsYouTypeLeftArrowAssignment. Preferences standardCodeFont useLeftArrow. ``` You'll see: However, shout seems to do strange things there if #syntaxHighlightingAsYouTypeLeftArrowAssignment is on. It tries hard to show the "assignment" as _ no matter what. That said, It is supposed to somewhat work :) Best regards -Tobias > Best, > Marcel >> Am 16.01.2021 17:03:31 schrieb stes at PANDORA.BE : >> >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA256 >> >> >> Hi, >> >> Platform: squeak 4.19.5 with Squeak 4.6 or squeak 5.x with Squeak 6.0alpha >> >> I wonder whether it's possible to display the assignment operator '_' >> underscore as Left Arrow. >> >> "Cuis-Smalltalk" is doing this, looks very nice. >> >> I've found something on wiki.squeak.org : >> >> syntaxHighlightingAsYouTypeLeftArrowAssignment >> >> in preferences. >> >> Go to Menu -> Tools -> Preferences >> (or Menu -> Apps -> Preferences Browser) >> >> Search : syntaxHighlightingAsYouType >> >> (it's under "browsing') >> >> enabled >> >> syntaxHighlightingAsYouTypeLeftArrowAssignment >> >> enabled >> >> does not work : do I need "Shout" >> >> http://wiki.squeak.org/squeak/5700 >> >> is Shout still working in 4.6 ? >> >> I have the impression from the wiki.squeak.org page that there existed >> a package to display '_' as left-arrow but not sure whether it is still there. >> >> David Stes >> >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v2 >> >> iQEcBAEBCAAGBQJgAw4BAAoJEAwpOKXMq1Ma/1gIAK0vac+7G0o+nxaUZpwUZWEG >> tpeh0Bg+aruVO330FkJajKDkGxpnRdQ+9sjRQQ1jE3ZDY1V+V7zqQz0fciOtE56L >> 24l0A3gkhElte7B6zIpXwEUKwBPGrv1egA024JIuxw3Xb/FWNKZeUwMdyZGtn0nW >> LAlPjcv+r+/91Bkx8KuLT7E2Jas/JL3UpYYug9/F5umE/maN4+E3aKfggef8VKvz >> fdm7xDYBCDatQFqwsa1ixdKxAGql0+SID7QY1tRQ2hvBdl1jQmBWT6wXF9sDRELm >> YzXf2TWUiXUQDefr0Yc+qsJbYETKf0D4PmsdxNGgwwZ7zFbWpDm/OKy73wyhMiA= >> =xekh >> -----END PGP SIGNATURE----- >> _______________________________________________ >> Beginners mailing list >> Beginners at lists.squeakfoundation.org >> http://lists.squeakfoundation.org/mailman/listinfo/beginners > _______________________________________________ > Beginners mailing list > Beginners at lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Bildschirmfoto 2021-01-18 um 10.58.58.PNG Type: image/png Size: 5379 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Bildschirmfoto 2021-01-18 um 10.59.05.PNG Type: image/png Size: 5237 bytes Desc: not available URL: From stes at telenet.be Mon Jan 18 11:50:27 2021 From: stes at telenet.be (stes@PANDORA.BE) Date: Mon, 18 Jan 2021 12:50:27 +0100 (CET) Subject: [Newbies] syntaxHighlightingAsYouTypeLeftArrowAssignment In-Reply-To: <2110853394.15907207.1610813000079.JavaMail.zimbra@telenet.be> References: <2110853394.15907207.1610813000079.JavaMail.zimbra@telenet.be> Message-ID: <1520444177.20499368.1610970627386.JavaMail.zimbra@telenet.be> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Thanks for the feedback. Sorry for asking, yes, it works, sorry for claiming that it did NOT work. I think I just forgot to "Save" my preferences, I selected "enable" for those options and tried it in a Workspace and I think it didn't have any effect. Because the feedback confirmed that the option *is* working, I tried again ... And for some reason (maybe "Save" ?) it works now ... I had noticed in Cuis-Smalltalk that they have this nice feature, and I wondered whether it also exists in Squeak. So it does ... the feature 1) displays all assignments in Squeak code as left-arrows for me and 2) when I type in a Workspace it immediately displays an assignment as a left arrow. I use a TrueType font that I have found on the net, which displays the underscore as a left-arrow. I configured that font as my "code font" in the appearances menu. As Tobias Pape points out special TrueType fonts are *not* required as Squeak has the machinery to swap the glyphs. However there are a few fonts on the net that have old encodings for the glyphs for up-arrow and left-arrow. However the solution that Tobias Pape mentions is better, as no special font, is then required. Perhaps a small advantage of using a special font is that the special font, can also work in editors outside Squeak. Regards, David Stes -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJgBXWhAAoJEAwpOKXMq1MasKkIAJX1zzIEH8U22rvsBq2zBjNo iEWCGsQV0rajWKeB3doMsC+eb+/SMu1B6Taucs/0vnZfHTK6Zlcm0eXBBqLzgp33 ibN0yJmrxsCUM7MPB9vQfKIvYi5gLg+wB0uqQF0aMH6xNW6n4IDKiKL+jn3hJQAo HrMfCIKn8J+/dSst5xQOs36Skg8Gc+1gZb0TaU/DUdNftPaAJGAMfC2CIJ6SAOQX Z/M705jhcTl1zZNP1uvg9s5SV2ZAuT+/gI0asbgsMikSpktIj66H0lNcTFPBvsns vpLEp/sRegUgeJIuxiVn2q3dwjcQNcvC0gkHjxWgr5rwa7xQArNo9MaDhgtCIYo= =ezi0 -----END PGP SIGNATURE----- From stes at telenet.be Mon Jan 18 11:56:05 2021 From: stes at telenet.be (stes@PANDORA.BE) Date: Mon, 18 Jan 2021 12:56:05 +0100 (CET) Subject: [Newbies] Alto Sherif Smalltalk-72 "Legacy" Message-ID: <1932676178.20514486.1610970965940.JavaMail.zimbra@telenet.be> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 The font I use is a free font : Alto Sherif Smalltalk-72 "Legacy" http://www.kreativekorp.com/software/fonts/index.shtml I think the "Legacy" stands for the encodings of underscore as left-arrow, and circumflex (caret) as up-arrow. There are other fonts that do this, as for example the PETSCII encoding (on that same website) indicates the Commodore PET series of computers, had the same encoding of left-arrow and up-arrow where modern ASCII has its underscore and circumflex (caret). Presumably a wide range of computers in the 1960's and 1970's had those symbols on these positions. Regards, David Stes -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJgBXb/AAoJEAwpOKXMq1MaqZAH/0npBxoZt4ipcRXvu/Cknth+ mcGj0X3wZailmZXaeFRT5RR7poSLnPVfMzIZDVkuwFkgysoCb2RKK+i4WFBejj9q i3IuEObpq5eBn2LCWKm6BISS5C8RRkOYIvG6uSERdXaBmowTCiSlYeKQtpY2xBuA CoJTqjgFCQaea2YIcfytNkK2dxBN3EYAeI/68UKnSmjPmN8Mqy9JwMhTa0iS+AwB eH/wojpZXWTI4qplytLiEx11frHZMG6tcsXkRJE1DAeqbIiTIFNZpY1zdiL/RCZ6 0zyeu/teMHERhvc85dGO+i6gw7dJrA3Wswb6quVVNZzspVGf7bNKqp2sQOD79JE= =GVSA -----END PGP SIGNATURE----- From Das.Linux at gmx.de Mon Jan 18 12:05:57 2021 From: Das.Linux at gmx.de (Tobias Pape) Date: Mon, 18 Jan 2021 13:05:57 +0100 Subject: [Newbies] syntaxHighlightingAsYouTypeLeftArrowAssignment In-Reply-To: <1520444177.20499368.1610970627386.JavaMail.zimbra@telenet.be> References: <2110853394.15907207.1610813000079.JavaMail.zimbra@telenet.be> <1520444177.20499368.1610970627386.JavaMail.zimbra@telenet.be> Message-ID: <633B7DCC-9105-4F21-B611-0ECDCA4B0A5C@gmx.de> Hi > On 18. Jan 2021, at 12:50, stes at PANDORA.BE wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > > Thanks for the feedback. > > Sorry for asking, yes, it works, sorry for claiming that it did NOT work. > > I think I just forgot to "Save" my preferences, I selected "enable" > for those options and tried it in a Workspace and I think it didn't have > any effect. > > Because the feedback confirmed that the option *is* working, I tried again ... > > And for some reason (maybe "Save" ?) it works now ... > > I had noticed in Cuis-Smalltalk that they have this nice feature, > and I wondered whether it also exists in Squeak. > > So it does ... the feature 1) displays all assignments in Squeak code > as left-arrows for me and 2) when I type in a Workspace it immediately > displays an assignment as a left arrow. > > I use a TrueType font that I have found on the net, > which displays the underscore as a left-arrow. > > I configured that font as my "code font" in the appearances menu. > > As Tobias Pape points out special TrueType fonts are *not* required as Squeak > has the machinery to swap the glyphs. > > However there are a few fonts on the net that have old encodings for the > glyphs for up-arrow and left-arrow. > > However the solution that Tobias Pape mentions is better, as no special font, > is then required. > > Perhaps a small advantage of using a special font is that the special font, > can also work in editors outside Squeak. Maybe using ← and ↑ could simply be used directly? -t