Bug 517785 - The Characters in Candidate Window Become Abnormal
Summary: The Characters in Candidate Window Become Abnormal
Keywords:
Status: CLOSED DUPLICATE of bug 519317
Alias: None
Product: Fedora
Classification: Fedora
Component: fontconfig
Version: 11
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Behdad Esfahbod
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-17 08:01 UTC by CW Lin
Modified: 2009-08-26 08:01 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-08-26 08:01:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Display of the Candidate Window (24.30 KB, image/png)
2009-08-17 08:03 UTC, CW Lin
no flags Details

Description CW Lin 2009-08-17 08:01:16 UTC
Description of problem:
The characters in the candidate window become abnormal.

Version-Release number of selected component (if applicable):
ibus-gtk-1.1.0.20090612-3.fc11.x86_64
ibus-anthy-1.1.0.20090603-1.fc11.x86_64
ibus-chewing-1.0.10.20090523-2.fc11.x86_64
ibus-libs-1.1.0.20090612-3.fc11.x86_64
ibus-rawcode-1.0.0.20090303-3.fc11.x86_64
ibus-1.1.0.20090612-3.fc11.x86_64
ibus-m17n-1.1.0.20090211-5.fc11.x86_64
ibus-pinyin-1.1.0.20090612-1.fc11.noarch
ibus-hangul-1.1.0.20090328-2.fc11.x86_64
cjkuni-ukai-fonts-0.2.20080216.1-26.fc11.noarch
cjkuni-uming-fonts-0.2.20080216.1-26.fc11.noarch
taipeifonts-1.2-7.fc11.noarch

How reproducible:
Always.

Steps to Reproduce:
1. Open a gnome terminal
2. Select the input method of "Chewing" by typing Ctrl-Space.
3. Press "ej3".
4. Press <Space> 6 times
  
Actual results:


Expected results:


Additional info:

Comment 1 CW Lin 2009-08-17 08:03:02 UTC
Created attachment 357607 [details]
Display of the Candidate Window

Comment 2 Ding-Yi Chen 2009-08-17 23:34:32 UTC
Hi,

I cannot reproduce this bug. What's your libchewing version?

Comment 3 CW Lin 2009-08-18 00:52:36 UTC
libchewing-0.3.2-15.fc11.x86_64

And below is my setting:
Editing:
    Auto move cursor:		    Off
    Add phrases in fron:	    Off
    Easy symbol input:		    On
    Esc clean all buffer:	    Off
    Maximum Chinese characters:	    20
    Force lowercase in En mode:	    Off
    Sync between CapsLock and IM:   keyboard

Selecting:
    Plain Zhuyin mode:		    Off
    Candidate per page:		    10
    Choose phrases from backward:   Off
    Space to select:		    On

Keyboard:
    Keyboard Type:	    default
    Selection keys:	    1234567890
    Hsu's selection key:    1

Comment 4 CW Lin 2009-08-18 00:56:43 UTC
Try the following steps to reproduce:

1. LANG=zh_TW.UTF-8 /usr/bin/ibus-daemon -r
2. Open a gnome terminal
3. Select the input method of "Chewing" by typing Ctrl-Space.
4. Disable "Plain Zhuyin mode"
5. Press "ej3".
6. Press <Space> 6 times

Comment 5 Ding-Yi Chen 2009-08-18 23:44:16 UTC
Sorry, still cannot reproduce it.
Would you mind deleting ~/.chewing and try again?

BTW, I've made a new version of ibus-chewing, mind trying it?

Regards,

Comment 6 CW Lin 2009-08-19 15:16:50 UTC
The abnormal characters in the candidate window still appear even if the directory ~/.chewing is removed.

OK.
Tell me how to do and I'll try it.

Comment 7 Peng Huang 2009-08-20 02:47:15 UTC
How about other input methods? And what your location (echo $LANG) ?

Comment 8 CW Lin 2009-08-20 04:27:24 UTC
I don't know the situation of other input methods as I just use "chewing".

LANG=zh_TW.UTF-8

You can try to reproduce the bug with the steps mentioned in the comment #4.

Comment 9 Ding-Yi Chen 2009-08-20 23:37:22 UTC
I did follow your steps but still cannot reproduce the bug.

I see ibus-pinyin is also installed in your system. How about adding pinyin by:
1. Right click on ibus status icon->preference
2. on input methods tab -> select input method -> chinese -> pinyin
3. click on add and close the dialog.
4. Restart ibus-daemon by right click on ibus status icon->restart

