[x] It must be possible to indicate base direction for each individual paragraph-level item of natural language text that will be read by someone. more _Comments_gohere
[x] It must be possible to indicate base direction changes for embedded runs of inline bidirectional text for all localizable text. more _Comments_gohere
Background information
[x] Do not assume that direction can be determined from language information. more _Comments_gohere
Base direction values
[x] Values for the default base direction should include left-to-right, right-to-left, and auto. more _Comments_gohere
Handling direction in markup
[x] The spec should indicate how to define a default base direction for the resource as a whole, ie. set the overall base direction. more _Comments_gohere
[x] The default base direction, in the absence of other information, should be LTR. more _Comments_gohere
[x] The content author must be able to indicate parts of the text where the base direction changes. At the block level, this should be achieved using attributes or metadata, and should not rely on Unicode control characters. more _Comments_gohere
[x] It must be possible to also set the direction for content fragments to auto. This means that the base direction will be determined by examining the content itself. more _Comments_gohere
[x] If the overall base direction is set to auto for plain text, the direction of content paragraphs should be determined on a paragraph by paragraph basis. more _Comments_gohere
Handling base direction for strings
[x] Provide metadata constructs that can be used to indicate the base direction of any natural language string. more _Comments_gohere
[ ] Specify that consumers of strings should use heuristics, preferably based on the Unicode Standard first-strong algorithm, to detect the base direction of a string except where metadata is provided. more Doesn't this conflict with the point above: The default base direction, in the absence of other information, should be LTR.
[x] Where possible, define a field to indicate the default direction for all strings in a given resource or document. more _Comments_gohere
[x] Do NOT assume that a creating a document-level default without the ability to change direction for any string is sufficient. more _Comments_gohere
[ ] If metadata is not available due to legacy implementations and cannot otherwise be provided, specifications MAY allow a base direction to be interpolated from available language metadata. more Doesn't this conflict with the point above: The default base direction, in the absence of other information, should be LTR.
[x] Specifications MUST NOT require the production or use of paired bidi controls. more _Comments_gohere
Setting base direction for inline or substring text
[ ] It must be possible to indicate spans of inline text where the base direction changes. If markup is available, this is the preferred method. Otherwise your specification must require that Unicode control characters are recognized by the receiving application, and correctly implemented. more _Comments_gohere
[ ] It must be possible to also set the direction for a span of inline text to auto, which means that the base direction will be determined by examining the content itself. A typical approach here would be to set the direction based on the first strong directional character outside of any markup. more _Comments_gohere
[ ] If users use Unicode bidirectional control characters, the isolating RLI/LRI/FSI with PDI characters must be supported by the application and recommended (rather than RLE/LRE with PDF) by the spec. more _Comments_gohere
[ ] Use of RLM/LRM should be appropriate, and expectations of what those controls can and cannot do should be clear in the spec. more _Comments_gohere
This is a self-review checklist based on the Internationalization Best Practices for Spec Developers.
(I've skipped what seemed formatting and markup related here.)
See also issue #52, #125 and notes at https://etherpad.lobid.org/p/reconciliation-i18n.
Basic requirements
_Comments_gohere
_Comments_gohere
Background information
_Comments_gohere
Base direction values
_Comments_gohere
Handling direction in markup
_Comments_gohere
_Comments_gohere
_Comments_gohere
auto
. This means that the base direction will be determined by examining the content itself. more_Comments_gohere
auto
for plain text, the direction of content paragraphs should be determined on a paragraph by paragraph basis. more_Comments_gohere
Handling base direction for strings
_Comments_gohere
Doesn't this conflict with the point above: The default base direction, in the absence of other information, should be LTR.
_Comments_gohere
_Comments_gohere
Doesn't this conflict with the point above: The default base direction, in the absence of other information, should be LTR.
_Comments_gohere
Setting base direction for inline or substring text
_Comments_gohere
auto
, which means that the base direction will be determined by examining the content itself. A typical approach here would be to set the direction based on the first strong directional character outside of any markup. more_Comments_gohere
_Comments_gohere
_Comments_gohere
Detecting & matching direction (TBD)