TRichView v.19 docx import

General TRichView support forum. Please post your questions here
Post Reply
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

TRichView v.19 docx import

Post by jgkoehn »

Greetings,
We were doing some testing and noticed that our ActionTestUni.exe compiled using Lazarus without changes is having text appear like they are joined.
Example: “EtymologicalTendenciesoftheRomans” should be “Etymological Tendencies of the Romans” the ActionTestUni.exe demo from the website works correctly.

.docx is attached for testing.
LazarusTRichViewSpacingsm.jpg
LazarusTRichViewSpacingsm.jpg (194.41 KiB) Viewed 14858 times
Attachments
Export from Trich fixed font in Word.zip
(251.39 KiB) Downloaded 964 times
Sergey Tkachenko
Site Admin
Posts: 17554
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: TRichView v.19 docx import

Post by Sergey Tkachenko »

I confirm the problem.
Quick fix: open RVXMLDoc.pas, change the line 110 from

Code: Select all

  ReadXMLFile(XMLDoc, Stream);
to

Code: Select all

  ReadXMLFile(XMLDoc, Stream, [xrfPreserveWhiteSpace]);
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

Re: TRichView v.19 docx import

Post by jgkoehn »

Thanks sir will do
Sergey Tkachenko
Site Admin
Posts: 17554
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: TRichView v.19 docx import

Post by Sergey Tkachenko »

Fixed in version 19.1.1 (uploaded for registered users)
Post Reply