Special Language Settings, Direction of Writing

The standard direction for text in input fields and text blocks is left to right, accordingly contents taking up multiple lines are displayed left-aligned. (Exception: amount fields)

However, in some languages, e.g., Arabic, text is written right to left and text is displayed right-aligned.

If for these languages (in the example AR = Arabic) an entry is made in the file TDPARA.INI

[Special Options]
RTLUILS=AR

then via

$var = GetContext( "DIRECTION", xxxUIL )

where xxxUIL contains the abbreviation for the language to be used to fill in the field/block, it can be tested whether this language belongs to the “RightToLeftUserInterfaceLanguageS” and, using

 SetValues( <Feld/Block>, "P DIRECTION " + $var ) 
 

can be set to the relevant text direction. When printing the field in a document, this entry also determines the text direction to be used.

You can find more information about this topic as well as tips for settings and configuration at 'Handling of Arabic Text' in the TradeDesign documentation.