DynaPDF Manual - Page 833
Previous Page 832 Index Next Page 834
Function Reference
Page 833 of 839
The function supports also specific Unicode characters which are used to control the bidirectional
algorithm. The bidirectional formatting codes are also supported by all other text functions.
Character code (Hex)
Description
0x202A
LRE Left-to-Right Embedding (treat the following text as embedded left-to-right)
0x202B
RLE Right-to-Left Embedding (treat the following text as embedded right-to-left)
0x202C
PDF Pop Directional Format (restore the bidirectional state to what it was before
the last LRE, RLE, LRO or RLO)
0x202D
LRO Left-to-Right Override (force the following characters to be treated as
strong left-to-right characters)
0x202E
RLO Right-to-Left Override (force the following characters to be treated as
strong right-to-left characters)
0x200E
LRM Left-to-Right Mark (left-to-right zero-width character)
0x200F
RLM Right-to-Left Mark (right-to-left zero-width character)
0x200C
Zero width non-joiner
0x200D
Zero width joiner
The bidirectional code pages 1255 and 1256 support the character codes 0x200E and 0x200F only (the
mapped codes are 253 and 254).
Note that the Unicode character codes are supported by the Unicode version of the function only.
Escape Sequences
In situations where an alignement or command tag should be output as plain text it is possible to
precede the tag with an additional backslash. This marks the string as plain text and the function
does not interpret it as command or alignment tag. The first backslash is treated as escape character
and will be removed.
Example:
\\
= \\
\\ce#
= \ce#
\\\le#
= \\le#
\\LI [...] = \\LI [...] // No valid tag -> always processed as text
\\LI[...]
= \LI[...]
The function compares the first four characters of command tags which accept parameters . If the
sequence matches a command tag an additional backslash is required if the string should be output
as text.
It is also possible to fully disable alignment and command tags with the flag taPlainText that can be
passed to the parameter Align. Combine the flag with the wished alignment constant with a binary
or operator, e.g. (TTextAlign)(taRight | taPlainText). This can be useful when it is known that the
Previous topic: Special characters
Next topic: How to create multi-column text?