On 28 Mar 01, at 12:02, Marco Cimarosti wrote:

> > >   struct MyWysiwygGlyph
> > >   {
> > >           wchar_t GlyphCode;
> > >           int             EmbeddingLevel;
> > >   };
> > > I think that Roozbeh had something quite similar in mind.
> > 
> > Yes. I was not sure that if that's enough, but after this 
> > discussion, I believe them to be enough.
> 
> It depends. Enough for what?

   Consider

      RLE a b c PDF RLE d e f PDF

in an LTR region (where a, b, ... are neutral). This displays as

      cbafed

i e, 2 RTL runs in LTR order. If you encode that as

      a b c d e f
      1 1 1 1 1 1

it's indistinguishable from

      RLE a b c d e f PDF

which displays as

      f e d c b a

> Storing the level with each character is enough for generating *one* valid
> Unicode logical order. This logical string should have the same logical
> order as the original string, and the embedding relationships (who embeds
> whom).

   So I don't see how this can work. Am I missing something?

        /|
 o o o (_|/
        /|
       (_/

Reply via email to