kooloveme / thtmlviewer

Automatically exported from code.google.com/p/thtmlviewer
Other
0 stars 0 forks source link

Hebrew (right to left) text wrongly position when stylized #282

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
There are a few problems with the THTMLViewer/TFrameBrowser components when it 
comes to displaying Hebrew characters. Hebrew, for those who don't know, is 
written from right to left, not left to right. When nothing but encoded HTML 
characters are used with a <span dir="rtl"> tag, the Hebrew text is rendered 
properly. However, if you were to stylize any of the characters or words within 
a Hebrew sentence, the stylized characters/words are drawn improperly. To be 
precise, the letters/words are rendered backwards (in reverse order) on the 
screen.

IOW, if you were to enclose certain letters or words within the following 
tags...

<font color="red"></font>
<span class="style1"></span>

...the characters within these tags are drawn incorrectly in the component.

You can see what happens by looking at the attached graphic.

The second problem that exists is when you attempt to swipe your mouse over top 
of the Hebrew text.  The line of text on which the mouse/cursor is positioned 
does some very, very strange things (visually) as you hold down the left mouse 
button and move the mouse over the text.

Original issue reported on code.google.com by xyz.123....@gmail.com on 5 Aug 2013 at 9:02

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for spotting this issue

Original comment by OrphanCat on 3 Nov 2013 at 2:31