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 121672 - Ra (vattu) not rendered properly in Malayalam
Ra (vattu) not rendered properly in Malayalam
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: indic
1.2.x
Other Linux
: Normal blocker
: Small fix
Assigned To: Behdad Esfahbod
Pango Indic
: 141704 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-09-07 14:12 UTC by Rajkumar S
Modified: 2006-07-31 22:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gtk+-2.2.4/tests/test/testtext rendering <a href="http://www.linuxense.com/oss/render/mozilla/pango-bug.txt">pango-bug.txt</a> (65.33 KB, image/png)
2003-09-10 20:45 UTC, Rajkumar S
  Details
another test case (a bit more geared for those who can't read Malayalam) (1.65 KB, text/plain)
2003-09-10 23:46 UTC, Jungshik Shin
  Details
the patch for fixing this bug and bug335811 (3.23 KB, patch)
2006-03-31 09:41 UTC, LingNing Zhang
none Details | Review
modify the bug about (U+0d32) + (U+0d4d) + (U+0d32) (3.07 KB, patch)
2006-04-12 06:14 UTC, LingNing Zhang
none Details | Review
my patch (1.57 KB, patch)
2006-07-17 03:18 UTC, LingNing Zhang
committed Details | Review

Description Rajkumar S 2003-09-07 14:12:15 UTC
Cons+Ya and Cons+Ra are rendered with corresponding signs in Malayalam.
This is not properly supported in Pango. But Cons+Va sign is getting
rendered properly.

Screen shots and unicode text of the bug are available at 
http://www.linuxense.com/oss/render/mozilla/ml-bugs.html#ya
http://www.linuxense.com/oss/render/mozilla/ml-bugs.html#ra

Font used for rendering is Thoolika Unicode
http://www.supersoftweb.com/THOOLIUC.TTF
Comment 1 Jungshik Shin 2003-09-10 01:23:52 UTC
Raj, using Mozilla with my patch for mozilla bug 215219
(http://bugzilla.mozilla.org/show_bug.cgi?id=215219) may not be the
best way to test Pango's rendering of Malayalam. Could you test this
and two other cases you reported (in bug 121671, bug 121670) with gedit? 
Comment 2 Rajkumar S 2003-09-10 20:45:10 UTC
Created attachment 19849 [details]
gtk+-2.2.4/tests/test/testtext rendering <a href="http://www.linuxense.com/oss/render/mozilla/pango-bug.txt">pango-bug.txt</a>
Comment 3 Rajkumar S 2003-09-10 20:49:01 UTC
I have d/l and installed gtk+-2.2.4 and used testtext from it to take
a screen shot of pango-bug.txt, which is a growing list of bugs, as I
find them. The screen shots of this and mozilla are similar. (one or 2
minor difference only) I have also updated
http://www.linuxense.com/oss/render/mozilla/ml-bugs.html with this new
screen shot.

raj
Comment 4 Owen Taylor 2003-09-10 21:18:57 UTC
The examples/pangoft2topgm program shipped with Pango can
be a good way to test out behavior without getting GTK+
involved.
Comment 5 Jungshik Shin 2003-09-10 23:46:18 UTC
Created attachment 19853 [details]
another test case (a bit more geared for those who can't read Malayalam)
Comment 6 Jungshik Shin 2003-09-10 23:55:40 UTC
attachment 19853 [details] was turned to text/plain from text/html (I attached
to http://bugzilla.mozilla.org/show_bug.cgi?id=215219 as attachment
http://bugzilla.mozilla.org/attachment.cgi?id=131174). The line
alignment is screwed-up, but covers this bug as well as bug 121670,
bug 121671, bug 121882 (and perhaps some others because it's pretty
extensive except that I removed some Devanagari-specific cases while
shifting code points from Devanagari to Malayalam). I put up a couple
of 'comparison' screenshots (of Mozilla on Linux with my Pango patch
and Mozilla on Win2k) at

  http://i18nl10n.com/indic/mal1lin.jpg
  http://i18nl10n.com/indic/mal1win.jpg

  http://i18nl10n.com/indic/mal2lin.jpg
  http://i18nl10n.com/indic/mal2win.jpg

As I wrote, Mozilla with Pango patch is not the best test platform for
Pango, but it seems to sorta work. Anyway, I'll try
examples/pangoft2topgm . 
Comment 7 Owen Taylor 2003-09-15 10:53:07 UTC
cons+ya is caused by the same problem in the indic-ot code
as (part of) 121671 ... post base forms are not getting
the correct tags.

cons+ra needs to be handled specially - there is a FIXME
in the ICU code indicating that another script flag needs
to be added for this.

// FIXME: reformed Malayalam needs to reorder VATTU to before base
glyph...

I'm not sure what the proper rendering is for the 
NA+H+RRA+H in your current 'pango-bug.txt' - you don't have a
screenshot of the correct rendering for that. So I'm not
sure how that fits in.
Comment 8 Rajkumar S 2003-09-15 14:27:14 UTC
> I'm not sure what the proper rendering is for the 
> NA+H+RRA+H in your current 'pango-bug.txt'

I updated the screen shots. In this case the rendering of Pango is
correct and that of Yudit is wrong. This NA+H+RRA is a special case in
Malayalam along with RRA + V + RRA, where RRA actually represents
another character. I will post a detailed linguistic analysis of it soon.

raj
Comment 9 Owen Taylor 2004-07-28 18:02:02 UTC
*** Bug 141704 has been marked as a duplicate of this bug. ***
Comment 10 LingNing Zhang 2006-03-16 07:59:31 UTC
There are some errors about grub in THOOLIUC.TTF.
I used THOOLIUC.TTF to render the conjuction glyphs of Malayalam, and it rendered error.
And pango gave the message:  Pango-WARNING **: Error loading GPOS table 4097.
Comment 11 LingNing Zhang 2006-03-16 08:49:52 UTC
sorry, in the first sentence:
s/gpos/grub
Comment 12 LingNing Zhang 2006-03-31 09:41:00 UTC
Created attachment 62443 [details] [review]
the patch for fixing this bug and bug335811

I wrote a patch for fixing this bug and bug335811. Then the conjugates of Cons + (U+0d4d) + (U+0d30) can render rightly.
And the wrong conjugates in bug335811 can render rightly too.
Comment 13 Behdad Esfahbod 2006-04-03 03:27:13 UTC
Hi Raj :),

Can you test the patch?
Comment 14 LingNing Zhang 2006-04-12 06:14:28 UTC
Created attachment 63283 [details] [review]
modify the bug about (U+0d32) + (U+0d4d) + (U+0d32)

modify the patch for the bug about (U+0d32) + (U+0d4d) + (U+0d32).
Comment 15 LingNing Zhang 2006-07-12 02:29:59 UTC
The patch is obobsolete.
Comment 16 LingNing Zhang 2006-07-12 02:31:04 UTC
s/obobsolete/obsolete
Comment 17 LingNing Zhang 2006-07-17 03:18:19 UTC
Created attachment 69015 [details] [review]
my patch

I wrote a patch for this bug about the conjuctions of Con + 0d4d + 0d30(Ra).
Comment 18 Behdad Esfahbod 2006-07-31 22:41:07 UTC
Thanks.  I committed the patch after some clean up.  Please test the 1.13.5 release I'm making in a bit.

2006-07-31  Behdad Esfahbod  <behdad@gnome.org>

        Bug 121672 – Ra (vattu) not rendered properly in Malayalam
        Patch from LingNing Zhang

        * modules/indic/indic-ot.c (shiftCharsLeft3), (indic_ot_reorder):
        Reorder combinations of some three chars!