Fyne: Chinese input method not supported on linux xorg desktop

Created on 9 Jan 2019  Â·  12Comments  Â·  Source: fyne-io/fyne

ibus,fcitx

enhancement future

Most helpful comment

We are upgrading GLFW to 3.3 in our next major release, but the upstream issue has been moved to 3.4, sorry. We will need to make a plan for how (and when) to better support multi-language, i18n and accessibility.

All 12 comments

theme fonts do not support Chinese

Can you please try specifying the path to a Chinese TTF file in the FYNE_FONT environment variable?
This should correct the display of the characters, but I am not certain if it requires additional work for input support.
We will be able to make a better user experience by adding some fyne_config app in the future where fonts could be selected visually or language chosen etc...

Added in change 7d2d312

Hi, I have installed the tools you mentioned but I cannot figure how exactly to replicate what you are describing.
Is it possible to provide some more detailed steps to verify this?

Locally if I use FYNE_FONT= fyne_demo with some chinese content it seems to work. Can you try the same and let me know if it's still broken please?

If you want to enter Chinese on your computer, you will need to use the Chinese input method.
The pc-type keyboard only has a to z keys, you need to enter some letters, then come out a word selection interface, and then select the text you really want to input. For example, if you use the Pinyin input method and type "shijie", you will see "世界", "时间", "事件" and other words.
Mature ui toolkits, such as qt and gtk, support Chinese input methods.

Ah now I understand - the font is not the issue but we need to understand the input that can come from the XIM (or similar) tool.
I think we are dependent upon this upstream issue: https://github.com/glfw/glfw/issues/41

I have been able to replicate your issue, thanks for the instructions. I see now that we are processing the keystrokes rather than the combined input that should be added.

Unfortunately we cannot address this for Milestone 1.0.
Hopefully GLFW can get the contributions necessary and we could then integrate it in a later release.

I have the same problem, cannot intput chinese

The upstream issue has been moved to a later release - I don't have any information about when we may be able to resolve this, sorry.

We are upgrading GLFW to 3.3 in our next major release, but the upstream issue has been moved to 3.4, sorry. We will need to make a plan for how (and when) to better support multi-language, i18n and accessibility.

You can support fcitx first and then ibus.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mhf-ir picture mhf-ir  Â·  6Comments

Nigh picture Nigh  Â·  5Comments

codenoid picture codenoid  Â·  4Comments

hajimehoshi picture hajimehoshi  Â·  9Comments

andydotxyz picture andydotxyz  Â·  7Comments