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 583718 - VTE always displays Thai SARA AM with dotted circle
VTE always displays Thai SARA AM with dotted circle
Status: RESOLVED DUPLICATE of bug 584160
Product: pango
Classification: Platform
Component: thai
1.24.x
Other Linux
: Normal normal
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-05-24 13:32 UTC by Theppitak Karoonboonyanan
Modified: 2012-08-25 20:40 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
Screenshot with errors (33.57 KB, image/png)
2009-05-24 13:34 UTC, Theppitak Karoonboonyanan
  Details
Screenshot with expected result (33.46 KB, image/png)
2009-05-24 13:35 UTC, Theppitak Karoonboonyanan
  Details
Text for the test message (951 bytes, text/plain)
2009-05-24 13:38 UTC, Theppitak Karoonboonyanan
  Details
Handle SARA AM differently for monospace (2.24 KB, patch)
2010-07-08 05:49 UTC, Theppitak Karoonboonyanan
none Details | Review

Description Theppitak Karoonboonyanan 2009-05-24 13:32:57 UTC
Thanks to Behdad's work in Bug #149631, VTE now displays combining characters gracefully. However, there is a small case of Thai character SARA AM (U+0E33), which is always rendered with dotted circle. (Screenshot will be attached.)

This is triggered by the use of Pango. SARA AM is a composite vowel, and requires a preceeding base consonant to render. But as display cells are rendered separately, the combination is split, and Pango Thai shaper supplies the dotted circle in place of the missing character.

Possible solutions can be:

1. Make VTE render adjacent cells in chunk, so Pango shaper can handle inter-cell combinations.

2. Modify Pango shaper to fall back to typewriter-style rendering, where SARA AM is packed into one cell. Such glyph provision is a common practice for Thai monospace fonts.

Choice 1 seems complicated, but may be necessary for other complex text languages. (I don't know much about other languages' typewriters.)

Choice 2 is easier, and fairly reasonable for Thai in particular. Feel free to reassign this bug to Pango Thai module if it's the case.
Comment 1 Theppitak Karoonboonyanan 2009-05-24 13:34:53 UTC
Created attachment 135256 [details]
Screenshot with errors
Comment 2 Theppitak Karoonboonyanan 2009-05-24 13:35:53 UTC
Created attachment 135258 [details]
Screenshot with expected result
Comment 3 Theppitak Karoonboonyanan 2009-05-24 13:38:27 UTC
Created attachment 135259 [details]
Text for the test message

Note that the screenshot in Comment #2 was a result of Choce 2 (patching Pango Thai shaper).
Comment 4 Behdad Esfahbod 2009-05-25 23:40:39 UTC
Thanks.  I need some more time before I can figure out what to do for complex test rendering in the terminal.
Comment 5 Taxman 2009-05-29 02:53:25 UTC
I didn't realize vte was what handled the text rendering when I filed bug 58160 ( http://bugzilla.gnome.org/show_bug.cgi?id=584160 )
It's a similar situation, but for devanagari. Basically none of the characters that are supposed to combine in devanagari do. I believe they used to in older versions of gnome-terminal. I'll have to pull out some old discs and check.
Comment 6 Behdad Esfahbod 2009-05-29 12:08:47 UTC
Vte never did.  If you pull out some old discs and find that it used to do, make sure you also dig out the source code, oh well...
Comment 7 Behdad Esfahbod 2009-10-24 00:53:03 UTC

*** This bug has been marked as a duplicate of bug 584160 ***
Comment 8 Theppitak Karoonboonyanan 2010-07-08 05:41:56 UTC
Reopening the bug. I think this is not a duplicate of bug 584160, as Thai problem is a lot more trivial than Indic, and can be solved with a simple workaround. In other words, Thai can be classified as non-Indic or non-CTL in this case.

Also reassign it to Pango and propose to change there.
Comment 9 Theppitak Karoonboonyanan 2010-07-08 05:49:12 UTC
Created attachment 165454 [details] [review]
Handle SARA AM differently for monospace

This patch makes Thai shaper render SARA AM differently when the font is monospace. I've provided this solution locally for a year, and no problem is reported so far.
Comment 10 Behdad Esfahbod 2012-08-25 20:40:25 UTC
Marking duplicate again.

*** This bug has been marked as a duplicate of bug 584160 ***