<div dir="ltr"><div class="gmail_default" style="font-family:monospace;font-size:large">Hi Hilaire</div><div class="gmail_default" style="font-family:monospace;font-size:large">Thanks for answering my questions:</div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large">If you print:</div><div class="gmail_default" style="font-family:monospace;font-size:large">'sûr' at: 3. you get $r as expected. </div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large">Now if you print:</div><div class="gmail_default" style="font-family:monospace;font-size:large">'sûr' at: 2 put: $o.<br></div><div class="gmail_default" style="font-family:monospace;font-size:large">You get Error: Instances of UnicodeString are not indexable.</div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large">I think that probably Cuis does not take strings as UnicodeString by default.</div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large">If you print</div><div class="gmail_default" style="font-family:monospace;font-size:large">'sûr' class <br></div><div class="gmail_default" style="font-family:monospace;font-size:large">You get UnicodeString</div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large">but if you print</div><div class="gmail_default" style="font-family:monospace;font-size:large">'hello' class</div><div class="gmail_default" style="font-family:monospace;font-size:large">You get String</div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large">I think that could be the issue.</div><div class="gmail_default" style="font-family:monospace;font-size:large">I will check with the VM options to see the shortcut and yes, I'm on a mac.</div><div class="gmail_default" style="font-family:monospace;font-size:large">Thanks!</div><div class="gmail_default" style="font-family:monospace;font-size:large">Nacho</div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><b><font size="2">Ignacio Sniechowski</font></b><b><br></b></div><div><br></div><div><b><br></b></div><div><br></div><div><b></b></div><div><b><br></b></div><div><b><br></b></div><div><b><br></b></div><div><b><br></b></div><div><b></b><br></div><b><div><b><br></b></div><div><b><br></b></div><div><b><br></b></div><br></b><b><br></b><b><br></b><div><br><br><div style="text-align:left"><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 21, 2023 at 5:56 PM Hilaire Fernandes via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p><font size="4">Hi Ignacio, <br>
</font></p>
<p><font size="4">Thanks for your feedback!</font><br>
</p>
<div>Le 21/02/2023 à 13:25, Ignacio
Sniechowski via Cuis-dev a écrit :<br>
</div>
<blockquote type="cite">
<div class="gmail_default" style="font-family:monospace;font-size:large"><i>"<span style="color:rgb(0,0,0);font-size:11pt;font-family:CMB10">Note.<span> </span></span><span style="color:rgb(0,0,0);font-size:11pt;font-family:CMR10">We
wrote earlier a string is a collection of characters. It is
true for byte string, where each character is encoded with a
byte – a byte string. However since 2023, the default string
format for Cuis-Smalltalk is Unicode (UTF-8) where each
character can be encoded with 1, 2, 3 or 4 bytes. Therefore
it is immutable and can not be indexed, it can be converted
as byte string with the message<span> </span></span><span style="color:rgb(0,0,0);font-size:11pt;font-family:CMTT10">#asByteString</span><span style="color:rgb(0,0,0);font-size:11pt;font-family:CMR10">."</span></i></div>
<div class="gmail_default" style="font-family:monospace;font-size:large"><span style="color:rgb(0,0,0);font-size:11pt;font-family:CMR10"><br>
</span></div>
<div class="gmail_default" style="font-size:large"><span style="color:rgb(0,0,0);font-size:11pt"><font face="monospace">From
here I understand that the first example should not work,
unless -which is probably the case here- I'm
misunderstanding the part "Therefore, it is immutable and <b>can
not be indexed</b>, it can be converted..."</font></span></div>
<div class="gmail_default" style="font-size:large">
<div title="Page 27" style="color:rgb(0,0,0)">
<div>
<div>
<p><font face="monospace"><span style="font-size:9pt">'Hello'
at: 1<span> </span></span><span style="font-size:9pt">⇒<span> </span></span><span style="font-size:9pt">$H<br>
'Hello' asByteString at: 5<span> </span></span><span style="font-size:9pt">⇒<span> </span></span><span style="font-size:9pt">$o</span></font></p>
</div>
</div>
</div>
</div>
</blockquote>
<p>Yep, the sentence is not really accurate. Will it be better as <span style="color:rgb(0,0,0);font-size:11pt"><font face="monospace">"it
is immutable and <b>can not be indexed properly"?<br>
</b></font></span></p>
<p><span style="color:rgb(0,0,0);font-size:11pt"><font face="monospace">And a better example to expose it:<br>
</font></span></p>
'sur' at: 3 $r <br>
'sûr' at: 3 $^ (unicode code point value 770)<br>
<p>Advice please, so I can update the book accordingly.<br>
</p>
<p><br>
</p>
<blockquote type="cite">
<div class="gmail_default" style="font-size:large"><span style="color:rgb(0,0,0);font-size:11pt"><font face="monospace">The
other question is related to shortcuts in SmalltalkEditor, I
find the shortcut Cmd - " very useful for quoting results of
chunks of code in the workspace. This works when the
keyboard is in </font></span></div>
</blockquote>
<p>Is your host a Mac, I guess so as mentioned Cmd.</p>
<p>Could be an issue related to the VM. Om my Linux box with an us
international keyboard, I can comment chunk of code with the
keyboard combinaision Ctrl-Alt-Shift-["] (on my setup I have to do
Alt-Shift to access directly the " character, otherwise it will
try to compose with other character latter on.<br>
</p>
<p>May be take a look at your VM options.</p>
<p>Hilaire<span style="color:rgb(0,0,0);font-size:11pt;font-family:CMR10"></span><span style="color:rgb(0,0,0);font-size:11pt;font-family:CMR10"><br>
</span></p>
<pre cols="72">--
GNU Dr. Geo
<a href="http://drgeo.eu" target="_blank">http://drgeo.eu</a>
<a href="http://blog.drgeo.eu" target="_blank">http://blog.drgeo.eu</a></pre>
</div>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div>