RichtextboxAdv.Spellchecker language pack for .NET Framework

Hi there, docs says  In order to enable spell checking functionality based on particular language, language pack for .NET Framework should be installed in the machine.

What do I do in .Net 6?

Thanks.



7 Replies

GG Gyorgy Gorog December 9, 2021 08:08 PM UTC

Altough I defined a custom default dictionary and it is there, and Thread.CurrentThread.CurrentUICulture is set properly, Spellchecker continues to check in English. It performs well in English BTW.

Shall the dictionary be in UTF-8?




GG Gyorgy Gorog December 10, 2021 07:45 AM UTC

In fact, if I define the custom dictionaries and enable spell checking, existing docx documents never load completely. Usually they time out, or hang completely.

Update: even if I don't define custom dictionaries, just enable spellcheck, loading hangs. Usually at the last page.

If I don't try to spellcheck, if any other error occurs during load (like "width and height cannot be zero"), the next attempt to load another document fails with a null exception on await loadAsync. My code follows your instructions:

Task loadAsyncTask = null;

CancellationTokenSource sCts = new CancellationTokenSource();


try

{

sCts.CancelAfter(3500);

loadAsyncTask = RichTextBoxAdv.LoadAsync(fileName, sCts.Token);

await loadAsyncTask;

}

catch (TaskCanceledException)

{

TbMessage.Text = "loading incomplete";

}

catch ( Exception ex )

{

TbMessage.Text = ex.Message;

}

finally

{

sCts.Dispose();

sCts = null;

loadAsyncTask?.Dispose();

loadAsyncTask = null;

}



KG Kalaivannan Ganesan Syncfusion Team December 13, 2021 12:31 PM UTC

Hi Gorog,

Thanks for contacting Syncfusion support.

We are working to reproduce the reported issue. We will check and update you with further details on or before 15th December 2021.
 

Please let us know if you have any other questions.

Regards,
Kalaivannan Ganesan
 



KG Kalaivannan Ganesan Syncfusion Team December 15, 2021 05:59 PM UTC

Hi Gorog,

Thanks for the patience.
 
Issue 
 

1., if I define the custom dictionaries and enable spell checking, existing Docx documents never load completely. Usually, they time out or hang completely.

2.
even if I don't define custom
dictionaries, just enable spellcheck,
loading hangs. Usually at the last page.

 

When spellcheck is enabled in the Asynchronous loading, the spell-checking process will be initiated only after layouting all pages. Thus, the document loading slows down and currently, we don’t have a feature to Spell check the document asynchronously. But we have already added it to our feature list.
and, we do not have any immediate plan to implement this feature. We will let you know once the feature is implemented. To track the status of the feature, please use the following feedback link.

https://www.syncfusion.com/feedback/3003/spell-check-the-document-asynchronously

 

3.  If I don't try to spellcheck, if any other error occurs during load (like "width and height cannot be zero")

 

We suspect you have been mentioning the issue which you have reported in forum 171091.  Please follow up on the respective incident for further assistance.
 

4. In next attempt to load another document fails with a null exception on await loadAsync

 

Please share with us the issue reproducing document to reproduce the reported issue from our side because it will help us to validate and provide you the appropriate solution at the earliest.
 


Please let us know if you have any other questions.

Regards,
Kalaivannan Ganesan
 



GG Gyorgy Gorog December 15, 2021 07:43 PM UTC

Well,  Kalaivannan, thanks for the update. Now with sync loading the document loads even if spell checking is enabled.

It takes a 6 pages docx 74 secs on my developer machine. True, all HU words are underlined red. 

I think we have another thread open regarding foreign language spellcheck.

Please comment.




KG Kalaivannan Ganesan Syncfusion Team December 17, 2021 02:23 AM UTC

 Hi Gorog,

Thanks for the update.


For SfRichTextBoxAdv, if language pack is installed in the machine. It does not require language dictionary to be added separately and supports spell checking in English, Spanish, German, French languages. 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/enus/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)

We have prepared a sample using SfRichTextBoxAdv with spell checker enabled in Hungarian language. Please find
the sample from following link.


Sample Link:
https://www.syncfusion.com/downloads/support/forum/171080/ze/RTE_SpellChecker703423427

Note: We have added sample dictionary for Hungarian language. Similarly, you can add for your preferredlanguage.

Please let us know if you have any other questions.

Regards,
Kalaivannan Ganesan
 



GG Gyorgy Gorog December 20, 2021 02:15 PM UTC

Kalaivannan, thanks for help. It works with limitations. Please close this thread. I will try to summarize (in table form?) my findings and minor headaches in a new thread. 


Loader.
Up arrow icon