trichview.com

trichview.support




Re: Wrong character-Sorting with arabic text


Return to index


Author

Message

Sergey Tkachenko

Posted: 01/30/2003 19:06:47


I'm sorry, but correct support of bidimode text is possible only with a

capable font.

While many fonts can display "exotic" characters, function that RichView

uses in bidimode (GetCharacterPlacement) returns incorrect results about

them

(for example, from 11 your Cyrillic characters the first 7 are "exotic", and

the last 4 are from modern Russian; this function returns zeros as widths of

the first 7 characters).

I tested several fonts, and it looks like all works perfectly only with

"Arial Unicode". But this font does not present on all computers - it is

shipped together with MS Office 2000+.

So the only solution (except from using "Arial Unicode" font - specifying

BiDiMode not for all document, but only for paragraphs containing hebrew or

arabic text.



> The attached Documents should show the problems.

> The rtftest_word.rtf is generated by MS-Word.

>

> "Sergey Tkachenko" <[email protected]> schrieb im Newsbeitrag

> news:[email protected]...

> > Bidirected text is unsupported is BiDiMode is rvbdUnspecified.

> > When bidimode is LeftToRight or RightToLeft, bidirected text inside one

> item

> > must be displayed absolutely correctly. Items inside one paragraph will

be

> > arranged rtl or ltr depending on bidimode (this is imperfection, I plan

to

> > implement arrangement of items according to text bidi properties in next

> > version). But selection must work correctly.

> > BiDiMode can be set not only for all document, but for specified

> paragraphs

> > and items (if it is Unspecified, it is inherited from the top level).

> >

> > Please send me an example of document to demonstrate the problem.

> >

> >

> > --

> > Sergey Tkachenko

> > [email protected]

> > http://www.trichview.com

> >

> >

> >

> >

> >

> > > BiDiMode is set to rvbdUnspecified.

> > > If I set it to LeftToRight or RightToLeft, the behaviour when

selecting

> a

> > > text

> > > is bad, when I load a mixed-File (Text mixed with many codepages).

> >

> >

> >

>

>

>





Powered by ABC Amber Outlook Express Converter