It is up to the application that displays the XML as to how
it will appear to you, so I can't speak for whether it the XML will
look LTR or RTL when you view it. But the idea is that the Unicode
characters are stored in reading order. For TLF, we get the Unicode
in reading order, and then the Player converts them into "atoms"
that are ordered either RTL or LTR depending on the Unicode values.
The example in bidi.xml does have many shorter lines, but the
same principle works on longer paragraphs as well, and TLF, using
the Player, will correctly do line wrap regardless of the text
direction. In order to get the column order, indents, and
punctuation to look right, you will have to decide if your TextFlow
and paragraph is mainly LTR or RTL and set the direction attribute
appropriately.