开发者

Android webview and Hebrew

I have the following html code that I am trying to display in an Android WebView.

      <div id=heade开发者_JAVA百科r-right>
        <p  dir=RTL style='text-align:right;direction:rtl;unicode-bidi:
        embed'><a name=1><b><span lang=HE style='font-size:13.5pt;mso-fareast-font-family:
        "Times New Roman";color:#000099'> úôìú ùçøéú <o:p></o:p></span></b></a></p>
         </div>

         <div id=header-right>
         <p  dir=RTL style='text-align:right;direction:rtl;unicode-bidi:
         embed'><a name=1><b><span lang=HE style='font-size:13.5pt;mso-fareast-font-family:
         "Times New Roman";color:#000099'>îåãÆä  <o:p></o:p></span></b></a></p>
         </div>

The "weird" chars are hebrew. Both display correctly in a browser (firefox), when run in Android, the first displays correctly and the second displays incorrectly (the word is displayed inverted, first char last).

Both have exactly the same structure. I do not understand why is shown correctly and the other not


The first word is unvowelized; the second has vowels (nikud). There is a reported bug about this—vowelized Hebrew words are incorrectly laid out with letters going left-to-right (although, weirdly, words themselves are correctly laid out right-to-left).

You can test this diagnosis by removing the segol under the dalet in the second word (the only vowel) and seeing how it displays.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