Spell check bilingual documents?

Submitted by: Denis Dublineau (PTC) Last Updated: 2006-09-01

=Question=

For spell checking a bilingual document, is it possible to parameterize EPIC to specify which spell checking dictionary shall be used on each XML element (e.g. some elements are supposed to contain French text when other elements are supposed to contain English text)?

=Denis Dublineau answers=

Epic's spell checker can only use one dictionary (language) at a time. So, spell checking of a bilingual document shall be done in two steps, one for each language.

In order to avoid the spell checker to stop on elements containing one language when the other language is processed, you can use the AllowSpellChecking attribute of the ElementOption element of the DCF file. This attribute allows you to declare document elements that shall not be spell checked. So, you can create two versions of the DCF file, one for each language, and switch to the applicable DCF file (set dcffile command) before launching the spell checker for one language.