The second attempt to multilingualize Squeak, first impressions
Hannes Hirzel
hannes.hirzel.squeaklist at bluewin.ch
Sun Mar 23 22:28:25 UTC 2003
Hi Yoshiki and Boris
Thank you Yoshiki for this impressive work. Following your instructions
and with the remarks by Boris I managed to build a multilingual image on
the base of a fresh 3.2 image from the scripts and the fonts you
supplied. (I did this on a Windows machine, on a Mac there were
FileDirectory related problems but that's another issue)
The test below provided by Boris ran fine (print-it)
However one thing one should note that it is necessary to choose
DefaultMultiStyle as default font.
| st |
st := WriteStream on: MultiString new.
st nextPutAll: (#(16r417 16r434 16r440 16r430 16r432 16r435 16r439
16r442
16r435)
collect: [:v | UnicodeCyrillic charFromUnicode: v]);
nextPut: Character space;
nextPut: Character cr;
nextPutAll: (#(16r393 16r3B5 16r3B9 16r3B1) collect: [:v | UnicodeGreek
charFromUnicode: v]);
nextPut: Character space;
nextPutAll: (#(16r3C3 16r3B1 16r3C2) collect: [:v | UnicodeGreek
charFromUnicode: v]).
st contents
I did some tentative updating of page
Multilingual Squeak - second version
http://minnow.cc.gatech.edu/squeak/919
and also put the test report of Boris on page
http://minnow.cc.gatech.edu/squeak/770
I wanted to run the following two examples
UTF8TextConverter example1
UTF8TextConverter example2
I got a walkback enclosed below. Probably I didn't initialize something.
Any hints?
In the next few weeks I'd like to use the image for certain data
conversion and Unicode test data generation utilities.
Regards
Hannes
23 March 2003 11:21:12 pm
VM: Win32 - Squeak3.3alpha of 24 January 2002 [latest update: #4967]
Image: Squeak3.2 [latest update: #4956]
UndefinedObject(Object)>>doesNotUnderstand:
Receiver: nil
Arguments and temporary variables:
aMessage: a Message with selector: #do: and arguments: #([] in
UTF8TextConverte...etc...
Receiver's instance variables:
nil
UTF8TextConverter>>nextFromStream:
Receiver: an UTF8TextConverter
Arguments and temporary variables:
aStream: MultiByteFileStream: 'E:\Squeak3.2-4956-win-full\test.utf8'
character1: $Ê
value1: 230
character2: $ó
value2: 151
unicode: 26085
character3: $
value3: 165
codesets: nil
char: nil
cs: nil
Receiver's instance variables:
acceptingEncodings: nil
currentCharSize: 3
MultiByteFileStream>>next
Receiver: MultiByteFileStream: 'E:\Squeak3.2-4956-win-full\test.utf8'
Arguments and temporary variables:
Receiver's instance variables:
UTF8TextConverter class>>example2
Receiver: UTF8TextConverter
Arguments and temporary variables:
writeStream: a WriteStream
fileStream: MultiByteFileStream:
'E:\Squeak3.2-4956-win-full\test.utf8'
Receiver's instance variables:
superclass: TextConverter
methodDict: a MethodDictionary(#currentCharSize->a CompiledMethod
(3838) #leadi...etc...
format: 134
instanceVariables: #('currentCharSize')
organization: ('conversion' nextFromStream: nextPut:toStream:)
('as yet unclass...etc...
subclasses: nil
name: #UTF8TextConverter
classPool: nil
sharedPools: nil
environment: a SystemDictionary(lots of globals)
category: nil
More information about the Squeak-dev
mailing list
|