The BIDIATTR is a 32-bit word that determines all the aspects of Bidi attributes related processing and window display associated with a specific application. The user controls the behavior of different applications (having different types of Bidi text) by manipulating these.
The following is the Bidi attributes structure:
--------------------------------------------------------------------------
BYTE BIT EXPLANATION VALUE
--------------------------------------------------------------------------
BYTE 3 Bit 7 Initialized BDA_INIT (PM ONLY)
Bit 4-6 level BDA_LEVEL
Bit 0-3 Type of support BDA_DATATYPE_VISUAL
BDA_DATATYPE_IMPLICIT
BYTE 2 Bit 0-1 Orientation(text) BDA_TEXT_ORIENT_LTR
BDA_TEXT_ORIENT_RTL
BDA_TEXT_ORIENT_CONTEXT (PM ONLY)
Bit 2-3 Reserved (must be zero)
Bit 4 Window Orientation BDA_WND_ORIENT_LTR
BDA_WND_ORIENT_RTL
Bit 5-7 Reserved (must be zero)
BYTE 1 Bit 4-7 Numeral Shapes BDA_NUMERALS_ARABIC
BDA_NUMERALS_PASSTHRU
BDA_NUMERALS_HINDI
BDA_NUMERALS_CONTEXT (PM ONLY)
Bit 2-3 Reserved (must be zero)
Bit 1 Word Break mode BDA_WORDBREAK_OFF (PM ONLY)
BDA_WORDBREAK_ON (PM ONLY)
Bit 0 Symmetric Swapping BDA_SYM_SWAP_OFF (PM ONLY)
BDA_SYM_SWAP_ON (PM ONLY)
BYTE 0 Character Shape Determination BDA_CSD_ON
BDA_CSD_PASSTHRU
BDA_CSD_BASE
BDA_CSD_INITIAL
BDA_CSD_MIDDLE
BDA_CSD_FINAL
BDA_CSD_ISOLATED