Page 1 of 1
paste text from office word, space cause mess code
Posted: Sun Mar 06, 2022 5:12 am
by wolf1860
A test docx file sent to
[email protected].
Text in word,with show special paragraph symbols:
RVE demo paste result:
Re: paste text from office word, space cause mess code
Posted: Mon Mar 07, 2022 9:47 am
by wolf1860
Any suggestions?
Re: paste text from office word, space cause mess code
Posted: Mon Mar 07, 2022 8:19 pm
by Sergey Tkachenko
I confirm the problem (unexpected 牋 character).
I need some time to understand why it happens.
Re: paste text from office word, space cause mess code
Posted: Thu Mar 10, 2022 9:44 am
by Sergey Tkachenko
RTF import code did not take into account that in Chinese encoding, the non-breaking space character does not have $A0 code.
Quick fix:
Open RVRTF.pas file, find the line containing the substring:
Change this line to:
Code: Select all
(Keyword:'~'; DefValue:$00A0; UseDef:False; kwd:rtf_kwd_WideChar; idx:$A0; AffectTo:rtf_af_None),
Re: paste text from office word, space cause mess code
Posted: Thu Mar 10, 2022 1:48 pm
by wolf1860
That works perfect! Thank u for ur sweet support:)
Re: paste text from office word, space cause mess code
Posted: Tue Mar 15, 2022 4:23 pm
by Sergey Tkachenko
The fixes are included in TRichView 20.1 (uploaded today)