Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chinese input method not supported on linux xorg desktop #73

Closed
electricface opened this issue Jan 9, 2019 · 22 comments
Closed

Chinese input method not supported on linux xorg desktop #73

electricface opened this issue Jan 9, 2019 · 22 comments
Labels
enhancement New feature or request future Features that might take a while to be sheduled Internationalisation I18n and support for non-bundled fonts and languages

Comments

@electricface
Copy link

electricface commented Jan 9, 2019

ibus,fcitx

@afocus
Copy link

afocus commented Jan 11, 2019

theme fonts do not support Chinese

@andydotxyz
Copy link
Member

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

@andydotxyz andydotxyz added the question A question has been asked label Jan 20, 2019
@electricface
Copy link
Author

@andydotxyz andydotxyz added this to the Release 1.0 milestone Jan 25, 2019
@andydotxyz
Copy link
Member

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=<a_chinese_font.ttf> 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?

@electricface
Copy link
Author

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.

@electricface
Copy link
Author

@andydotxyz
Copy link
Member

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: glfw/glfw#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.

@andydotxyz andydotxyz added enhancement New feature or request future Features that might take a while to be sheduled and removed question A question has been asked labels Feb 4, 2019
@andydotxyz andydotxyz removed this from the Release 1.0 milestone Feb 4, 2019
@andydotxyz
Copy link
Member

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.

@medivh-jay
Copy link

I have the same problem, cannot intput chinese

@andydotxyz
Copy link
Member

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.

@andydotxyz
Copy link
Member

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.

@electricface
Copy link
Author

You can support fcitx first and then ibus.

@mei-rune
Copy link

can fix it soon?

@andydotxyz
Copy link
Member

andydotxyz commented Mar 12, 2021

Internationalisation is a very compex topic and is not scheduled for the release we are working on (or the one after that).
Currently we expect to focus on it for 3.0 which has no timeline yet.

You can track our roadmap at https://github.com/fyne-io/fyne/wiki/Roadmap

@mei-rune
Copy link

mei-rune commented Mar 20, 2021

@andydotxyz please update https://github.com/go-gl/glfw, it update glfw to 3.3.3 and it fix fcitx.

@andydotxyz
Copy link
Member

This is now in release branch release/v2.0.x - can you please test ffor me @runner-mei ?
It would be great if the update fixes this issue!

@mei-rune
Copy link

mei-rune commented Mar 30, 2021

@andydotxyz update to release/v2.0.x and test fail,
but I copy https://github.com/glfw/glfw/master to github.com/go-gl/glfw, override source files, and it is ok

wait for next version of glfw.

@andydotxyz
Copy link
Member

but I copy https://github.com/glfw/glfw/master to github.com/go-gl/glfw, override source files, and it is ok

Where did you copy the files to?

@mei-rune
Copy link

mei-rune commented Mar 30, 2021

@andydotxyz copy from master branch of https://github.com/glfw/glfw

I guess fix it by glfw/glfw@44b5d06

I try it later.

@andydotxyz
Copy link
Member

@andydotxyz copy from master branch of https://github.com/glfw/glfw

Where did you copy the files to?

The commits you link to were added 13 months ago, so it seems unlikely that they are missing in the recent builds...

@mei-rune
Copy link

mei-rune commented Mar 31, 2021

@andydotxyz
Copy link
Member

So you mean that you extracted the GLFW code into vendor/github.com/go-gl/glfw/v3.3/glfw/gflw/src?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request future Features that might take a while to be sheduled Internationalisation I18n and support for non-bundled fonts and languages
Projects
None yet
Development

No branches or pull requests

5 participants