6.0

Table Of Contents
72
Language Reference
4
The beginUTF8paragraphendUTF8paragraph structure can contain only the following commands:
setstyle(), setstyleext(), showUTF8(), and % (indicating a commented line).
Note that the first command within a beginUTF8paragraph...endUTF8paragraph structure must be
either a setstyle() or a setstyleext() command. The style identified in either of these commands must be
associated with the True Type font type called ”TT host UTF8Arabic”.
Only UTF8 text can be displayed in a PlanetPress Talk object defined using the beginUTF8paragraph
endUTF8paragraph structure. Non-UTF8 static text should therefore be converted to its UTF8 reference
using the Ansi/UTF8 Converter (place the cursor within the string and press CTRL+N). Variable text should
be converted using the mapUTF8 function.
No crlf procedures are permitted inside a paragraph structure, since crlfs are paragraph delimiters.
When a long string containing no spaces between its characters appears in the context of a show()
command and the beginUTF8paragraph ... endUTF8paragraph() command, the line of text will not
wrap.
Syntax
beginUTF8paragraph( lmargin, rmargin, firstindent, align, leading, majormode )
endUTF8paragraph()
Arguments
lmargin — Measure value specifying the left margin, in inches, of the text relative to the left border of the
object.
rmargin — Measure value specifying the right margin, in inches, of the text relative to the left border of the
object.
firstindent — Measure value specifying the indent, in inches, of the first line of the paragraph, relative to
the lmargin parameter.
align — String value specifying the text alignment within the paragraph. Possible values are 'left', 'right',
'center' and 'leftright' (for both left and right justification of text).
leading — Measure value specifying the amount of vertical space, in inches, between each line of the
paragraph.
majormode — String value specifying the text direction within the paragraph. Possible values are 'rtl' for
right to left, 'ltr' for left to right, and '' (an empty string — in this case the system tries to determine the
proper text direction automatically).
Code Sample Example
This example displays a justified paragraph with the UTF8 text running from right to left.