GithubHelp home page GithubHelp logo

fcitx-sunpinyin's Introduction

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.

fcitx-sunpinyin's People

Contributors

happyaron avatar wengxt avatar yuyichao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fcitx-sunpinyin's Issues

Tests fail to build

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)

MS2003双拼方案‘ue’音映射错误

使用fcitx-sunpinyin 0.4.1-1时设置为MS2003方案双拼,发现t被映射为iong。例如今尝试输入“感觉”但得到“干囧”。。。希望解释一下原因并给出接囧方案

Build Errors

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 ?

make 编译错误. 请帮我看下.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.