3.10 - Mac OS X Leopard - accent chars and keyboard input
John M McIntosh
johnmci at smalltalkconsulting.com
Thu Feb 7 21:44:21 UTC 2008
On Feb 7, 2008, at 12:53 PM, Petr Fischer wrote:
> I tested Sophie (latest dev) bundle on Mac OS X Leopard and czech
> If I change font in sophie text area to Helvetica or Verdana, all
> czech characters are ok (keyboard input and even characters display
> is ok) - look at attached screenshot. This works only with
> Sophie.image - standard 3.9 or 3.10 image doesn't work (input &
To clarify the Sophie.app uses a 3.8.18beta2U VM. Which is the same as
the 3.8.18beta1U VM (with a change to the locale plugin).
So the fact it does not work properly with a 3.9 or 3.10 image is not
a VM issue, it's an issue in the image code.
One has to pull the data from the unicode event field, and use a font
that will display unicode characters.
I cannot speak for 3.10 but older images would pull the keyboard data
from the macroman event field
and display that using fonts mapping to the macroman character set.
If you try to use characters that do not map into that limited set,
then it won't work.
Technically the macintosh carbon VM works with unicode data from
keyboard entry services. After the user had entered one or more
keystrokes to make a character you end up
with one or more unicode characters we take each unicode character and
translate to MacRoman then pass in the event record the unicode value
and the MacRoman character.
If there is not a unicode to macroman mapping the macroman character
will be zero.
PS For those few still using the OS-9 (or earlier) version of the
macintosh squeak VM we get the macroman character from os-9 and use a
table to map the macroman to unicode, this table was generated from os-
x translation services.
John M. McIntosh <johnmci at smalltalkconsulting.com>
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
More information about the Squeak-dev