home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 133 / dpcs0399.iso / INTERNET / COFFEE / HTMLED55 / SETUP.EXE / file0190.bin < prev    next >
Encoding:
Text File  |  1998-11-04  |  5.1 KB  |  62 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
  2.    "http://www.w3.org/TR/REC-html40/strict.dtd">
  3. <html lang=en>
  4. <head>
  5. <title>BDO - BiDi Override</title>
  6. <link rev=Made href="mailto:liam@htmlhelp.com">
  7. <link rel=Start href="../index.html">
  8. <link rel=Glossary href="http://www.htmlhelp.com/glossary/glossary.html">
  9. <link rel=Copyright href="http://www.htmlhelp.com/copyright.html">
  10. <link rel=StyleSheet href="../style.css" type="text/css">
  11. <link rel=StyleSheet href="../aural.css" type="text/css" media=aural>
  12. <meta name="author" content="Liam Quinn">
  13. <meta name="description" content="A description of HTML 4.0's BDO element for overriding the bidirectional algorithm.">
  14. <meta name="keywords" content="bdo element, bidi, BiDi, BIDI, bidirectional, bidirectionality, override, overriding, bidirectional algorithm, bidirectional text, unicode, HyperText Markup Language, HTML, HTML4, HTML 4.0, Web Design Group, WDG, <bdo> tag">
  15. </head>
  16. <body>
  17. <h2><img src="../wdglogo1.gif" width=250 height=83 alt="The Web Design Group"></h2>
  18. <h1>BDO - <acronym title="Bidirectional">BiDi</acronym> Override</h1>
  19. <table>
  20.   <tr valign=top>
  21.     <th>Syntax</th>
  22.     <td><strong class=required><BDO></strong>...<strong class=required></BDO></strong></td>
  23.   </tr>
  24.   <tr valign=top>
  25.     <th>Attribute Specifications</th>
  26.     <td>
  27.       <ul>
  28.         <li><strong class=required><a href="../attrs.html#dir">DIR</a>=[ ltr | rtlá] (directionality of text)</strong></li>
  29.         <li><a href="../attrs.html#lang">LANG</a>=<var><a href="../values.html#languagecode">LanguageCode</a></var> (language of text)</li>
  30.         <li><a href="../attrs.html#core">core attributes</a></li>
  31.       </ul>
  32.     </td>
  33.   </tr>
  34.   <tr valign=top>
  35.     <th>Contents</th>
  36.     <td><a href="../inline.html">Inline elements</a></td>
  37.   </tr>
  38.   <tr valign=top>
  39.     <th>Contained in</th>
  40.     <td><a href="../inline.html">Inline elements</a>, <a href="../block.html">block-level elements</a></td>
  41.   </tr>
  42. </table>
  43. <p><a name=bidi>The <strong class=html>BDO</strong> element <em>overrides the bidirectional algorithm</em> for the enclosed text.</a> Characters in <a href="http://www.unicode.org/">Unicode</a> are assigned a directionality, left-to-right or right-to-left, to allow the text to be rendered properly. For example, while English characters are presented left-to-right, Hebrew characters are presented right-to-left.</p>
  44. <p>Unicode defines a <dfn>bidirectional algorithm</dfn> that must be applied whenever a document contains right-to-left characters. While this algorithm usually gives the proper presentation, occasionally authors must override the bidirectional algorithm and specify the directionality of the text. One such case is when Hebrew characters are stored in <em>visual order</em>, where the first character of a word is after the second character. Unicode assumes that the characters are stored in <em>logical order</em>, where the first character of a word is before the second character, so the bidirectional algorithm would result in a rendering with the first character incorrectly to the <em>left</em> of the second character.</p>
  45. <p>The <strong class=html>BDO</strong> element requires the <strong class=html><a href="../attrs.html#dir">DIR</a></strong> attribute to specify the directionality of the enclosed text. If a document contains Hebrew characters stored in visual order, one should use <strong class=html><BDO DIR=ltr><var>text</var></BDO></strong> to force the proper presentation for that text.</p>
  46. <p>Authors may alternatively override the bidirectional algorithm using the Unicode character <strong class=html>&#x202D;</strong> to force left-to-right directionality or <strong class=html>&#x202E;</strong> to force right-to-left directionality. The character <strong class=html>&#x202C;</strong> ends the overriding of the algorithm. These characters should not be used in combination with the <strong class=html><a href="../attrs.html#dir">DIR</a></strong> attribute.</p>
  47. <h2>More Information</h2>
  48. <ul>
  49.   <li><a href="http://www.w3.org/TR/REC-html40/struct/dirlang.html#edef-BDO">BDO in <abbr class=initialism title="World Wide Web Consortium">W3C</abbr> HTMLá4.0 Recommendation</a></li>
  50.   <li><a href="http://www.w3.org/TR/REC-html40/struct/dirlang.html#h-8.2.1">Introduction to the bidirectional algorithm</a></li>
  51.   <li><a href="http://www.unicode.org/">Unicode</a></li>
  52.   <li><a href="http://www.microsoft.com/globaldev/mideast/meissues.htm">Middle Eastern Language Issues</a></li>
  53. </ul>
  54. <div class=footer>
  55. <address>Maintained by <a href="http://www.htmlhelp.com/%7Eliam/">Liam Quinn</a> <<a href="mailto:liam@htmlhelp.com">liam@htmlhelp.com</a>></address>
  56. <p class=toolbar><a href="http://www.htmlhelp.com/"><img src="../wdglogo-small.gif" width=105 height=40 alt="Web Design Group ~"></a> <a href="../index.html" rel=Start>HTMLá4.0áReference</a>á~ <a href="../olist.html">ElementsábyáFunction</a>á~ <a href="../alist.html">ElementsáAlphabetically</a></p>
  57. <p class=copyright><a href="http://www.htmlhelp.com/copyright.html">Copyright ⌐</a> 1998 Liam Quinn. All rights reserved.</p>
  58. </div>
  59. </body>
  60. </html>
  61.  
  62.