Re: pinEditSpell Crashes on DBCS text

pinEdit Add-On

pinEditSpell Crashes on DBCS text


Tuan Nguyen 07-30-2008, 11:56

Hi Hans-Peter,

I have the pinEditSpell add-on v6.0.0.612 installed. It crashes the application when spell checking is applied to DBCS text.

My questions are:

1. Is there an update to pinEditSpell that will support DBCS?

2. If not, is there anyway to capture this exception or disable spell checking when editor content is DBCS text?

Thanks,
Tuan

Re: pinEditSpell Crashes on DBCS text


Tuan Nguyen 07-31-2008, 12:29

The error is stack overflow. Following are the last 2 calls on the call stack:

mscorlib.dll!System.Collections.ArrayList.ArrayList(int capacity) + 0x18 bytes 
pinEditSpell.dll!Pintexx.Components.Web.pinEdit.Spell.SpellChecker.FindSuggestions(string word = "ひらがな", bool searchLowerCase = true) + 0x1a7 bytes 

Thanks,
Tuan

 Tuan Nguyen wrote:

Hi Hans-Peter,

I have the pinEditSpell add-on v6.0.0.612 installed. It crashes the application when spell checking is applied to DBCS text.

My questions are:

1. Is there an update to pinEditSpell that will support DBCS?

2. If not, is there anyway to capture this exception or disable spell checking when editor content is DBCS text?

Thanks,
Tuan

Re: pinEditSpell Crashes on DBCS text


Pintexx Support 07-31-2008, 8:58
Hello Tuan,

which version/technology do you use ?

1. What is DBCS ?
2. You can enable/disable spell checking yourself.

Regards,
Hans-Peter

Re: pinEditSpell Crashes on DBCS text


Tuan Nguyen 07-31-2008, 3:58

Hi Hans-Peter,

As mentioned in the first post, I'm using version 6.0.0.613 of the .NET pinEditSpell control.

1. Here's a quick quote from Wikipedia wrt DBCS.

DBCS stands for Double Byte Character Set. This term has two basic meanings:

  • In CJK computing, the term "DBCS" traditionally means a character set in which every graphic character not representable by an accompanying SBCS is encoded in two bytes; Han characters would generally comprise most of these two-byte characters.
  • The term "DBCS" can also mean a character set in which all characters (including all control characters) are encoded in two bytes.

2. How can you do enable/disable spell checking? This is probably the easier task. Since it does not look like the pinEditSpell control can handle DBCS text, I need to know when DBCS text is added to disable spell checking accordingly.

3. Also, the problem lies in the FindSuggestions(string, boolean) method. Do you anticipate any efforts in fixing this method to handle double-byte characters?

Thanks,
Tuan

Re: pinEditSpell Crashes on DBCS text


Pintexx Support 07-31-2008, 4:42
Hi Tuan,

you can turn spell checking with

editor.SpellOff()

Then you can disable spell button with
editor.EditToolbarSetObjectEnabled("SPELL",false)

Regards,
Hans-Peter

Re: pinEditSpell Crashes on DBCS text


Tuan Nguyen 07-31-2008, 7:56

Thanks, Hans-Peter.

As for question #3, you could reply to me privately.

Thanks,
Tuan