Bug 126179

Summary: Does not render correctly with indic scripts + english
Product: [Fedora] Fedora Reporter: Leon Ho <llch>
Component: gtkhtml3Assignee: Dave Malcolm <dmalcolm>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: eng-i18n-bugs
Target Milestone: ---Keywords: i18n
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-09-23 12:22:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 126002    
Attachments:
Description Flags
problem screenshot
none
problem screenshot - highlight is fine
none
New compose test none

Description Leon Ho 2004-06-17 06:52:43 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-06-17 06:53:50 UTC
Created attachment 101208 [details]
problem screenshot

Comment 2 Leon Ho 2004-06-17 06:54:19 UTC
Created attachment 101209 [details]
problem screenshot - highlight is fine

Comment 3 Leon Ho 2004-07-13 03:22:15 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 5 Leon Ho 2004-07-13 03:39:46 UTC
sorry should be this one:
http://bugzilla.ximian.com/show_bug.cgi?id=61462

Comment 6 Jatin Nansi 2004-09-17 06:08:29 UTC
Created attachment 103942 [details]
New compose test

Comment 7 Jatin Nansi 2004-09-17 06:11:46 UTC
I recommend we close this bug, since hindi + english works fine now as
per the screenshot attached above.
This is with evolution 1.5.94.1-1 and gtkhtml3-3.3.0-3 on RHEL4 B1
from 16.09.04.

Comment 8 Leon Ho 2004-09-23 12:22:09 UTC
Double that. It is looking fine. Closing this bug for now.