After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 147459 - gtkhtml3 does not render correctly with indic scripts + english
gtkhtml3 does not render correctly with indic scripts + english
Status: RESOLVED NOTGNOME
Product: gtkhtml2
Classification: Deprecated
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: padraig.obriain
padraig.obriain
Depends on:
Blocks:
 
 
Reported: 2004-07-13 03:18 UTC by Leon Ho
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6


Attachments
screenshot for showing the problem (62.61 KB, image/png)
2004-07-13 03:19 UTC, Leon Ho
Details
highlight seems okay if highlight only ascii part (62.87 KB, image/png)
2004-07-13 03:20 UTC, Leon Ho
Details

Description Leon Ho 2004-07-13 03:18:20 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
Comment 1 Leon Ho 2004-07-13 03:19:50 UTC
Created attachment 29488 [details]
screenshot for showing the problem
Comment 2 Leon Ho 2004-07-13 03:20:28 UTC
Created attachment 29489 [details]
highlight seems okay if highlight only ascii part
Comment 3 Leon Ho 2004-07-13 03:23:24 UTC
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.
Comment 4 Danielle Madeley 2004-07-13 03:34:42 UTC
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.