Steps described in this section are applicable for the Server version of WebSpellChecker only and 16 supported default languages except Ukrainian.
If your WProofreader setup is configured to perform spell checking or large amount of content in several languages, you may want to improve your web applications performance. A workaround for it can be reducing the number of errors by consolidating two or more languages into a single dictionary following the procedure described in this section.
For our particular example we want to create 6 bilingual dictionaries listed in the table below.
Bilingual dictionaries names | Main language | Grammar suggestions |
---|---|---|
English and French | English | English only |
English and French | French | French only |
English and Spanish | English | English only |
English and Spanish | Spanish | Spanish only |
English and German | English | English only |
English and German | German | German only |
To create 6 bilingual dictionaries listed in the table above:
1. Locate and open the AppServerX.xml configuration file containing main AppServer parameters descriptions and possible values in the WebSpellChecker installation folder on your server. The default path to AppServerX.xml file is <WebSpellChecker_Installation_Path>/AppServer/AppServerX.xml
2. In the file, scroll down to the section with Languages tag parameters and add the following inside this tag:
<Language Id="en_FR"> <!-- English French --> <GrammarCheckProviderOptions>en-US</GrammarCheckProviderOptions> <SpellEngineOptions> <SpellCheckProvider>ssce</SpellCheckProvider> <!--American English dictionaries --> <Dictionary FullPath="ssceam2.clx"> <ForSuggest>no</ForSuggest> </Dictionary> <Dictionary FullPath="ssceam2s.clx"> <ForSuggest>yes</ForSuggest> </Dictionary> <Dictionary FullPath="sscema2.clx"/> <Dictionary FullPath="keywords.clx"/> <Dictionary FullPath="ssceam.tlx"/> <!--French dictionaries --> <Dictionary FullPath="sscefr2.clx"> <ForSuggest>no</ForSuggest> </Dictionary> <Dictionary FullPath="sscefr.tlx"> <ForSuggest>no</ForSuggest> </Dictionary> </SpellEngineOptions> </Language> <Language Id="en_ES"> <!-- English Spanish --> <GrammarCheckProviderOptions>en-US</GrammarCheckProviderOptions> <SpellEngineOptions> <SpellCheckProvider>ssce</SpellCheckProvider> <!--American English dictionaries --> <Dictionary FullPath="ssceam2.clx"> <ForSuggest>no</ForSuggest> </Dictionary> <Dictionary FullPath="ssceam2s.clx"> <ForSuggest>yes</ForSuggest> </Dictionary> <Dictionary FullPath="sscema2.clx"/> <Dictionary FullPath="keywords.clx"/> <Dictionary FullPath="ssceam.tlx"/> <!--Spanish dictionaries --> <Dictionary FullPath="sscesp2.clx"> <ForSuggest>no</ForSuggest> </Dictionary> <Dictionary FullPath="sscesp.tlx"> <ForSuggest>no</ForSuggest> </Dictionary> </SpellEngineOptions> </Language> <Language Id="en_DE"> <!-- English German --> <GrammarCheckProviderOptions>en-US</GrammarCheckProviderOptions> <SpellEngineOptions> <SpellCheckProvider>ssce</SpellCheckProvider> <!--American English dictionaries --> <Dictionary FullPath="ssceam2.clx"> <ForSuggest>no</ForSuggest> </Dictionary> <Dictionary FullPath="ssceam2s.clx"> <ForSuggest>yes</ForSuggest> </Dictionary> <Dictionary FullPath="sscema2.clx"/> <Dictionary FullPath="keywords.clx"/> <Dictionary FullPath="ssceam.tlx"/> <!--German dictionaries --> <Dictionary FullPath="ge_newrules.clx"> <ForSuggest>no</ForSuggest> </Dictionary> </SpellEngineOptions> </Language> <Language Id="fr_EN"> <!-- French English --> <GrammarCheckProviderOptions>fr</GrammarCheckProviderOptions> <SpellEngineOptions> <SpellCheckProvider>ssce</SpellCheckProvider> <Options> <SplitContractedWords>1</SplitContractedWords> </Options> <!-- French dictionaries --> <Dictionary FullPath="sscefr2.clx"/> <Dictionary FullPath="sscefr.tlx"/> <!-- American English dictionaries --> <Dictionary FullPath="ssceam2.clx"> <ForSuggest>no</ForSuggest> </Dictionary> <Dictionary FullPath="sscema2.clx"> <ForSuggest>no</ForSuggest> </Dictionary> <Dictionary FullPath="keywords.clx"> <ForSuggest>no</ForSuggest> </Dictionary> <Dictionary FullPath="ssceam.tlx"> <ForSuggest>no</ForSuggest> </Dictionary> </SpellEngineOptions> </Language> <Language Id="es_EN"> <!-- Spanish English --> <GrammarCheckProviderOptions>es</GrammarCheckProviderOptions> <SpellEngineOptions> <SpellCheckProvider>ssce</SpellCheckProvider> <!-- Spanish dictionaries --> <Dictionary FullPath="sscesp2.clx"/> <Dictionary FullPath="sscesp.tlx"/> <!-- American English dictionaries --> <Dictionary FullPath="ssceam2.clx"> <ForSuggest>no</ForSuggest> </Dictionary> <Dictionary FullPath="sscema2.clx"> <ForSuggest>no</ForSuggest> </Dictionary> <Dictionary FullPath="keywords.clx"> <ForSuggest>no</ForSuggest> </Dictionary> <Dictionary FullPath="ssceam.tlx"> <ForSuggest>no</ForSuggest> </Dictionary> </SpellEngineOptions> <SuggestDepth>50</SuggestDepth> </Language> <Language Id="de_EN"> <!-- German English --> <GrammarCheckProviderOptions>de</GrammarCheckProviderOptions> <SpellEngineOptions> <SpellCheckProvider>ssce</SpellCheckProvider> <Options> <SplitWords>1</SplitWords> </Options> <!-- German dictionaries <Dictionary FullPath="ge_newrules.clx"/> <!-- American English dictionaries --> <Dictionary FullPath="ssceam2.clx"> <ForSuggest>no</ForSuggest> </Dictionary> <Dictionary FullPath="sscema2.clx"> <ForSuggest>no</ForSuggest> </Dictionary> <Dictionary FullPath="keywords.clx"> <ForSuggest>no</ForSuggest> </Dictionary> <Dictionary FullPath="ssceam.tlx"> <ForSuggest>no</ForSuggest> </Dictionary> </SpellEngineOptions> <SuggestDepth>50</SuggestDepth> </Language>
3. As grammar checking is performed for only one language at a time which is selected as a main language, you can optionally run this step if you have discovered any issues with grammar checking. Namely, disable grammar checking by removing the GrammarCheckProviderOptions tag for the specific language. For example, if you need to disable grammar for English French bilingual dictionary, remove the <GrammarCheckProviderOptions>en-US</GrammarCheckProviderOptions> tag from the corresponding language parameters group.
4. Locate and open text_en_US.txt file in the WebSpellChecker installation folder on your server. The default path to text_en_US.txt file is <WebSpellChecker_Installation_Path>/WebSpellChecker/WebComponents/WebInterface/text.
5. Add the following to the text_en_US.txt file:
en_FR = English French en_ES = English Spanish en_DE = English German fr_EN = French English es_EN = Spanish English de_EN = German English
6. As soon as the modifications are completed, restart AppServer, namely stop and then start it for the changes to take effect.