SCRIPT_DIGITSUBSTITUTE
The SCRIPT_DIGITSUBSTITUTE structure contains the native digit and digit substitution settings.
typedef struct tag_SCRIPT_DIGITSUBSTITUTE {
DWORD NationalDigitLanguage : 16;
DWORD TraditionalDigitLanguage : 16;
DWORD DigitSubstitute :8;
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 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.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Usp10.h.
See Also
Uniscribe Overview, Uniscribe Structures, ScriptRecordDigitSubstitution