Spell Check for Custom Languages on SfRichTextBoxAdv
Hi,
We have enabled the SpellChecker on the RichText control and it works great for English language. However, we would like to add support for custom languages and so far we are not able to do that.
On the page https://help.syncfusion.com/wpf/sfrichtextboxadv/spell-check there is an info saying that "In order to enable spell checking functionality based on particular language, language pack for .NET Framework should be installed in the machine.". Since this is a bit problematic, would it be possible to add some custom languages as Dictionaries/CustomDictionaries?
We have found a couple of example dictionaries but the problem is that after we set UseFrameworkSpellCheck = false, spell check just stops working, like it does not recognize items from dictionaries.
Please advise
Thanks
SIGN IN To post a reply.
3 Replies
VM
Venkatesan Mani
Syncfusion Team
November 24, 2017 05:02 AM UTC
Hi J Stankov,
Thank you for contacting Syncfusion support.
By default, our SfRichTextBoxAdv uses .Net framework spell checker. It does not require language dictionary to be added separately and supports spell checking in English, Spanish, German, French languages if language pack is installed in the machine. To enable spell checking based on specific language in SfRichTextBoxAdv, please follow the steps.
1. Set “UseFrameworkSpellCheck” property of SpellChecker to “False”.
2. Specify Language property of SfRichTextBoxAdv control (https://msdn.microsoft.com/en-us/library/cc233982.aspx).
3. Add language dictionary in sample level and add the file path to “Dictionaries” property of SpellChecker. The file name should specify the language tag (LanguageID).
This will enable the custom spell-checking implementation of SfRichTextBoxAdv instead of Microsoft SpellChecker. Please find the sample code below.
Thank you for contacting Syncfusion support.
By default, our SfRichTextBoxAdv uses .Net framework spell checker. It does not require language dictionary to be added separately and supports spell checking in English, Spanish, German, French languages if language pack is installed in the machine. To enable spell checking based on specific language in SfRichTextBoxAdv, please follow the steps.
1. Set “UseFrameworkSpellCheck” property of SpellChecker to “False”.
2. Specify Language property of SfRichTextBoxAdv control (https://msdn.microsoft.com/en-us/library/cc233982.aspx).
3. Add language dictionary in sample level and add the file path to “Dictionaries” property of SpellChecker. The file name should specify the language tag (LanguageID).
This will enable the custom spell-checking implementation of SfRichTextBoxAdv instead of Microsoft SpellChecker. Please find the sample code below.
|
<Syncfusion:SfRichTextBoxAdv x:Name="richTextBoxAdv" LayoutType="Continuous" Language="cs-CZ">
<Syncfusion:SfRichTextBoxAdv.SpellChecker>
<RichTextBoxAdv:SpellChecker IsEnabled="True" UseFrameworkSpellCheck="False">
<RichTextBoxAdv:SpellChecker.Dictionaries>
<System:String>../../Assets/Dictionaries/cs_CZ.dic</System:String>
</RichTextBoxAdv:SpellChecker.Dictionaries>
<RichTextBoxAdv:SpellChecker.CustomDictionaries>
<System:String>../../Assets/CustomDictionaries/default.dic</System:String>
</RichTextBoxAdv:SpellChecker.CustomDictionaries>
</RichTextBoxAdv:SpellChecker>
</Syncfusion:SfRichTextBoxAdv.SpellChecker>
</Syncfusion:SfRichTextBoxAdv> |
We have prepared a sample using SfRichTextBoxAdv with spell checker enabled in Czech language. Please find the sample from following link.
Sample Link:
Sample.zip.
Note: We have added sample dictionary for Czech language. Similarly, you can add for your preferred language.
Also, we will update these information in our online documentation.
Regards,
Venkatesan M.
JS
J Stankov
November 24, 2017 10:15 AM UTC
Hi Venkatesan M,
Thank you very much for clarification, it works perfect now.
Regards,
Jelena
VM
Venkatesan Mani
Syncfusion Team
November 27, 2017 06:58 AM UTC
Hi Jelena,
Thank you for your update.
Please let us know if you require any further assistance. We will be happy to assist you.
Regards,
Venkatesan M.
Thank you for your update.
Please let us know if you require any further assistance. We will be happy to assist you.
Regards,
Venkatesan M.
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
JS J Stankov
- Nov 23, 2017 04:04 PM UTC
- Nov 27, 2017 06:58 AM UTC