Then, do following test:
1. Ctrl-space to enable IBus
2. switch to pinyin and type gu (which is equivalent to ㄍㄨ3)
3. See if the candidate selection dialog is messy.

Regards,
Ding-Yi Chen

Comment 10 CW Lin 2009-08-21 05:02:57 UTC
Perhaps it is a font display problem.

I found that the strange characters in the candidate window will change when some different font size or windows resolution (DPI) is chosen.

Below is my test:
Font_Size____DPI____Result
==========================
Sans 12    81~101    Fail
Sans 12    80        OK
Sans 12    102       OK
Sans 10    89        Fail
Sans 10    90~97     OK
Sans 10    98~122    Fail
Sans 10    123       OK

My original setting is Sans 12, 96 dots per inch.
Therefore, I think I have to add an extra step to reproduce the problem.

1. LANG=zh_TW.UTF-8 /usr/bin/ibus-daemon -r
2. Open a gnome terminal
3. Select the input method of "Chewing" by typing Ctrl-Space.
4. Disable "Plain Zhuyin mode"
5. Press "ej3".
6. Press <Space> 6 times 
7. Change the Application font to "Sans 10" and 96 DPI by
   System -> Preferences -> Appearance -> Fonts
   Application font: Sans 10
   Details -> Resolution: 96 dots per inch

Hopefully, this problem can be reproduced.

Comment 11 CW Lin 2009-08-21 05:12:23 UTC
Sorry, the last step is wrong.
The font size should be set to "Sans 12", not "Sans 10".

Following is the corrected steps:

7. Change the Application font to "Sans 12" and 96 DPI by
   System -> Preferences -> Appearance -> Fonts
   Application font: Sans 12
   Details -> Resolution: 96 dots per inch

