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

Linux: Input methods (Fcitx etc.) do not work #375

Closed
gerritsangel opened this Issue Dec 31, 2014 · 41 comments

Comments

Projects
None yet
@gerritsangel

Telegram on Linux does not support input methods for East Asian languages. For example, fcitx does not work.

In other Linux programs pressing (for example) Ctrl+Space activates the input method. In Telegram, nothing happens. Also, you cannot select the input method with right clicking in the text box, as it would work in other programs.

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Jan 16, 2015

Collaborator

I use default Qt input fields, I'm not sure how to make them support those features.

Collaborator

ghost commented Jan 16, 2015

I use default Qt input fields, I'm not sure how to make them support those features.

@vipjeffreylee

This comment has been minimized.

Show comment
Hide comment
@vipjeffreylee

vipjeffreylee Feb 15, 2015

I think you should link libfcitxplatforminputcontextplugin.so into telegram.Default,Qt5 supported ibus only.Qt5 supported input method is here /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/

I think you should link libfcitxplatforminputcontextplugin.so into telegram.Default,Qt5 supported ibus only.Qt5 supported input method is here /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Feb 17, 2015

Collaborator

Ubuntu does not install fcitx-qt5 package for me, I could not find this plugin in Qt source and don't know where did you take one.

Collaborator

ghost commented Feb 17, 2015

Ubuntu does not install fcitx-qt5 package for me, I could not find this plugin in Qt source and don't know where did you take one.

@vipjeffreylee

This comment has been minimized.

Show comment
Hide comment

https://launchpad.net/ubuntu/+source/fcitx-qt5

sudo apt-get install fcitx-frontend-qt5

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Feb 17, 2015

Collaborator

I've tried that and got "E: Unable to locate package fcitx-frontend-qt5" on ubuntu 12.04. Maybe I should use 14.04 or some other version, but last time I tried it Telegram built on 14.04 failed to launch on 12.04, and built on 12.04 launches everywhere, I didn't have time then to figure out why.

Collaborator

ghost commented Feb 17, 2015

I've tried that and got "E: Unable to locate package fcitx-frontend-qt5" on ubuntu 12.04. Maybe I should use 14.04 or some other version, but last time I tried it Telegram built on 14.04 failed to launch on 12.04, and built on 12.04 launches everywhere, I didn't have time then to figure out why.

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Feb 17, 2015

Collaborator

Yeah, it is found in ubuntu 14.04, so I'll look into it some day.

Collaborator

ghost commented Feb 17, 2015

Yeah, it is found in ubuntu 14.04, so I'll look into it some day.

@giyyapan

This comment has been minimized.

Show comment
Hide comment
@giyyapan

giyyapan Feb 21, 2015

@telegramdesktop many thanks!
This could be the last thing that stops me using telegram desktop on Linux :)

@telegramdesktop many thanks!
This could be the last thing that stops me using telegram desktop on Linux :)

@FindHao

This comment has been minimized.

Show comment
Hide comment
@FindHao

FindHao Mar 1, 2015

Waiting For The Support :)

FindHao commented Mar 1, 2015

Waiting For The Support :)

@ustcltx

This comment has been minimized.

Show comment
Hide comment
@ustcltx

ustcltx Mar 3, 2015

@telegramdesktop I hope it will support input methods soon.

ustcltx commented Mar 3, 2015

@telegramdesktop I hope it will support input methods soon.

@deng-kai

This comment has been minimized.

Show comment
Hide comment
@deng-kai

deng-kai Mar 3, 2015

Hi,owner. When you debug on QT5,please concern about these .so files in this folder.Add these to your QT creator environment. copy in /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/
2015-03-03 19 39 34

deng-kai commented Mar 3, 2015

Hi,owner. When you debug on QT5,please concern about these .so files in this folder.Add these to your QT creator environment. copy in /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/
2015-03-03 19 39 34

@FreedomKnight

This comment has been minimized.

Show comment
Hide comment
@FreedomKnight

FreedomKnight Mar 28, 2015

I use ibus-chewing, and it still can't type. (fedora 21)

I use ibus-chewing, and it still can't type. (fedora 21)

@guoyunhe

This comment has been minimized.

Show comment
Hide comment
@guoyunhe

guoyunhe Apr 15, 2015

Waiting for this feature.

Waiting for this feature.

