Today on my home PC I noticed a problem.
I have a book typed in microsft word.I want to create an program using this file.
this file is RTL Persian.
When I copied a line form it and pasted in my richview editor ,i saw a very strong problem .
all space chars position changed.
thus all words lost their meaning
If in word document we have spaces on position 5 ,7,10 right side of document.after paste space are in 5,7,10 form left side!
I played with paragraph left right style.but same.
An Important test:I typed same line in the same word document and copied both line and paste in trichview.
my typed one was ok.
what is problem?
I WILL POST A SIMPLE FILE,THIS NIGHT FROM HOME.
Problem in copy paste from Miscrosft word
-
- Posts: 25
- Joined: Thu Feb 02, 2006 6:53 am
- Contact:
-
- Posts: 25
- Joined: Thu Feb 02, 2006 6:53 am
- Contact:
-
- Posts: 25
- Joined: Thu Feb 02, 2006 6:53 am
- Contact:
Dear sergey,Did you test file?
I put a link here to this file too.
http://www.shayansoft.ir/d/test.doc
Thank you
I put a link here to this file too.
http://www.shayansoft.ir/d/test.doc
Thank you
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 25
- Joined: Thu Feb 02, 2006 6:53 am
- Contact:
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Did you change RichViewEdit1.BiDiMode=rvbdLeftToRight? If it is rvbdUnspecified, RTL text is not supported.
The copied RTF (at least in Word 2003) does not contain any text direction information, so the application must arrange text itself.
Unfortunately, TRichView is not so smart as Word in arranging bidirected text.
I am afraid in this case you need to help it: set BiDiMode of RTL paragraphs to rvbdRightToLeft.
The copied RTF (at least in Word 2003) does not contain any text direction information, so the application must arrange text itself.
Unfortunately, TRichView is not so smart as Word in arranging bidirected text.
I am afraid in this case you need to help it: set BiDiMode of RTL paragraphs to rvbdRightToLeft.
-
- Posts: 25
- Joined: Thu Feb 02, 2006 6:53 am
- Contact: