right to left - How can I mix hebrew and latin text in a HTML document? -


i have html document contains hebrew , latin text. encoded utf-8:

<!doctype html> <html> <head>   <title>title</title>   <meta http-equiv='content-type' content='text/html; charset=utf-8'/> </head>  <style type='text/css'>       .h  { color: green} </style>  <body>     <div>       here words הנה כמה מילות (100, 200)    </div>     <div>       here words <span class='h'>הנה כמה מילות</span> (100, 200)    </div>     <div>       here words <span class='h'>הנה כמה מילות</span> <span>(100, 200)</span>    </div>     <div>       here words <span class='h'>הנה כמה מילות</span> <b>word</b> <span>(100, 200)</span>    </div>  </body> </html> 

the first 3 lines not displayed think should. fourth (with additional <b>word</b> in front of parantheses is.

here's how document displayed in firefox:

firefox' rendeering

edit not copy/paste of html text works correctly, here's screen shot of original html (sorry, seems though it's impossible text rendered correctly):

enter image description here

when have words in latin , hebrew letters mixed on same page, sequences of words written due inherent directionality of characters. hebrew passages run right left.

but when characters parentheses involved, things more complicated. parentheses directionally neutral (or utral) , participate in direction of adjacent characters. problems arise when appear between latin , hebrew letters. simple remedy use left-to-right mark character, representable in html &lrm;, example

here words <span class='h'>הנה כמה מילות</span> &lrm;(100, 200) 

Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

c# - Unity IoC Lifetime per HttpRequest for UserStore -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -