[Fribidi-discuss] resolution of neutral characters
Tomas Frydrych
tomas at frydrych.uklinux.net
Thu Apr 10 10:19:04 EST 2003
Hi everyone,
I think I might have found a bug in FriBidi's handling of neutral
characters. I am not sure whether this is a bug in FriBidi, or
whether this is a problem with the Unicode algorithm, but one way or
another the resulting behaviour is unintuitive.
The following string, where capitals represent RTL characters,
"A log(k) B"
resolves to
"B (log(k A"
I think that the correct visual string should be
"B log(k) A"
Obviously, the closing parenthesis is presently resolved to an RTL
character (embeding level 1), while the opening parenthesis is
treated as LTR character (level 2). It seems to me that matching
pairs of parentheses, braces, etc., should always be resolved to the
embeding level of the opening element of the pair.
Tomas
More information about the FriBidi
mailing list