fcitx / fcitx-sunpinyin Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v2.0
License: GNU General Public License v2.0
Fcitx 4 is under maintainence Mode now, so no new issue and PR should be created. Please give fcitx 5 a try if possible. If you're experiencing problem, you can reach out mail list (fcitx[at]googlegroups.com) or IRC (fcitx[at]freenode) for help. Please read http://fcitx-im.org for further help. See COPYING and COPYING.LIBS for License information.
受到rime中州韵输入法的一些启发,想来问问不知sunpinyin是否可以实现如下功能:
以主音码加辅助形码的码表方式定义字码关系 从而实现减少拼音重码的功能。
这里https://github.com/lotem/librime/issues/14#issuecomment-44156387
有些思考,还请各位指正,谢谢。
After passing -DENABLE_TEST=ON
to cmake
, when building, the following error occurs:
Scanning dependencies of target shuangpin_decode
make[2]: Leaving directory '/tmp/fcitx-sunpinyin-0.4.2_build'
make -f test/CMakeFiles/shuangpin_decode.dir/build.make test/CMakeFiles/shuangpin_decode.dir/build
make[2]: Entering directory '/tmp/fcitx-sunpinyin-0.4.2_build'
[ 94%] Building CXX object test/CMakeFiles/shuangpin_decode.dir/shuangpin_decode.cpp.o
cd /tmp/fcitx-sunpinyin-0.4.2_build/test && /usr/bin/x86_64-pc-linux-gnu-g++ -DNDEBUG -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -fvisibility=hidden -march=native -O2 -Wall -o CMakeFiles/shuangpin_decode.dir/shuangpin_decode.cpp.o -c /tmp/fcitx-sunpinyin-0.4.2/test/shuangpin_decode.cpp
/tmp/fcitx-sunpinyin-0.4.2/test/shuangpin_decode.cpp:1:10: fatal error: pinyin/pinyin_data.h: No such file or directory
#include <pinyin/pinyin_data.h>
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [test/CMakeFiles/shuangpin_decode.dir/build.make:63: test/CMakeFiles/shuangpin_decode.dir/shuangpin_decode.cpp.o] Error 1
make[2]: Leaving directory '/tmp/fcitx-sunpinyin-0.4.2_build'
make[1]: *** [CMakeFiles/Makefile2:850: test/CMakeFiles/shuangpin_decode.dir/all] Error 2
make[1]: Leaving directory '/tmp/fcitx-sunpinyin-0.4.2_build'
make: *** [Makefile:141: all] Error 2
This error is caused by typo in test/CMakeLists.txt
which contains:
include_directories(${SUNPINYIN_INCLUDE_DIRS})
cmake/FindSunpinyin.cmake
sets SUNPINYIN_INCLUDE_DIR
variable, not SUNPINYIN_INCLUDE_DIRS
.
Fix:
--- test/CMakeLists.txt
+++ test/CMakeLists.txt
@@ -1,4 +1,4 @@
-include_directories(${SUNPINYIN_INCLUDE_DIRS})
+include_directories(${SUNPINYIN_INCLUDE_DIR})
link_directories(${SUNPINYIN_LIBRARY_DIRS})
add_executable(shuangpin_decode shuangpin_decode.cpp)
It's been a while since the last release. Is this project still maintained?
fcitx version: 4.2.8.3
输入框无法在新版本Firefox上跟随至地址栏或搜索框。
使用fcitx-sunpinyin 0.4.1-1时设置为MS2003方案双拼,发现t被映射为iong。例如今尝试输入“感觉”但得到“干囧”。。。希望解释一下原因并给出接囧方案
在其它输入法中通常按下shift就可以成为英文输入状态,这个不行,找了一遍没找到配置开关。
que
出现的候选字是
1.穷 2.琼
When I build this package, it went fail with these error:
-- checking for module 'sunpinyin-2.0>=2.0.4'
-- package 'sunpinyin-2.0>=2.0.4' not found
CMake Error at /usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find Sunpinyin (missing: SUNPINYIN_LIBRARIES
SUNPINYIN_MAIN_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
cmake/FindSunpinyin.cmake:32 (find_package_handle_standard_args)
CMakeLists.txt:10 (find_package)
I don't think I have the sunpinyin-2.0 package, where to get this package. I use solus distribute linux. I can't find it in solus's package manager. Where to get the package's source ?
Scanning dependencies of target fcitx-scan-addons.target
Scanning dependencies of target fcitx-compile-mo.target
Scanning dependencies of target fcitx-addon-fcitx-sunpinyin--headers-1
Scanning dependencies of target fcitx-addon-fcitx-sunpinyin--addon--desc-1
[ 0%] [ 11%] [ 11%] [ 11%] Built target fcitx-addon-fcitx-sunpinyin--headers-1
Built target fcitx-addon-fcitx-sunpinyin--addon--desc-1
Built target fcitx-scan-addons.target
Generating ../fcitx_cmake_cache/mo/de/fcitx-sunpinyin.mo
[ 22%] [ 33%] Scanning dependencies of target fcitx-parse-pos.target
Generating ../fcitx_cmake_cache/mo/zh_CN/fcitx-sunpinyin.mo
Generating ../fcitx_cmake_cache/mo/zh_TW/fcitx-sunpinyin.mo
Parsing po file: /home/zw963/Git/fcitx-sunpinyin/po/de.po
Scanning dependencies of target fcitx-sunpinyin
[ 44%] Finished parsing po file: /home/zw963/Git/fcitx-sunpinyin/po/de.po
Parsing po file: /home/zw963/Git/fcitx-sunpinyin/po/zh_CN.po
Finished parsing po file: /home/zw963/Git/fcitx-sunpinyin/po/zh_CN.po
Parsing po file: /home/zw963/Git/fcitx-sunpinyin/po/zh_TW.po
Generating ../fcitx_cmake_cache/mo/ja/fcitx-sunpinyin.mo
[ 55%] [ 66%] Finished parsing po file: /home/zw963/Git/fcitx-sunpinyin/po/zh_TW.po
Parsing po file: /home/zw963/Git/fcitx-sunpinyin/po/ja.po
Finished parsing po file: /home/zw963/Git/fcitx-sunpinyin/po/ja.po
Building CXX object src/CMakeFiles/fcitx-sunpinyin.dir/eim.cpp.o
[ 66%] Building CXX object src/CMakeFiles/fcitx-sunpinyin.dir/handler.cpp.o
Built target fcitx-parse-pos.target
[ 77%] [ 77%] Built target fcitx-compile-mo.target
Building CXX object src/CMakeFiles/fcitx-sunpinyin.dir/config.cpp.o
Scanning dependencies of target fcitx-parse-pos.dependency
[ 77%] Built target fcitx-parse-pos.dependency
/home/zw963/Git/fcitx-sunpinyin/src/eim.cpp:28:23: fatal error: fcitx/ime.h: No such file or directory
#include <fcitx/ime.h>
^
compilation terminated.
make[2]: *** [src/CMakeFiles/fcitx-sunpinyin.dir/eim.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/zw963/Git/fcitx-sunpinyin/src/handler.cpp:22:31: fatal error: fcitx-utils/utils.h: No such file or directory
#include <fcitx-utils/utils.h>
^
compilation terminated.
make[2]: *** [src/CMakeFiles/fcitx-sunpinyin.dir/handler.cpp.o] Error 1
Scanning dependencies of target fcitx-addon-fcitx-sunpinyin--addon--conf-2
[ 88%] Scanning dependencies of target fcitx-addon-fcitx-sunpinyin--addon--conf-1
Generating sunpinyin.conf
[100%] In file included from /home/zw963/Git/fcitx-sunpinyin/src/config.cpp:21:0:
/home/zw963/Git/fcitx-sunpinyin/src/eim.h:25:23: fatal error: fcitx/ime.h: No such file or directory
#include <fcitx/ime.h>
^
compilation terminated.
make[2]: *** [src/CMakeFiles/fcitx-sunpinyin.dir/config.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/fcitx-sunpinyin.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Generating fcitx-sunpinyin.conf
[100%] Built target fcitx-addon-fcitx-sunpinyin--addon--conf-2
[100%] Built target fcitx-addon-fcitx-sunpinyin--addon--conf-1
make: *** [all] Error 2
T的韵母是ue和ve,也就是”学习“码表是xtxi,”月亮“是ytll。
S的韵母是ong和iong,可以参见http://www.flypy.com/pin.html。
而现在出错的是,T的韵母是iong,S的韵母也只有ong没有iong.
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.