GNOME Bugzilla – Bug 147459
gtkhtml3 does not render correctly with indic scripts + english
Last modified: 2004-12-22 21:47:04 UTC
Description of problem: When indic scripts entered followed by english letters, the english letters will render incorrect to indic as well. Version-Release number of selected component (if applicable): How reproducible: everytime Steps to Reproduce: 1. LANG=hi_IN.UTF-8 evolution 2. New mail 3. Cut and paste a hindi char, then follow by "abcde" (no input method involved) Actual results: "abcde" changed to indic glyphs Expected results: should be "abcde" glyphs shown onto the screen Additional info: Highlight abcde shows correct glyphs again
Created attachment 29488 [details] screenshot for showing the problem
Created attachment 29489 [details] highlight seems okay if highlight only ascii part
I have debugged for a while and found out because when it itemize and shape, it returns a GList of PangoGlyphString (glyphs) and Glist of PangoItem (items) to draw_text() Because the nature of Indic scripts that several characters can be represent as a glyph, so the PangoItem and PangoGlyphString does not align together. PangoItem [1] [2] [3] [4] [5] PangoGlyphString [1] [2] [3] But gtkhtml still access PangoItem one by one (There aren't any ways to know how many chars the glyph represent) hence the attribute used in indic glyph are used on english glyph.
evolution uses gtkhtml, not gtkhtml2 (as you've noted in your bugreport). Unfortunately gtkhtml's bugzilla isn't in the GNOME bugzilla, and instead is located at http://bugzilla.ximian.com/ Therefore this bug is NOTGNOME. Please take the time to refile this with Ximian, as it seems to be a valid bug. Thanks.