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

Enable support for input method (fcitx) #176

Open
C-Entropy opened this issue Jan 7, 2021 · 5 comments
Open

Enable support for input method (fcitx) #176

C-Entropy opened this issue Jan 7, 2021 · 5 comments

Comments

@C-Entropy
Copy link

C-Entropy commented Jan 7, 2021

Hi I came from McCLIM, where I found I can't use fcitx to switch input method to input Chinese.
And I found that McCLIM is using CLX as backend, so I turned here.

According to this, I suppose we have to use existing xim(Xlib)/xcb-imdkit(XCB) , or write one our own CLX-IM(CLX) .

Any advice?

I have taken a brief look over xcb-imdkit, and it seems possible to write something like CLX-IM, I will give it a try.

@dkochmanski
Copy link
Member

Having a support for input methods in clx is something we want of course, but please keep in mind, that clx is a pure common lisp implementation, so if your solution will end up as a set of ffi bindings, then I'd rather see it as a separate library that may be used with clx.

@C-Entropy
Copy link
Author

I have taken a look at head files, and it seems what xcb-imdkit depends on is std lib and <xcb/xxx.>. So I think it is possible to write a pure lisp one. But it will take much time due to my poor code ability.

@C-Entropy
Copy link
Author

C-Entropy commented Feb 6, 2021

https://github.com/C-Entropy/clx-xim, just start, still fight
Allright, almost done. But at the very least, a bug occur. It is killing me. Anyone help?

@C-Entropy
Copy link
Author

C-Entropy commented Feb 18, 2021

Keeping receving same key events in event-case even I didn't type anything.
Details here:https://groups.google.com/g/fcitx-dev/c/Ef7aJI-j9T4

@C-Entropy
Copy link
Author

C-Entropy commented Feb 19, 2021

Okay, Although I still don't know why this happen, but I successfully make it work with mcclim, so I guess it have something to do with event-case, since mcclim is using process-event. But since mcclim is complex, I will keep digging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants