Page 1 of 1
arabic rtf documents open, import bugs
Posted: Wed Dec 17, 2008 4:14 pm
by sr1111
there is absolute a bug for arabic .rtf documents
not detect some paragraph style (align right, center...)
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
Posted: Wed Dec 17, 2008 5:11 pm
by Sergey Tkachenko
By default, components do not support bidirected text.
To enable bidi support, assign RichViewEdit1.BiDiMode = rvbdRightToLeft (or rvbdLeftToRight).
Posted: Wed Dec 17, 2008 5:54 pm
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
Posted: Wed Dec 17, 2008 8:03 pm
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.
Posted: Thu Dec 18, 2008 3:08 pm
by sr1111
I was sent arabic.rtf file
Posted: Sun Dec 21, 2008 2:48 pm
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
Fix will be uploaded on the next update.
Posted: Sun Dec 21, 2008 5:29 pm
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
Posted: Sun Dec 21, 2008 7:43 pm
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.
Posted: Mon Dec 22, 2008 12:19 am
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
Posted: Mon Dec 22, 2008 4:40 pm
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.