bidi
Links
- Bidirectionality - Google design guidelines
- wikipedia: Bidirectional character type
- doctype-mirror.googlecode.com: BiDi HowTo: More Documentation
- Bidi Algorithm and Inline Markup
- Bidi Embedding Controls (LRE, RLE, LRO, RLO, PDF), U+202A..U+202E
- These characters duplicate available markup, which
is better suited to handle the stateful nature of
their effect.
- Using HTML directionality markup with Unicode characters
- Authors and designers of authoring software
should be aware that conflicts can arise if
the
dir
attribute
is used on inline elements
(including BDO)
concurrently with the
corresponding UNICODE formatting
characters.
- Preferably one or the other should
be used exclusively. The markup method offers a
better guarantee of document structural
integrity and alleviates some problems when
editing bidirectional HTML text with a simple
text editor, but some software may be more apt
at using
the UNICODE characters.
- If both methods are used, great care should be
exercised to insure proper nesting of markup and
directional embedding or override, otherwise,
rendering results are undefined._
- Language information and text direction
- When an inline element that does not have a dir
attribute is transformed to the style of a
block-level element by a style sheet, it inherits
the dir attribute from its closest parent block
element to define the base direction of the block.
- When a block element that does not have a dir
attribute is transformed to the style of an inline
element by a style sheet, the resulting presentation
should be equivalent, in terms of bidirectional
formatting, to the formatting obtained by explicitly
adding a dir attribute (assigned the inherited
value) to the transformed element.
- Introduction to the bidirectional algorithm
- Overriding the bidirectional algorithm: the BDO element
- The bidirectional algorithm and the dir attribute
generally suffice to manage embedded direction changes.
- However, some situations may arise when the
bidirectional algorithm results in incorrect
presentation.
- The BDO element allows authors to turn off the
bidirectional algorithm for selected fragments of text.
- The
dir
attribute is mandatory for this element.
- Inheritance of text direction information
- BiDi Algorithm
- Internationalization Best Practices: Handling Right-to-left Scripts
- HTML: Specifying the direction of text and tables
- Unicode controls vs. markup for bidi support
- CSS vs. markup for bidi support
- Authoring HTML: Handling Right-to-left Scripts
- Internationalization Best Practices: Handling Right-to-left Scripts in XHTML and HTML Content -- (Editors' copy)
- Best Practices for Authoring HTML: Handling Right-to-left Scripts
Snippets
Content-Language
HTTP header.
- Set the
lang
lang attribute on HTML tags. You can
set it on the top level <html>
tag and override it in
child nodes.
dir
attribute of HTML elements. Choices are ltr
(default) and rtl
.