From 763394e75feca351c9018929ee1da60e19e37d02 Mon Sep 17 00:00:00 2001
From: Fabian Steeg Service Manifest
authentication
dir
For instance, a service could expose the following minimal service manifest: @@ -939,6 +941,18 @@
If no explicit text-processing language is given, the first language of the intended audience returned by the service is considered the default text-processing language.
+All objects returned by reconciliation services (entities, types, properties, candidates, features, etc.) MAY declare an explicit text
+ base direction in a dir
field. The dir
value MUST be ltr
for left-to-right, rtl
for right-to-left, or auto
for determining the direction by examining the content of each JSON field.
+ This base direction applies to the natural language fields of the object: name
and description
(for candidates etc.), v
and str
(for property values).
+ Nested objects inherit the base direction of their parent, and can override it by setting their own dir
value. A default base direction for any natural language string returned by a service can be set in the dir
field of the
+ service manifest. Clients SHOULD consider the base direction to ensure correct rendering of content, e.g. by setting corresponding dir
attributes when rendering JSON responses in HTML.
+ For instance, rendering a Persian label for 'Yahoo!' like یاهو!
right-to-left will correctly display as یاهو!
.
If no explicit base direction is given, left-to-right is considered the default base direction.
+dir
attributes when rendering JSON responses in HTML.
For instance, rendering a Persian label for 'Yahoo!' like یاهو!
right-to-left will correctly display as یاهو!
.
+ In the following example, we first set the base direction for a data extension response row to ltr
, which is inherited by the first property, and overridden in the second property with rtl
:
+
+ +If no explicit base direction is given, left-to-right is considered the default base direction.
All objects returned by reconciliation services (entities, types, properties, candidates, features, etc.) MAY declare an explicit text
base direction in a dir
field. The dir
value MUST be ltr
for left-to-right, rtl
for right-to-left, or auto
for determining the direction by examining the content of each JSON field.
This base direction applies to the natural language fields of the object: name
and description
(for candidates etc.), v
and str
(for property values).
- Nested objects inherit the base direction of their parent, and can override it by setting their own dir
value. A default base direction for any natural language string returned by a service can be set in the dir
field of the
- service manifest. Clients SHOULD consider the base direction to ensure correct rendering of content, e.g. by setting corresponding dir
attributes when rendering JSON responses in HTML.
+ Nested objects inherit the base direction of their parent, and can override it by setting their own dir
value. A default base direction for any natural language string returned or processed by a service MAY be set in the dir
field of the
+ service manifest. If no explicit base direction is given, left-to-right is considered the default base direction. Clients SHOULD consider the base direction to ensure correct rendering of content, e.g. by setting corresponding dir
attributes when rendering JSON responses in HTML.
For instance, rendering a Persian label for 'Yahoo!' like یاهو!
right-to-left will correctly display as یاهو!
.
In the following example, we first set the base direction for a data extension response row to ltr
, which is inherited by the first property, and overridden in the second property with rtl
:
If no explicit base direction is given, left-to-right is considered the default base direction.