Torge Husfeldt wrote:
Hi John,
//snipped//
No matter, I implemented a very simple but effective "DeadCharacter" suport for squeak based on 2.8alpha-1789 - I hope it wont break to many things when filed in. Feel free to modify the code or the bindings as you pleases.
Thanks Torge:
I'm not absolutely sure what I'm supposed to type: the file in went without a hitch -- at least, it doesn't seem to have broken anything (but maybe something broke it? ;-) ). -- An admission, I never get on well with keyboard modifiers: the only ones I seem to be able to use are in gvim and a rather nice word processor on the Atari. (Neither of which are a great deal of use here!) Treat me as very stupid in this respect!
I open up a Workspace, and run a "print it" on Characters deadCharacters and get:
a Dictionary($^->a Dictionary($a->'?' $e->'?' $i->'?' $o->'?' $u->'?' ) $`->a Dictionary($A->'À' $a->'^' $e->'?' $i->'?' $o->'~' $u->'?' ) $~->a Dictionary($A->'Ã' $N->'?' $O->'Õ' $a->'<' $n->'-' $o->'>' ) $°->a Dictionary($A->'?' $a->'?' ) $´->a Dictionary($C->',' $E->'f' $a->'?' $c->'?' $e->'?' $i->'?' $o->'-' $u->'?' ) $¨->a Dictionary($A->'?' $O->'?' $U->'?' $a->'S' $e->'?' $i->'*' $o->'s' $u->'Y' $y->'ÿ' ) )
I do a series of print its:
$ isDeadCharacter false Nothing more expected ->~ isDeadCharacter # isDeadCharacter #isDeadCharacter Nothing more expected ->@ isDeadCharacter Unmatched string quote ->' isDeadCharacter | isDeadCharacter Vertical bar expected -> Nothing more expected ->? isDeadCharacter $^ isDeadCharacter true ^ isDeadCharacter nil
(this in the belief that US keyboards have the $ in a different place to UK ones -- but for the life of me, I can't remember where!)
Hmmm:
Nothing more expected ->£ isDeadCharacter
(Ah well, worth a try!)
I simply don't get it!
(This has always seemed to me to be one of the biggest holes in Linux: we have menus in languages from Hungarian through to simplified Chinese, but no easy way of getting even the simplest foreign character! Aaargh!)
Cheers
John