SCRIPT_DIGITSUBSTITUTE (Compact 2013)

3/28/2014

This structure contains the native digit and digit substitution settings.

Syntax

typedef struct tag_SCRIPT_DIGITSUBSTITUTE {
  DWORD NationalDigitLanguage;
  DWORD TraditionalDigitLanguage;
  DWORD DigitSubstitute;
  DWORD dwReserved;
} SCRIPT_DIGITSUBSTITUTE;

Members

  • NationalDigitLanguage
    Language for native substitution.
  • TraditionalDigitLanguage
    Language for traditional substitution.
  • DigitSubstitute
    Substitution type.
  • dwReserved
    Reserved. Initialize to 0.

Remarks

The DigitSubstitute member of SCRIPT_DIGITSUBSTITUTE structure is normally set by ScriptRecordDigitSubstitution. However, it may be replaced by any one of the following values:

SCRIPT_DIGITSUBSTITUTE_CONTEXT: Digits U+0030 to U+0039 are substituted using the language of the prior letters. If there are no prior letters, digits are substituted using the TraditionalDigitLanguage member of the SCRIPT_DIGITSUBSTITUTE structure. This member is normally set to the primary language of the locale passed to ScriptRecordDigitSubstitution.

SCRIPT_DIGITSUBSTITUTE_NATIONAL: Digits U+0030 to U+0039 are substituted using the NationalDigitLanguage member of the SCRIPT_DIGITSUBSTITUTE structure. This member is normally set to the national/regional digits returned for the NLS LCTYPE LOCALE_SNATIVEDIGITS by ScriptRecordDigitSubstitution.

SCRIPT_DIGITSUBSTITUTE_NONE: Digits are not substituted. Unicode values U+0030 to U+0039 are displayed with Arabic, that is Western, numerals.

SCRIPT_DIGITSUBSTITUTE_TRADITIONAL: Digits U+0030 to U+0039 are substituted using the TraditionalDigitLanguage member of the SCRIPT_DIGITSUBSTITUTE structure. This member is normally set to the primary language of the locale passed to ScriptRecordDigitSubstitution.

Requirements

Header

usp10.h

See Also

Reference

Uniscribe Structures
ScriptRecordDigitSubstitution