Re: about assign direction types for characters

From: Eli Zaretskii <>
Date: Sun, 09 Oct 2011 09:20:56 -0400

> Date: Sun, 9 Oct 2011 18:21:43 +0800
> From: li bo <>
> List-software: Ecartis version 1.0.0
> Before determining embedding levels for characters, assign directional types
> like this
> // assign directional types
> classify(pszInput, types, cch);
> And after determining embedding levels, assign directional types again ,but
> for WS,S
> // assign directional types again, but for WS, S this time
> classify(pszInput, types, cch, true);
> Why not assign directional types for WS and S in the first time?

The second call to 'classify' is due to L1, which says that certain
types of characters should have their level reset to the paragraph
embedding level.

You cannot do this in the first place, because the parts of the UBA
before that need to distinguish between segment separators, paragraph
separators, and whitespace. L1 is one of the last stages of
processing, when the original bidi properties were already taken into
account, so it is possible at this stage to reset the levels of these
Received on Sun Oct 09 2011 - 08:26:00 CDT

This archive was generated by hypermail 2.2.0 : Sun Oct 09 2011 - 08:26:01 CDT