You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »


Steps described in this section are applicable only for the Server version of WebSpellChecker 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. 

AppServerX.xml file customization described in this document is not a default behavior of WProofreader and may result in some side effects. 

For our particular example we want to create English-French and French-English bilingual dictionaries listed in the table below.

Bilingual dictionaries namesMain languageGrammar suggestions
English and FrenchEnglishEnglish only
English and FrenchFrenchFrench only
WProofreader provides only spelling suggestions for bilingual dictionaries. Grammar suggestions are enabled for the main language only. 

To create 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="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>

3. Disable grammar checking by removing the GrammarCheckProviderOptions tag for the specific language if you have discovered any issues with grammar checking. 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 in the Language tag.

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
fr_EN = French English

6. As soon as the modifications are completed, restart AppServer, namely stop and then start it for the changes to take effect.

  • No labels