Programatically changing the spelling language
Programatically changing the spelling language
- Subject: Programatically changing the spelling language
- From: Stefan Kreutter <email@hidden>
- Date: Mon, 26 Nov 2001 10:05:00 +0100
Maybe I'm blind but I can't find a way to change the current spelling
language.
As a user I can choose "Edit->Spelling->Spelling..." and select the
desired language there but for instance an application can't remember
the last selected language for spelling in order to restore this setting
next time the application is launched.
Cocoa tries to find a spelling language for the language the
application's UI is presented in. This works fine if you have the
matching language available for spelling. If you run your system in
Dutch and the spelling panel liste "German, Spanish, Italian, French,
English" the first language from the list is chosen because you don't
have a Dutch spell checker available. In this case you always have to
select English if you write most of your emails in english and this is
annoying because every time you launch Mail you have to do this.
Is there a way to find out which spelling languages (language AND
vendor) are available and which language is selected? How can I select a
different language for spell checking?
I really appreciate that Cocoa offers an API like
NSSpellServer/NSSpellChecker so you can plug in you own code but API is
far from being perfect. And there seem to be some bugs in the
implementation as I have notices when writing ObjectFarmSpell
(
http://objectfarm.org/objectfarmspell).
Any ideas?
Best regards,
Stefan