摘要 |
For languages requiring bidirectional (left-to-right and right-to-left) text display support, a multi-field text string object encapsulates both a normal logical ordered version of the text string entered and a reverse ordered version in separate fields. A bidirectional-support property of the multi-field text string object is set based on whether the host system supports bidirectional text displays. In response to a display request, the multi-field text string object checks the bidirectional-support property. If bidirectional text display is supported, the multi-field text string object sets the field containing the normally-ordered character sequence for the text string as the display field. If bidirectional text display is not supported, the multi-field text string object sets the field containing the reverse-ordered character sequence for the text string as the display field. Display controls receiving the normally-ordered character sequence should display the text string with the proper directionality (right-to-left). Display controls receiving the reverse-ordered character sequence will display the display field contents with the incorrect directionality (left-to-right) but, as a result of the character sequence reversal, will effectively display the text string with the proper directionality. Bidirectional text may thus be displayed on systems which do not support bidirectional text display, using only conventional, left-to-right only directional display controls.
|