@@ -940,19 +940,10 @@ The _Default Bidi Strategy_ is defined as follows:
940940 Note that this is normally the empty string.
941941 1. Append `fmt` to `out`.
942942 1. Else:
943- 1. Let `fmt` be the formatted string representation of the _resolved value_ of `part`.
944- 1. Let `dir` be `DIR(part)`,
943+ 1. Let `resval` be the _resolved value_ of `part`.
944+ 1. Let `fmt` be the formatted string representation of `resval`.
945+ 1. Let `dir` be `DIR(resval)`,
945946 one of « `'LTR'`, `'RTL'`, `'unknown'` », with the same meanings as for `msgdir`.
946- > [!NOTE]
947- > _Resolved values_ need to track two different pieces of metadata about directionality:
948- > the "isolate" flag (see the next step for how that is used), which determines
949- > whether the formatted result needs to be isolated; and the directionality itself.
950- > Each _function handler_ can have its own means for determining the directionality
951- > of the _resolved value_ it returns.
952- > Alternately, an implementation could elide this tracking and instead determine
953- > the directionality from the locale.
954- > The directionality SHOULD NOT be determined by introspecting
955- > the character sequence in `fmt`.
956947 1. Let the boolean value `isolate` be
957948 True if the `u:dir` _option_ of the _resolved value_ of `part` has a value other than `'inherit'`,
958949 or False otherwise.
@@ -973,20 +964,23 @@ The _Default Bidi Strategy_ is defined as follows:
973964 1. Append U+2069 POP DIRECTIONAL ISOLATE to `out`.
9749651. Emit `out` as the formatted output of the message.
975966
976- The auxiliary function `DIR`, which maps an _expression_ to one of
977- « `'LTR'`, `'RTL'`, `'unknown'` », is expected to be defined using the
978- _resolved value_ of the _expression_. An implementation can use
967+ The auxiliary function `DIR` maps a _resolved value_to one of
968+ « `'LTR'`, `'RTL'`, `'unknown'` ». (A _resolved value_ in turn
969+ is derived from an _expression_ together with a _formatting context_.)
970+ An implementation can use
979971a representation of _resolved values_ that tracks two different
980- pieces of metadata about directionality: the `isolate` flag used in step 2(iii),
981- and the directionality itself. Each _function handler_ can have its own means
972+ pieces of metadata about directionality:
973+ the `isolate` flag used in step 2(iii),
974+ and the directionality itself.
975+ Each _function handler_ can have its own means
982976for determining the directionality annotation on the _resolved value_ it returns.
983- Alternately, an implementation could simply compute `DIR(exp)` based on the
984- locale.
977+ Alternately, an implementation could simply compute `DIR(part)`
978+ based on the locale.
985979
986980> [!NOTE]
987- > `DIR(exp )` SHOULD NOT be determined by introspecting
981+ > `DIR(part )` SHOULD NOT be determined by introspecting
988982> the character sequence in the formatted string representation
989- > of the resolved value of `exp `.
983+ > of the resolved value of `part `.
990984
991985
992986
0 commit comments