<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><br class=""><br class=""><blockquote type="cite" class="">On 18. Jan 2021, at 10:19, Marcel Taeumel <<a href="mailto:marcel.taeumel@hpi.de" class="">marcel.taeumel@hpi.de</a>> wrote:<br class=""><br class="">Hi David.<br class=""><br class="">> I wonder whether it's possible to display the assignment operator '_'<br class="">> underscore as Left Arrow.<br class=""><br class="">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:.<br class=""><br class="">Of course, you could directly change the system's code font to one that renders all "_" as a left arrow, regardless of the context.<br class=""><br class="">Note that it might be confusing for some users to see a left arrow as a single entity while actually having to type ":" and "=".<br class=""><br class="">Also note that we removed all underscore assignments ("_") from Squeak's Trunk repository. For good. :-)<br class=""><br class=""></blockquote><div class=""><br class=""></div><div class=""><br class=""></div><div class="">SyntaxHighlightingAsYouTypeLeftArrowAssignment _should_ work:</div><div class="">"</div><div class="">'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.</div><div class="">"</div><div class=""><br class=""></div><div class="">If I enable it, I see _ instead of := in all methods, so it works fine.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Note that the fonts themselves support swapping _ and ^ for arrows.</div><div class=""><br class=""></div><div class="">Variant A: (destructive) See TextStyle>>#makeArrows</div><div class="">Variant B: (semi-destructive)</div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>See StrikeFont>>#useLeftArrow and StrikeFont>>$#useUnderscore.</div><div class=""><br class=""></div><div class="">However, useLeftArrow is not completely right.</div><div class=""><br class=""></div><div class="">It should read:</div><div class=""><br class=""></div><div class="">useLeftArrow<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>self characterToGlyphMap.<br class=""><span class="Apple-tab-span" style="white-space:pre">      </span>characterToGlyphMap at: 96 put: 131.<br class=""><span class="Apple-tab-span" style="white-space:pre">   </span>characterToGlyphMap at: 95 put: 130.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">After that, If you do</div><div class=""><br class=""></div><div class="">```</div><div class="">Preferences enable: #syntaxHighlightingAsYouTypeLeftArrowAssignment.<br class="">Preferences standardCodeFont useLeftArrow.<br class=""><br class="">```</div><div class=""><br class=""></div><div class="">You'll see:</div><div class=""><br class=""></div><div class=""><img apple-inline="yes" id="D2CC8747-BC11-4F45-9F21-6DE25B51D7A5" src="cid:35959166-C1E0-4DDE-B5FD-B9FA0F50D759@fritz.box" class=""></div><div class="">However, shout seems to do strange things there if #syntaxHighlightingAsYouTypeLeftArrowAssignment is on.</div><div class="">It tries hard to show the "assignment" as _ no matter what.</div><div class=""><img apple-inline="yes" id="A500D568-EA24-44DD-AEF3-2841605E7A32" src="cid:F49C1135-4639-488D-A2EA-0B86E8C80C7E@fritz.box" class=""></div><div class=""><br class=""></div><div class="">That said, It is supposed to somewhat work :)</div><div class=""><br class=""></div><div class="">Best regards</div><div class=""><span class="Apple-tab-span" style="white-space:pre">   </span>-Tobias</div><div class=""><br class=""></div><br class=""><blockquote type="cite" class="">Best,<br class="">Marcel<br class=""><blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">Am 16.01.2021 17:03:31 schrieb <a href="mailto:stes@PANDORA.BE" class="">stes@PANDORA.BE</a> <<a href="mailto:stes@telenet.be" class="">stes@telenet.be</a>>:<br class=""><br class="">-----BEGIN PGP SIGNED MESSAGE-----<br class="">Hash: SHA256<br class=""><br class=""><br class="">Hi,<br class=""><br class="">Platform: squeak 4.19.5 with Squeak 4.6 or squeak 5.x with Squeak 6.0alpha<br class=""><br class="">I wonder whether it's possible to display the assignment operator '_'<br class="">underscore as Left Arrow.<br class=""><br class="">"Cuis-Smalltalk" is doing this, looks very nice.<br class=""><br class="">I've found something on <a href="http://wiki.squeak.org" class="">wiki.squeak.org</a> :<br class=""><br class="">syntaxHighlightingAsYouTypeLeftArrowAssignment<br class=""><br class="">in preferences.<br class=""><br class="">Go to Menu -> Tools -> Preferences<br class="">(or Menu -> Apps -> Preferences Browser)<br class=""><br class="">Search : syntaxHighlightingAsYouType<br class=""><br class="">(it's under "browsing')<br class=""><br class="">enabled<br class=""><br class="">syntaxHighlightingAsYouTypeLeftArrowAssignment<br class=""><br class="">enabled<br class=""><br class="">does not work : do I need "Shout"<br class=""><br class=""><a href="http://wiki.squeak.org/squeak/5700" class="">http://wiki.squeak.org/squeak/5700</a><br class=""><br class="">is Shout still working in 4.6 ?<br class=""><br class="">I have the impression from the wiki.squeak.org page that there existed<br class="">a package to display '_' as left-arrow but not sure whether it is still there.<br class=""><br class="">David Stes<br class=""><br class="">-----BEGIN PGP SIGNATURE-----<br class="">Version: GnuPG v2<br class=""><br class="">iQEcBAEBCAAGBQJgAw4BAAoJEAwpOKXMq1Ma/1gIAK0vac+7G0o+nxaUZpwUZWEG<br class="">tpeh0Bg+aruVO330FkJajKDkGxpnRdQ+9sjRQQ1jE3ZDY1V+V7zqQz0fciOtE56L<br class="">24l0A3gkhElte7B6zIpXwEUKwBPGrv1egA024JIuxw3Xb/FWNKZeUwMdyZGtn0nW<br class="">LAlPjcv+r+/91Bkx8KuLT7E2Jas/JL3UpYYug9/F5umE/maN4+E3aKfggef8VKvz<br class="">fdm7xDYBCDatQFqwsa1ixdKxAGql0+SID7QY1tRQ2hvBdl1jQmBWT6wXF9sDRELm<br class="">YzXf2TWUiXUQDefr0Yc+qsJbYETKf0D4PmsdxNGgwwZ7zFbWpDm/OKy73wyhMiA=<br class="">=xekh<br class="">-----END PGP SIGNATURE-----<br class="">_______________________________________________<br class="">Beginners mailing list<br class="">Beginners@lists.squeakfoundation.org<br class="">http://lists.squeakfoundation.org/mailman/listinfo/beginners<br class=""></blockquote>_______________________________________________<br class="">Beginners mailing list<br class=""><a href="mailto:Beginners@lists.squeakfoundation.org" class="">Beginners@lists.squeakfoundation.org</a><br class="">http://lists.squeakfoundation.org/mailman/listinfo/beginners<br class=""></blockquote><br class=""><div class=""><br class=""></div></body></html>