@mxa

This comment has been minimized.

Show comment
Hide comment
@mxa

mxa Apr 15, 2015

current workaround methods: 1. use the Cutegram client instead. or 2. type your Chinese/Korean/Japanese/... somewhere else and paste it into Telegram.

mxa commented Apr 15, 2015

current workaround methods: 1. use the Cutegram client instead. or 2. type your Chinese/Korean/Japanese/... somewhere else and paste it into Telegram.

@guoyunhe

This comment has been minimized.

Show comment
Hide comment
@guoyunhe

guoyunhe Apr 15, 2015

@mxa Cutegram doesn't support fcitx too.

@mxa Cutegram doesn't support fcitx too.

@trainchou

This comment has been minimized.

Show comment
Hide comment
@trainchou

trainchou Apr 17, 2015

waiting for the support!

waiting for the support!

@jdh8

This comment has been minimized.

Show comment
Hide comment
@jdh8

jdh8 Apr 20, 2015

I tried ibus and gcin on KDE 4, Fedora 21. :(

jdh8 commented Apr 20, 2015

I tried ibus and gcin on KDE 4, Fedora 21. :(

@guoyunhe

This comment has been minimized.

Show comment
Hide comment
@guoyunhe

guoyunhe Apr 20, 2015

If you cannot wait, you can use Telegram web client https://web.telegram.org/

If you use Firefox, you can install Firefox app https://marketplace.firefox.com/app/telegram

If you use Chrome, you can isntall Chrome app https://telegram.org/dl/webogram/chromeapp

These two web app works similiar as native app, but can not support tray icon. I think it is not a big problem. Since both Firefox and Chrome are not 100% stable, your web app may crash occasionally. My Telegram Firefox app crash twice in 3 days.

If you cannot wait, you can use Telegram web client https://web.telegram.org/

If you use Firefox, you can install Firefox app https://marketplace.firefox.com/app/telegram

If you use Chrome, you can isntall Chrome app https://telegram.org/dl/webogram/chromeapp

These two web app works similiar as native app, but can not support tray icon. I think it is not a big problem. Since both Firefox and Chrome are not 100% stable, your web app may crash occasionally. My Telegram Firefox app crash twice in 3 days.

@yura121

This comment has been minimized.

Show comment
Hide comment
@yura121

yura121 May 8, 2015

Telegram 0.8.11, Ubuntu 14.04 x64, iBus (ibus-m17n) doesn't work.
Waiting for the support!

yura121 commented May 8, 2015

Telegram 0.8.11, Ubuntu 14.04 x64, iBus (ibus-m17n) doesn't work.
Waiting for the support!

@guoyunhe

This comment has been minimized.

Show comment
Hide comment
@guoyunhe

guoyunhe May 10, 2015

I think this should be a high priority issue.

I think this should be a high priority issue.

@tigerlee

This comment has been minimized.

Show comment
Hide comment
@tigerlee

tigerlee May 15, 2015

Waiting for this feature.

Waiting for this feature.

@wu-nerd

This comment has been minimized.

Show comment
Hide comment
@wu-nerd

wu-nerd May 16, 2015

Ubuntu 14.04.2 LTS
fcitx version: 4.2.8.3
doesn't work

wu-nerd commented May 16, 2015

Ubuntu 14.04.2 LTS
fcitx version: 4.2.8.3
doesn't work

@arkbriar

This comment has been minimized.

Show comment
Hide comment
@arkbriar

arkbriar May 19, 2015

The lib you got with 'apt-get' was not the latest version. My qt-creator crashed when i put it into folder Tools/......../plugin/platforminputcontexts/
I have just compiled the latest libfcitxplatforminputcontextplugin.so and it's working perfectly with Qt5.4.1 on my ubuntu14.04.2(fcitx 4.2.8.5).
I tried some test program and i got fcitx working.
screenshot from 2015-05-19 23 04 11
I tried to compile tdesktop with Qt5.4.1 and got trouble in fixing the changed functions such as QTextLayout(QtextEngine *e):d(e) {}.

When i was trying to compile the qtlib with -static, it warned that no dll(.so) will be supported.
Thus ibus is not supported because no .so can work. And in code I found libcomposeplatforminputcontextplugin.a imported only.
I may try compiling with Qt5.4.0 some day but i have no time recently.
The compiled lib was on my google drive: https://drive.google.com/file/d/0B18XN3r6jNU1QlRybTdZbkFmT2s/view
I hope someone can test whether it works.
For author@telegramdesktop, just try download my compiled lib and add LIB += path/to/libfcitxplatforminputcontextplugin.so. I hope it works.

Sorry for my poor english.

The lib you got with 'apt-get' was not the latest version. My qt-creator crashed when i put it into folder Tools/......../plugin/platforminputcontexts/
I have just compiled the latest libfcitxplatforminputcontextplugin.so and it's working perfectly with Qt5.4.1 on my ubuntu14.04.2(fcitx 4.2.8.5).
I tried some test program and i got fcitx working.
screenshot from 2015-05-19 23 04 11
I tried to compile tdesktop with Qt5.4.1 and got trouble in fixing the changed functions such as QTextLayout(QtextEngine *e):d(e) {}.

When i was trying to compile the qtlib with -static, it warned that no dll(.so) will be supported.
Thus ibus is not supported because no .so can work. And in code I found libcomposeplatforminputcontextplugin.a imported only.
I may try compiling with Qt5.4.0 some day but i have no time recently.
The compiled lib was on my google drive: https://drive.google.com/file/d/0B18XN3r6jNU1QlRybTdZbkFmT2s/view
I hope someone can test whether it works.
For author@telegramdesktop, just try download my compiled lib and add LIB += path/to/libfcitxplatforminputcontextplugin.so. I hope it works.

Sorry for my poor english.

@adrianiainlam

This comment has been minimized.

Show comment
Hide comment
@adrianiainlam

adrianiainlam May 26, 2015

Confirming issue on Ubuntu 14.04.2 with Telegram 0.8.17 and IBus 1.5.5.

Found this via Google, which may or may not be relevant. The article is in Japanese but the code should be understandable.

Confirming issue on Ubuntu 14.04.2 with Telegram 0.8.17 and IBus 1.5.5.

Found this via Google, which may or may not be relevant. The article is in Japanese but the code should be understandable.

@bigeagle

This comment has been minimized.

Show comment
Hide comment
@bigeagle

bigeagle Jun 15, 2015

Here is a patched version with ibus and fcitx support https://github.com/aphuse/tdesktop . I've tested, it works quite well.

Here is a patched version with ibus and fcitx support https://github.com/aphuse/tdesktop . I've tested, it works quite well.

@deng-kai

This comment has been minimized.

Show comment
Hide comment
@deng-kai

deng-kai Jun 17, 2015

@telegramdesktop please consider the fix upstairs

@telegramdesktop please consider the fix upstairs

@tramchamploo

This comment has been minimized.

Show comment
Hide comment
@tramchamploo

tramchamploo Jun 29, 2015

why not create a pull request so that the @telegramdesktop could merge

why not create a pull request so that the @telegramdesktop could merge

@bigeagle

This comment has been minimized.

Show comment
Hide comment
@bigeagle

bigeagle Jun 29, 2015

@tramchamploo Already pull requested, #759 ,
But @telegramdesktop never merge code pull requests.

@tramchamploo Already pull requested, #759 ,
But @telegramdesktop never merge code pull requests.

@bruceauyeung

This comment has been minimized.

Show comment
Hide comment
@bruceauyeung

bruceauyeung Jul 7, 2015

i think is bug affects most of CJK users and is a urgent one, please consider fix it asap, thanks man!

i think is bug affects most of CJK users and is a urgent one, please consider fix it asap, thanks man!

@Maijin

This comment has been minimized.

Show comment
Hide comment
@Maijin

Maijin Jul 17, 2015

Ubuntu 15.04 8.38 still not fixed 😿

Maijin commented Jul 17, 2015

Ubuntu 15.04 8.38 still not fixed 😿

@pan-long

This comment has been minimized.

Show comment
Hide comment
@pan-long

pan-long Jul 17, 2015

I have given up the native app and I am fine with chrome app now. Everything works in telegram web app.

I have given up the native app and I am fine with chrome app now. Everything works in telegram web app.

@CodeFalling

This comment has been minimized.

Show comment
Hide comment
@CodeFalling

CodeFalling Jul 23, 2015

Ubuntu 15.04 with fcitx still not fixed.Waiting for this.

Ubuntu 15.04 with fcitx still not fixed.Waiting for this.

@taijuin

This comment has been minimized.

Show comment
Hide comment
@taijuin

taijuin Aug 7, 2015

If you are using Chrome app in Linux desktop,maybe you can consider this:(including Simplified Chinese,Traditional Chinese,Korean.

https://chrome.google.com/webstore/detail/telegram/obocnnbgpkjmmdmmhnieggghdphphefm?utm_source=chrome-ntp-icon

taijuin commented Aug 7, 2015

If you are using Chrome app in Linux desktop,maybe you can consider this:(including Simplified Chinese,Traditional Chinese,Korean.

https://chrome.google.com/webstore/detail/telegram/obocnnbgpkjmmdmmhnieggghdphphefm?utm_source=chrome-ntp-icon

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Aug 14, 2015

Collaborator

Please check out 0.8.50 dev version, it should be fine there, I've added Qt plugins for IBus and Fctix.

Collaborator

ghost commented Aug 14, 2015

Please check out 0.8.50 dev version, it should be fine there, I've added Qt plugins for IBus and Fctix.

@auchri auchri closed this Aug 15, 2015

@taijuin

This comment has been minimized.

Show comment
Hide comment
@taijuin

taijuin Aug 15, 2015

I try it,and I really can input Chinese.
This is really good news.
Thank you !

taijuin commented Aug 15, 2015

I try it,and I really can input Chinese.
This is really good news.
Thank you !

@lotuslwt

This comment has been minimized.

Show comment
Hide comment
@lotuslwt

lotuslwt Aug 18, 2015

I have upgraded Telegram to latest version 0.85.1 on Ubuntu 12.04, but I can't still input Chinese.
First is fcitx-qt5 installed? if so, how to install it?
Thank you !

I have upgraded Telegram to latest version 0.85.1 on Ubuntu 12.04, but I can't still input Chinese.
First is fcitx-qt5 installed? if so, how to install it?
Thank you !

@taijuin

This comment has been minimized.

Show comment
Hide comment
@taijuin

taijuin Aug 18, 2015

It is not a Telegram desktop problem!
You can refer to here: ( I have not tested! )( Maybe you should use Ubuntu14.04 )
http://blog.csdn.net/zyh821351004/article/details/43700699

taijuin commented Aug 18, 2015

It is not a Telegram desktop problem!
You can refer to here: ( I have not tested! )( Maybe you should use Ubuntu14.04 )
http://blog.csdn.net/zyh821351004/article/details/43700699

@Maijin

This comment has been minimized.

Show comment
Hide comment
@Maijin

Maijin Aug 18, 2015

Awesome it works in the latest version now (no need dev) \o/

Maijin commented Aug 18, 2015

Awesome it works in the latest version now (no need dev) \o/

@JixunMoe

This comment has been minimized.

Show comment
Hide comment
@JixunMoe

JixunMoe Sep 29, 2015

I got it working by force the QT_IM_MODULE variable, not sure if this helps.

Node: This is Ubuntu, with fcitx-libs-qt5 and its front-end installed.

QT_IM_MODULE=fcitx /opt/telegram/Telegram

I got it working by force the QT_IM_MODULE variable, not sure if this helps.

Node: This is Ubuntu, with fcitx-libs-qt5 and its front-end installed.

QT_IM_MODULE=fcitx /opt/telegram/Telegram
@mxa

This comment has been minimized.

Show comment
Hide comment
@mxa

mxa Jan 21, 2016

This has worked for me out of the box, but is now broken again (using fcitx) since an OS update. The Telegram version did not change. @JixunMoe that solution solves the problem for me. Thanks.
@telegramdesktop please take a note.

mxa commented Jan 21, 2016

This has worked for me out of the box, but is now broken again (using fcitx) since an OS update. The Telegram version did not change. @JixunMoe that solution solves the problem for me. Thanks.
@telegramdesktop please take a note.

@dawncold

This comment has been minimized.

Show comment
Hide comment
@dawncold

dawncold Apr 13, 2016

I don't know why one of my PC needs link qt plugins to Telegram's bin directory but another doesn't need, they are Ubuntu 12.04 LTS and installed fcitx nightly build.

I don't know why one of my PC needs link qt plugins to Telegram's bin directory but another doesn't need, they are Ubuntu 12.04 LTS and installed fcitx nightly build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment