Page 1 of 1

Copy text from TRichView to Word -> no Spellcheck

Posted: Wed Apr 25, 2007 12:50 pm
by Kern
If we copy text from a TRichViewEdit component to Word using the clipboard, the text copied will not be check by the spellchecking-routine of word.

If we have a look at the properties of the copied text in Word, the property "Rechtschreibung und Grammatik nicht prüfen" (in english: "Spellchecking and Gramatic disabled") is set.

Any idea?

Posted: Sun Apr 29, 2007 7:52 am
by Sergey Tkachenko
Currently, TRichView saves language of text depending on TextStyles[].Charset.
"No spell check" ($0400 language) is saved for the following charsets:
OEM_CHARSET, MAC_CHARSET (these two must not present in TRichView at all),
SYMBOL_CHARSET,
EASTEUROPE_CHARSET.
The last one is because there are too many different languages in this charset. But now I think this is a bad solution. For EASTEUROPE_CHARSET, no language must be saved at all. To fix it, open RVUni.pas and change RVU_Charset2Language. For EASTEUROPE_CHARSET, it must return $0000.

PS: I believe the problem was with EASTEUROPE_CHARSET.

Posted: Sun Apr 29, 2007 7:59 am
by Sergey Tkachenko
PPS: As far as I remember, in older versions, "no spell check" was saved also for DEFAULT_CHARSET. But it was in very very old versions.