<br><br><div class="gmail_quote">On Tue, Aug 18, 2009 at 9:12 AM, Yoshiki Ohshima <span dir="ltr"><<a href="mailto:yoshiki@vpri.org">yoshiki@vpri.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
At Fri, 14 Aug 2009 23:18:11 +0200,<br>
Michal Perutka wrote:<br>
><br>
> So, in EventSensor>>processKeyboardEvent: I inserted a line<br>
> Transcript show: evt asString; show: String cr.<br>
> (or I can insert that line in ISO88592InputInterpreter>>nextCharFrom:firstEvt:, the result is the same)<br>
><br>
> Then, when I type ? (=225), I get<br>
> #(2 2841355 225 1 0 225 0 0)<br>
> #(2 2841355 225 0 0 225 0 0)<br>
> #(2 2841506 225 2 0 225 0 0)<br>
><br>
> When I type acute accent key and then a (=97), first I get<br>
> #(2 2862057 180 2 0 0 0 0)<br>
><br>
> then<br>
> #(2 2872015 97 1 0 97 0 0)<br>
> #(2 2872015 97 0 0 97 0 0)<br>
> #(2 2872015 769 1 0 769 0 0)<br>
> #(2 2872015 769 0 0 769 0 0)<br>
> #(2 2872191 97 2 0 97 0 0)<br>
><br>
> and as result I get a?, not ?<br>
<br>
The VM appears to be sending the base character and the compostion<br>
accent character. Which itself is correct but the image side has to<br>
do something.<br>
<font color="#888888"></font></blockquote><div><br><br>Assuming the Unicode characters 97 ("a") followed by 301 (composing ') in a String, should the correct behaviour be to consider this one character or two? <br>
</div></div><br>Given the String 'xxa'xx' (where "a" is Unicode #97 and the middle ' is Unicode #301), would "String at: 3" return a single composed character or uncomposed character?<br clear="all">
<br>Or should Unicode-able Strings not be indexable at all to completely circumvent issues like this?<br><br>Gulik<br><br>-- <br><a href="http://gulik.pbwiki.com/">http://gulik.pbwiki.com/</a><br>