arabic rtf documents open, import bugs

General TRichView support forum. Please post your questions here
Post Reply
sr1111
Posts: 27
Joined: Thu Jan 31, 2008 12:18 pm

arabic rtf documents open, import bugs

Post by sr1111 »

there is absolute a bug for arabic .rtf documents
not detect some paragraph style (align right, center...)

Image


ms word 2000,2003,2007 very good this paragraph style

I did tried your richview all applications (unicode mixed, rtl, properties rtf...)

please you fixed


ms word 2003 very good.

image bottom


Image
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

By default, components do not support bidirected text.
To enable bidi support, assign RichViewEdit1.BiDiMode = rvbdRightToLeft (or rvbdLeftToRight).
sr1111
Posts: 27
Joined: Thu Jan 31, 2008 12:18 pm

Post by sr1111 »

I did tried applied set RichViewEdit1.BiDiMode = rvbdRightToLeft
not support, detect some (align right, left, center, justf...) paragraph

please can you research,

I can send my arabic.rtf document
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Justify in paragraphs is not supported when bidi support is enabled (treated as left). Other types of paragraphs must be imported correctly.
Please send me RTF file.
sr1111
Posts: 27
Joined: Thu Jan 31, 2008 12:18 pm

Post by sr1111 »

I was sent arabic.rtf file
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

There are 2 problems with this document.
1) Justify alignment. As I said before, it is not supported for bidirected text, treated as a left alignment. I made modifications: if paragraph is RTL, it will be treated as a right alignment.
2) BiDi properties of paragraphs were not read from RTF.

I made these fixes, now this document is loaded as shown below
Image
Fix will be uploaded on the next update.
sr1111
Posts: 27
Joined: Thu Jan 31, 2008 12:18 pm

Post by sr1111 »

thanks for information and help

1-can you talk me setting this document bidirectional this format for richviewedit

2-can you research (I did tried richviewedit for bidi) not support RVFParaStylesReadMode = rvf_sInsertMerge,rvf_sInsertMap only support rvf_sIgnore
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

1) Fixed version will be uploaded for registered TRichView users. I do not know how soon, but before the New Year. You do not need to change any setting. In the current version, just avoid using justify alignment, use left or right alignments instead.
2) Sorry, I do not understand your second question.
sr1111
Posts: 27
Joined: Thu Jan 31, 2008 12:18 pm

Post by sr1111 »

open, load, import for arabic documents

when I was applied, set RVFParaStylesReadMode = rvf_sInsertMerge or
rvf_sInsertMap for bidi, not correct, (aligment, parastyle, textstyle)

only support, correct, run = rvf_sIgnore

not:you can research but now, not important because you made these fixes for rtf

3- for this documents (arabic.rtf)
please could you modification, support Justify in paragraphs for bidi as parastyle aligment in the msoffice (winword),

Justify alignment:for arabic, bidi.. parastyle (Justify and right)
Justify alignment: for english. turkish, latin... parastyle (Justify and left)
as ms word

I see your uploaded image (http://www.trichview.com/support/files/arabic.gif) very good text but paragraphs only as right justify

You cant make only right,
you must be: right and Justify, (justified) as ms word

I will serching, looking your modification
thanks
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Value of RVFParaStylesReadMode is used when loading and inserting RVF (not RTF) files.
rvf_sInsertMerge and rvf_sInsertMap work correctly only if the document contains styles (i.e. it was saved when rvfoSaveParaStyles is included in RVFOptions).
The same for text styles.

May be you did not include rvfoSaveParaStyles and rvfoSaveTextStyles in RVFOptions?

As for justify alignment for bidirected text, it will be implemented sooner or later, but not in very near future.
Post Reply