SCRIPT_STATE (Windows CE 5.0)

Send Feedback

This structure is used to initialize the Unicode algorithm state as an input parameter to ScriptItemize. It is also a component of the analysis that ScriptItemize returns.

typedef struct tag_SCRIPT_STATE {   WORD uBidiLevel;   WORD fOverrideDirection;   WORD fInhibitSymSwap;   WORD fCharShape;   WORD fDigitSubstitute;   WORD fInhibitLigate;   WORD fDisplayZWG;   WORD fArabicNumContext;   WORD fGcpClusters;   WORD fReserved;   WORD fEngineReserved; } SCRIPT_STATE;

Members

  • uBidiLevel
    The embedding level associated with all characters in this run according to the Unicode bidirectional algorithm. When passed to ScriptItemize, should be initialized to zero for an LTR base embedding level, or 1 for RTL.
  • fOverrideDirection
    TRUE if this level is an override level (LRO/RLO). In an override level, characters are laid out in one direction only, either left-to-right or right-to-left. No reordering of digits or strong characters of opposing direction takes place. The initial override level is reset by LRE, RLE, LRO or RLO codes in the string.
  • fInhibitSymSwap
    TRUE if the shaping engine is to bypass mirroring of Unicode mirrored glyphs such as brackets. Set by Unicode character ISS, cleared by ASS.
  • fCharShape
    TRUE if character codes in the Arabic Presentation Forms areas of Unicode should be shaped. (Not implemented).
  • fDigitSubstitute
    TRUE if character codes U+0030 through U+0039 (European digits) are to be substituted by national digits. Set by Unicode NADS, cleared by NODS.
  • fInhibitLigate
    TRUE if ligatures are not to be used in the shaping of Arabic or Hebrew characters.
  • fDisplayZWG
    TRUE if control characters are to be shaped as representational glyphs. (Typically, control characters are shaped to the blank glyph and given a width of zero).
  • fArabicNumContext
    This should normally be set to TRUE before itemizing an RTL paragraph in an Arabic language, and FALSE otherwise.
  • fGcpClusters
    Not supported. Set to zero.
  • fReserved
    Reserved. Always initialize to zero.
  • fEngineReserved
    Reserved. Always initialize to zero.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: Usp10.h.

See Also

ScriptItemize | ScriptShape

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.