i suppose that the example in the report that you are struggling with is
just supposed to show the effect of reordering. you need to tweak your text
so that the levels shown result from it.
about the rlm/lrm characters, they are defined at U+200e & U+200f, see
they have, as you can see, explicit L or R directionality but are
invisible. in your algorithm, you do not handle them explicitly - the
directional property from the character database will do the trick
automagically simply by being a strong directional code.
an editor could insert these characters to disambiguate the directionality
of text with weak directional properties - numbers or neutrals.
have a look at the implementation in
in the files that are named like ubidi* and bidi*. (the main algorithm is
in ubidi.c .)
hope this helps,
This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:20:56 EDT