qingxiang-jia / full-cloud-pinyin Goto Github PK
View Code? Open in Web Editor NEWAn attempt to use Google Input Tools as the backend for input methods on Linux
License: GNU General Public License v3.0
An attempt to use Google Input Tools as the backend for input methods on Linux
License: GNU General Public License v3.0
When selecting candidates by index, when it's on the first page, everything works fine. When it's on the second page, after hitting the index, the candidate selected are from the first page (under the same index).
Google Input Tools was available on windows as separate offline client. Is there any way we can leverage that to use it without internet and integrate with this project?
This happens randomly. The IBus UI only shows the candidates based on preedit without the last character.
We used to use SHIFT to turn on and off the input method. But handling it along with using SHIFT to enter uppercase letter making it hard to handle. So we now use CTRL to do it. But now if you press CTRL, nothing happens and if you press SHIFT, the input session terminates.
It should be:
Should be ()instead of ().
It would be nice if there's an indicator indicating whether we are in English mode or Pinyin mode.
This happens when typing pinyin while also types numbers. Only part of the numbers are committed and sometimes none at all.
built successfully but need instructions for installing.
This is for the Fcitx 5 based full cloud pinyin. When I type too fast, it crashes. The stack trace is:
Fcitx 5.0.19 -- Get Signal No.: 11
Date: try "date -d @1666271367" if you are using GNU date ***
ProcessID: 7764
fcitx5(+0x12d9c)[0x55a39f4c4d9c]
/usr/lib/libc.so.6(+0x38a00)[0x7ff5a297aa00]
/usr/lib/libFcitx5Core.so.7(_ZN5fcitx20UserInterfaceManager5flushEv+0x7e)[0x7ff5a2f0f2be]
/usr/lib/libFcitx5Core.so.7(_ZNK5fcitx8Instance9postEventERNS_5EventE+0x3c8)[0x7ff5a2ebd578]
/usr/lib/libFcitx5Core.so.7(_ZN5fcitx12InputContext8keyEventERNS_8KeyEventE+0xa6)[0x7ff5a2edfbb6]
/usr/lib/fcitx5/libdbusfrontend.so(+0x12cca)[0x7ff5a1338cca]
/usr/lib/fcitx5/libdbusfrontend.so(+0x133d4)[0x7ff5a13393d4]
/usr/lib/libFcitx5Utils.so.2(+0x3e2ea)[0x7ff5a2dfe2ea]
/usr/lib/libsystemd.so.0(+0x36d6d)[0x7ff5a284bd6d]
/usr/lib/libsystemd.so.0(+0x460b3)[0x7ff5a285b0b3]
/usr/lib/libsystemd.so.0(+0x4dfe8)[0x7ff5a2862fe8]
/usr/lib/libsystemd.so.0(+0x799ab)[0x7ff5a288e9ab]
/usr/lib/libsystemd.so.0(sd_event_dispatch+0x116)[0x7ff5a2898ff6]
/usr/lib/libsystemd.so.0(sd_event_run+0x119)[0x7ff5a2899279]
/usr/lib/libsystemd.so.0(sd_event_loop+0x60)[0x7ff5a2899450]
/usr/lib/libFcitx5Utils.so.2(_ZN5fcitx9EventLoop4execEv+0x16)[0x7ff5a2dfceb6]
/usr/lib/libFcitx5Core.so.7(_ZN5fcitx8Instance4execEv+0x57)[0x7ff5a2ec00e7]
fcitx5(+0x10fa0)[0x55a39f4c2fa0]
/usr/lib/libc.so.6(+0x23290)[0x7ff5a2965290]
/usr/lib/libc.so.6(__libc_start_main+0x8a)[0x7ff5a296534a]
fcitx5(+0x12375)[0x55a39f4c4375]
fish: Job 1, 'fcitx5' terminated by signal SIGSEGV (Address boundary error)
I couldn't figure out why. So I asked the author of Fcitx 5. He helped me (really appreciate!) and here his analysis:
immediate
when calling InputContext::updateUserInterface
(I did so to solve the candidate not updated to latest issue)call_async
here is just multi-threading (can be seen from stacktrace below).
==146789== by 0x4DE62F2: execute_native_thread_routine (thread.cc:82)
==146789== by 0x50D58FC: start_thread (pthread_create.c:442)
==146789== by 0x5156C73: clone (clone.S:100)
If we need to call anything on fictx instance, call it on the main thread using: https://codedocs.xyz/fcitx/fcitx5/classfcitx_1_1EventDispatcher.html
Also, from https://en.cppreference.com/w/cpp/thread/async,
The function template async runs the function f asynchronously (potentially in a separate thread which might be a part of a thread pool) and returns a std::future that will eventually hold the result of that function call.
parallels@ubuntu-linux-22-04-desktop:~/projects/full-cloud-pinyin$ cargo build
Compiling fcp v0.1.0 (/home/parallels/projects/full-cloud-pinyin)
error[E0659]: `zmq` is ambiguous
--> src/main.rs:3:5
|
3 | use zmq::Server;
| ^^^ ambiguous name
|
= note: ambiguous because of multiple potential import sources
= note: `zmq` could refer to a crate passed with `--extern`
= help: use `::zmq` to refer to this crate unambiguously
note: `zmq` could also refer to the module defined here
--> src/main.rs:14:1
|
14 | pub mod zmq;
| ^^^^^^^^^^^^
= help: use `crate::zmq` to refer to this module unambiguously
For more information about this error, try `rustc --explain E0659`.
error: could not compile `fcp` (bin "fcp") due to previous error
can not restart fpc once exited because of previous fpc instance does not release local server address.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.