chewing/chewing-editor

Cannot display Chinese words (including bopomofo)

Closed this issue ยท 7 comments

As the snapshot below, it cannot display Chinese words on my Manjaro Linux (which forked from Arch Linux).
The editor is built by myself with Qt 5.1.1 at d9b7f53.
I also read the issue #7 and run program with QT_HARFBUZZ=old but it acted as the same.

image

Hi @david50407 , I'm Manjaro Linux and IBus user , here are some information may be helpful to you .

via https://wiki.archlinux.org/index.php/IBus#Installation :

Additionally, to enable IBus for Qt applications, install the ibus-qt library.

via https://wiki.archlinux.org/index.php/IBus#IBus :

Note: You need to have east Asian fonts installed if you want to enter Chinese, Japanese, Korean or Vietnamese characters.

via https://wiki.archlinux.org/index.php/IBus#Chinese_input :

If you encounter problems when using Chinese input, check your locale setting. For example in Taiwan, export LANG=zh_TW.UTF-8.

@PingNote hi, I can type chinese in chewing-editor and terminal but only terminal shows the correct words

hi, I can type chinese in chewing-editor and terminal but only terminal shows the correct words

I guess your UI font doesn't support Chinese chars? can you try another font?

@Chocobo1 It fixed after I changed UI font, thx :)

@david50407 I am also having the issue of can't display Bopomofo properly in the chewing-editor.
I try to fix the problem by following the way mentioned in issue #7 , but I doesn't understand what exactly does "run the program with QT_HARFBUZZ=old " means.

I had try to run the program like
$ ./chewing-editor -Qt_HARFBUZZ=old
$ cmake . -DQt_HARFBUZZ=old
but both of the ways mentioned above doesn't seems to be the right way.
Any helps will be appreciated.

@cyng93 try

QT_HARFBUZZ=old ./chewing-editor

Yep that fixed my problem, thanks a lot !