Bp spec bidi

From Internationalization

Jump to: navigation, search

Collaborative editing page

Follow the conventions for editing this page.

Status: Initial Draft ie. please focus on technical content, rather than wordsmithing at this stage.

See the [I18n Core home page].

Author: Richard Ishida

Initial Best Practices for Specification Developers: Handling Bidi

  1. provide dedicated attributes for control of base direction and bidirectional overrides; do not rely on the user applying style properties to arbitrary markup to achieve bidi control
  2. allow bidi attributes on all elements that contain text content
  3. provide attributes that allow the user to (a) create an embedded base direction or (b) override the bidirectional algorithm altogether; the attribute should allow the user to set the direction to ltr or rtl in either of these two scenarios.
  4. declare the default base direction of the document to be LTR.
  5. make it possible to set the base direction on the top level element in a document
  6. ensure that the base direction set on an element is applied to all contained elements and text (unless, of course, the base direction is changed by a contained element using the directional attributes)
  7. provide a span-like element that can be used for any text content to change the base direction in the absence of other markup
  8. avoid natural language text in elements that only allow for plain text and in attribute values.
Personal tools