Comment 12 CW Lin 2009-08-21 06:01:05 UTC
(In reply to comment #9)
> I did follow your steps but still cannot reproduce the bug.
> 
> I see ibus-pinyin is also installed in your system. How about adding pinyin by:
> 1. Right click on ibus status icon->preference
> 2. on input methods tab -> select input method -> chinese -> pinyin
> 3. click on add and close the dialog.
> 4. Restart ibus-daemon by right click on ibus status icon->restart
> 
> Then, do following test:
> 1. Ctrl-space to enable IBus
> 2. switch to pinyin and type gu (which is equivalent to ㄍㄨ3)
> 3. See if the candidate selection dialog is messy.
> 
> Regards,
> Ding-Yi Chen  

Looks like the candidate selection dialog become messy when it contains the following characters:
鶻鼜淿鼔皷糓餶蛊䶜

Do you know how to enter those characters with pinyin?

Comment 13 Ding-Yi Chen 2009-08-21 08:10:35 UTC
Sorry, still cannot reproduce.
After removed wqy fonts, one of the candidate become a unicode number square, but otherwise is normal.

Can you use gucharmap to get the fonts for these character?

Usage:
1. run gucharmap &
2. search for one of those character.
3. Right click on the character. There will be a dialog pop up, and font information should be at the bottom.

Regards,
Ding-Yi Chen

Comment 14 CW Lin 2009-08-23 13:57:41 UTC
I did run gucharmap as you said and found that the following character did screw up gucharmap:

糓
UTF-16: 0x7CD3

However, the warning message by gucharmap is as follows:
(gucharmap:2462): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='AR PL UMing HK Light 12', text='糔'

In addition, the same character (UTF-16:0x7CD3) also screw up the gnome-terminal if it is entered.

Just hope that someone can reproduce these problems based on the following conditions:
(1) platform: x86_64
(2) language: zh_TW.UTF-8 (Traditional Chinese)
(3) System -> Preferences -> Appearance -> Fonts
    Application font: Sans 12
    Details -> Resolution: 96 dots per inch

Comment 15 Ding-Yi Chen 2009-08-24 00:24:54 UTC
Still cannot reproduce. :-(

Maybe it is font rendering problem. Did you do any fontconfig customization? 

How about reinstall fontconfig?

Comment 16 CW Lin 2009-08-24 14:46:21 UTC
I think it should be the font rendering problem.

I have tried to let more applications show that character (UTF-16:0x7CD3).
All will become messy when a specific font size is chosen.

I did "sudo yum reinstall fontconfig" but it didn't help.

I'll do a clean install of x86_64 FC11 with the language of zh_TW.UTF-8 and apply "yum update" to see if I can reproduce this problem.

Comment 17 CW Lin 2009-08-24 17:24:56 UTC
By the way, back to the original input sequence "ej3" (ㄍㄨ3),why the number of candidates varies with the selection of "Plain Zhuyin mode"?

The number of candidates is 20 when "Plain Zhuyin mode" is enabled.
And the number will be 59 if the "Plain Zhuyin mode" is disabled.

Is it what you expect?

Comment 18 Ding-Yi Chen 2009-08-26 01:34:12 UTC
(In reply to comment #17)
> By the way, back to the original input sequence "ej3" (ㄍㄨ3),why the number of
> candidates varies with the selection of "Plain Zhuyin mode"?
> 
> The number of candidates is 20 when "Plain Zhuyin mode" is enabled.
> And the number will be 59 if the "Plain Zhuyin mode" is disabled.
> 
> Is it what you expect?  

It is a bug which I can reproduce. :-)
Do you mind if I change the component to fontconfig for font rendering bug,
while file a new bug for the plain Zhuyin bug?

Comment 19 CW Lin 2009-08-26 04:09:55 UTC
I have done two clean installs of Fedora 11, x86_64 and i386 respectively.  Both are using "Traditional Chinese" during the install process and apply the latest update after installation.

I take a look at the font size and DPI setting on both of them and they are the same as listed below:
應用程式字型:Sans,10
文件字型:    Sans,10
桌面字型:    Sans,14
視窗標題字型:Sans Bold 10
固定寬度字型:Monospace 10
解析度:96 DPI

Then I open "gucharmap" and search the character "糓" (U+7CD4).
Change the font size to 12, 11 and 10.

The i386 version works quite well.

However, the display on the x86_64 one become messy.
And the following warning message appear on the terminal:
(gucharmap:1997): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='AR PL UMing HK Light 12', text='糔'

(gucharmap:1997): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='AR PL UMing HK Light 11', text='糔'

(gucharmap:1997): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='AR PL UMing HK Light 9.9990234375', text='糔'

Comment 20 CW Lin 2009-08-26 04:41:51 UTC
(In reply to comment #18)
> (In reply to comment #17)
> > By the way, back to the original input sequence "ej3" (ㄍㄨ3),why the number of
> > candidates varies with the selection of "Plain Zhuyin mode"?
> > 
> > The number of candidates is 20 when "Plain Zhuyin mode" is enabled.
> > And the number will be 59 if the "Plain Zhuyin mode" is disabled.
> > 
> > Is it what you expect?  
> 
> It is a bug which I can reproduce. :-)
> Do you mind if I change the component to fontconfig for font rendering bug,
> while file a new bug for the plain Zhuyin bug?  

I prefer filing a new font-rendering bug.
Mark this one as its duplicate.
The new one will contain less but clearer information.

Another issue about "plain Zhuyin bug" is in the case that the "Plain Zhuyin mode" is enabled and the desired candidate is not in the first window.

For example, when the candidate in the first window is selected, it will go directly to the output.
If the candidate not in the first window is selected, it will stay in the buffer, not going out to the output.

Comment 21 Ding-Yi Chen 2009-08-26 07:34:44 UTC
(In reply to comment #20)
> (In reply to comment #18)
> > (In reply to comment #17)
> > > By the way, back to the original input sequence "ej3" (ㄍㄨ3),why the number of
> > > candidates varies with the selection of "Plain Zhuyin mode"?
> > > 
> > > The number of candidates is 20 when "Plain Zhuyin mode" is enabled.
> > > And the number will be 59 if the "Plain Zhuyin mode" is disabled.
> > > 
> > > Is it what you expect?  
> > 
> > It is a bug which I can reproduce. :-)
> > Do you mind if I change the component to fontconfig for font rendering bug,
> > while file a new bug for the plain Zhuyin bug?  
> 
> I prefer filing a new font-rendering bug.
> Mark this one as its duplicate.
> The new one will contain less but clearer information.

Please review Bug 519317 and comment on it.

> Another issue about "plain Zhuyin bug" is in the case that the "Plain Zhuyin
> mode" is enabled and the desired candidate is not in the first window.
> 
> For example, when the candidate in the first window is selected, it will go
> directly to the output.
> If the candidate not in the first window is selected, it will stay in the
> buffer, not going out to the output.  

Plain Zhuyin bug is now at Bug 519328.

Comment 22 Ding-Yi Chen 2009-08-26 08:01:15 UTC

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


Note You need to log in before you can comment on or make changes to this bug.