diff --git a/index.bs b/index.bs index 499d6a2f..0110d500 100644 --- a/index.bs +++ b/index.bs @@ -12751,6 +12751,60 @@ type is used for representing function values that take no arguments and do not return any value. +

TextDirection

+ +
+    enum TextDirection {
+      "auto",
+      "ltr",
+      "rtl"
+    };
+
+ +The {{TextDirection}} [=enumerable=] is used to represent text directionality as described in [[!BIDI]]. + + +

Localizable

+ +A localizable member is a dictionary member whose type is {{LocalizableString}}. +Such members represent one or more bidirectional algorithm paragraphs when displayed, +as defined by the bidirectional algorithm’s rules P1, P2, and P3, +including, for instance, supporting the paragraph-breaking behavior +of U+000A LINE FEED (LF) characters. [[!BIDI]] + +A user agent is expected to honor the Unicode semantics of [=localizable members=]. + +
+    dictionary Localizable {
+      DOMString lang = "";
+      DOMString value = "";
+      TextDirection dir = "auto";
+    };
+    typedef (DOMString or LocalizedValue) LocalizableString;
+
+ +The {{Localizable/lang}} member specifies the primary language for the {{Localizable/value}} member. +Its value is a {{DOMString}}. +The empty string indicates that the primary language is unknown. +Any other string must be interpreted as a language tag. +Validity or well-formedness are not enforced. [[!BCP47]] + +The {{Localizable/value}} is a {{DOMString}} to be localized. + +For the {{Localizable/value}}, the {{Localizable/dir}} member provides the higher-level override of rules P2 and P3 +if it has a value other than "auto". [[!BIDI]] + +
+
+       dictionary PaymentItem {
+           required LocalizableString label;
+           required PaymentCurrencyAmount amount;
+           boolean pending = false;
+       };
+    
+
+ +

Extensibility

This section is informative.