12.6.13. Embedded-text Flow Object Class

The embedded-text flow object class is used for embedding right-to-left text within left-to-right text or vice-versa. This flow object class shall only be inlined. It has a single principal port.

An embedded text flow object has the following characteristics:

The effect of the embedded text flow object is to make any line fragments that contain the content of the embedded text flow object use the specified direction as their inline-progression direction. For example, suppose a line contains four inline areas whose order (in the flow object stream) is A, B, C, D, where the B and C were contained in an embedded text flow object whose direction was the reverse of the paragraph's writing-mode. Then the line shall be built up as follows: first a partial line shall be built up containing B and C by placing the position point of C on the escapement point of B. Then the resulting partial line area shall be treated as an inline area whose position point is the escapement point of C and whose escapement point is the position point of B. The line shall then consist of A, then the inline partial line area produced from B and C, and finally D all placed using the writing-mode of the paragraph. See Figure 12.