Rank: Member Groups: Member
Joined: 2/6/2009 Posts: 26
|
Hi
I have a few questions relating to the SpellChecker control.
1. Do the dictionary files have to be within the web site, ie a relative path? Or can I place them outside of the web site?
2. If the user has multiple languages but there is no dictionary file for the first language, does it check if there's a dictionary file for the users second language? For example, if I set IE8 up to have 2 languages: English UK and English US, and set English US as the default, will the spell checker use the en_GB dictionary if I don't have a en_US one? Or will it only try to use the first language?
3. If I don't have a dictionary for any of the languages can I get the spell checker to default to another dictionary?
4. Is it possible to override what dictionary file is to be used, for example if I wanted a particular user to have their own dictionary? I might want to do this so that any words that user adds to the dictionary are not seen by other users.
For (2) and (3) would it be just up to me to detect what languages the user has (using Request.UserLanguages) and what dictionary files I have and then set the SpellChecker.Language property accordingly?
Thanks,
David.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
As to your questions:
1. Yes. The dictionary files have to be within the website;
2 # 3. It would be up to you to detect the language and what dictionary files available, then set SpellChecker.Language property;
4. Unfortunately that is not supported now. We are planing to add something like a "CustomWords" property so that you can either specify a CustomWords file or CustomWords list. That way you will still be responsible for save/providing CustomWords, but you can provide it based on whatever logic that may fit you scenario, not necessarily based on the current user.
Thanks!
|