On Sun, Jul 17, 2011 at 12:30:13PM -0400, James Cloos wrote: > >>>>> "TH" == Taco Hoekwater <[email protected]> writes: > > TH> P1. Split the text into separate paragraphs. A paragraph separator is > TH> kept with the previous paragraph. Within each paragraph, apply all > TH> the other rules of this algorithm. > > TH> Now, how does that apply to an \hbox ? I simply do not know. > > The basic idea, remembering that unicode's bidi algorithm is designed to > apply to plain text, is to treat things like \hbox, math boxes and the > like as a single character w/in their enclosing paragraphs, and as a > paragraph inside of the box. > > Boxes of that sort probably should be treated as weak-l2r by default.
I simply treat all non characters nodes as neutrals, so they inherit the direction of their surroundings. Regards, Khaled -- Khaled Hosny Egyptian Arab
