[0] :ClassbdiSimple: MiPageSample[1] ⍝ Control:: _html.bdi [2] ⍝ Description:: Isolate text that should be displayed with a reading order that is different from the surrounding text [3] [4] ∇ Compose;p[5] :Access Public
[6] AddWrapFollowing'p'[7] ⍝ Not all browsers support this! [8] ⍝[9] ⍝ The below characters will look like <span class="serif">&#8501;&#8502;&#8503;&#8504;</span> [10] ⍝ in editors which do not support bi-directional text, but like [11] ⍝ <span class="serif">&#8504;&#8503;&#8502;&#8501;</span> in browsers and some editors. [12]p←Add_.p'The first four letters of the Hebrew alphabet are '[13]'.serif'p.Add_.bdi'אבגד'[14][15]Add_.p'bdi can also be used to reverse text:'[16]p←Add_.p'Reverse text: '[17]'#flip''.serif'p.Add_.bdi'this text has been reversed'[18][19]Add_.style'#flip {direction: rtl; unicode-bidi: bidi-override;} .serif {font-family: serif; font-size: 2em;}'[20][21]Add_.p(New_.A'See here for more info''http://www.w3.org/International/questions/qa-visual-vs-logical')[22]∇[23][24]:EndClass