[Etoys] Squeak VM status concerning language encodings

Bert Freudenberg bert at freudenbergs.de
Thu Nov 29 10:01:39 EST 2007


On Nov 29, 2007, at 12:20 , birbilis wrote:

> Στις Πεμ 29 Νοε 2007, ο/η Chris Petsos έγραψε:
>>>> Hello to all. I would like to ask if there is utf8 support in the
>>>> Squeak VM
>>>> currently. I know that in the past only 8-bit encoding was
>>>> supported by the
>>>> virtual machine. Is it the same nowadays? I am considering the
>>>> addition of
>>>> the greek language which requires utf8 to be supported by the VM.
>>>
>>> UTF-8 is supported. The "etoys" script now runs the VM using the "-
>>> encoding UTF-8" option.
>>
>> Nice...birbilis, why don't you try to open the image from "ellak"  
>> inside
>> the OLPC having the new UTF-8 enabled VM and see how it goes?
>>
>>
>> http://www.ellak.gr/index.php? 
>> option=com_openwiki&Itemid=103&id=ellak:olpc_
>> etoys_greek_supportCurrently, i don't remember if a have removed the
>> switches thatdifferentiate Windows and Unix behaviour, but it's worth
>> trying... Ifkeyboard input works correctly, then we are a big step
>> forward...Christos
>
> Tried that, but when i switch k/b layout to greek and try to insert  
> text in
> e.g. a textbox area, i only get non-sense symbols as if the squeak
> environment does not recognize utf8 greek symbols. Greek fonts in the
> greeding message appear just fine which means that the fonts are  
> there...

When I copy "ελληνική γλώσσα" from Firefox and paste  
this into Squeak under Linux (using OLPC image and VM), the first  
character is 16r3B5 which seems right (although, in my image it is  
displayed as "??????? ???????"). I can't copy a WideString out of  
Squeak, however.

And typing greek chars on the keyboard only works if running under  
Sugar. We have no better way to test if we actually have a new VM. I  
attached a CS that tries to do a better job - always use Unicode  
keyboard input, but fall back to MacRoman if the unicode char is 0.  
Let's see what Yoshiki thinks of this ...

- Bert -

-------------- nächster Teil --------------
Ein Dateianhang mit Bin�rdaten wurde abgetrennt...
Dateiname   : unicodeFallback-bf.1.cs.gz
Dateityp    : application/x-gzip
Dateigr��e  : 1114 bytes
Beschreibung: nicht verf�gbar
URL         : http://lists.laptop.org/pipermail/etoys/attachments/20071129/1775ade1/attachment.bin 


More information about the Etoys mailing list