@@ -710,13 +710,7 @@ <h3 id=unicode-bidi><span class=secno>2.2. </span>Embeddings and Overrides:
710710 as if the bidi control codes had been added as described above, markup had
711711 been stripped, and the resulting character sequence had been passed to an
712712 implementation of the Unicode bidirectional algorithm for plain text that
713- produced the same line-breaks as the styled text. If an inline element is
714- broken around a bidi paragraph boundary (e.g. if split by a block or
715- forced paragraph break), then the bidi control codes corresponding to the
716- end of the element are added before the interruption and the codes
717- corresponding to the start of the element are added after it. (In other
718- words, any embedding levels or overrides started by the element are closed
719- at the paragraph break and reopened on the other side of it.)
713+ produced the same line-breaks as the styled text.
720714
721715 < p > In this process, replaced elements with ‘< code class =css > display:
722716 inline</ code > ’ are treated as neutral characters, unless their
@@ -728,6 +722,14 @@ <h3 id=unicode-bidi><span class=secno>2.2. </span>Embeddings and Overrides:
728722 class =property > direction</ code > </ a > ’ specified for the element. All
729723 other atomic inline-level boxes are treated as neutral characters always.
730724
725+ < p > If an inline element is broken around a bidi paragraph boundary (e.g. if
726+ split by a block or forced paragraph break), then the bidi control codes
727+ corresponding to the end of the element are added before the interruption
728+ and the codes corresponding to the start of the element are added after
729+ it. (In other words, any embedding levels or overrides started by the
730+ element are closed at the paragraph break and reopened on the other side
731+ of it.)
732+
731733 < p > Please note that in order to be able to flow inline boxes in a uniform
732734 direction (either entirely left-to-right or entirely right-to-left), more
733735 inline boxes (including anonymous inline boxes) may have to be created,
@@ -748,6 +750,9 @@ <h3 id=unicode-bidi><span class=secno>2.2. </span>Embeddings and Overrides:
748750 class =css > unicode-bidi: isolate</ code > ’ is preferred to keep the
749751 element together in case display is changed to inline (see example below).
750752
753+ < h3 id =bidi-example > < span class =secno > 2.3. </ span > Example of Bidirectional
754+ Text</ h3 >
755+
751756 < p > The following example shows an XML document with bidirectional text. It
752757 illustrates an important design principle: document language designers
753758 should take bidi into account both in the language proper (elements and
@@ -756,9 +761,6 @@ <h3 id=unicode-bidi><span class=secno>2.2. </span>Embeddings and Overrides:
756761 such rules should not be overridden by other style sheets so that the
757762 document language's bidi behavior is preserved.
758763
759- < h3 id =bidi-example > < span class =secno > 2.3. </ span > Example of Bidirectional
760- Text</ h3 >
761-
762764 < div class =example >
763765 < p > In this example, lowercase letters stand for inherently left-to-right
764766 characters and uppercase letters represent inherently right-to-left
0 commit comments