libpinyin / ibus-libpinyin Goto Github PK
View Code? Open in Web Editor NEWThis project forked from epico/ibus-libpinyin
License: GNU General Public License v3.0
This project forked from epico/ibus-libpinyin
License: GNU General Public License v3.0
libpinyin Library to deal with pinyin. The libpinyin project aims to provide the algorithms core for intelligent sentence-based Chinese pinyin input methods.
用IBus的拼音输入法,用滑鼠或键盘选择文字反而会把字完全删除掉,文字也没有输入到buffer里面,已经害我很多次把撰著已久的小文章和信函完全删掉,现在只好用pluma 先写完再复制过来。简体繁体都会出现同样的问题,别的ibus输入法不会(已经试过英语、hanyu pinyin (m17n)和Anthy,三个都有照常的功能),别的软体不会出现这个问题,只有Firefox和Thunderbird才会。我用的是Linux Mint 17.1下的Ibus 1.5.5。
零声母方案详见https://zh.wikipedia.org/zh-hans/%E5%8F%8C%E6%8B%BC#.E4.B8.BB.E8.A6.81.E5.8E.9F.E7.90.86
目前输入法自然码采用的是第一种零声母方案,而自然码应采用第三种方案。
如“安”,应为'an',而非'oj';
“啊”,应为‘aa’,而非'oa'。
可以在中文输入的时候, 可以加.,等符号,然后回车一起输出,而不是只有字母.
希望可以加入固定某个词的顺序. 这只是建议, 用的还是挺舒服的. 能有这些功能就更强大了.
请在本 issue 中,报告错误的拼音。
在错误拼音被收集后,我会删除相应的 comment.
请根据如下格式报告发现的拼音错误:
已收集的拼音:
Hi,
I met a make error about english.db, and this is the information below:
make all-recursive
make[1]: Entering directory /home/bo/self_build/ibus-libpinyin-1.4.93' Making all in data make[2]: Entering directory
/home/bo/self_build/ibus-libpinyin-1.4.93/data'
Making all in icons
make[3]: Entering directory /home/bo/self_build/ibus-libpinyin-1.4.93/data/icons' make[3]: Nothing to be done for
all'.
make[3]: Leaving directory /home/bo/self_build/ibus-libpinyin-1.4.93/data/icons' make[3]: Entering directory
/home/bo/self_build/ibus-libpinyin-1.4.93/data'
GEN english.db
/bin/sh: line 2: english.db: command not found
make[3]: *** [english.db] Error 1
make[3]: Leaving directory /home/bo/self_build/ibus-libpinyin-1.4.93/data' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory
/home/bo/self_build/ibus-libpinyin-1.4.93/data'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bo/self_build/ibus-libpinyin-1.4.93'
make: *** [all] Error 2
Thank you for your great job!
Sincerely,
Bo
It seems ibus-libpinyin always uses default settings, no matter what I do using ibus-setup-libpinyin
.
I'm using ibus-libpinyin 1.4.92-1 and libpinyin 0.7.91-1 on Archlinux. I also tried ibus-libpinyin-git.
如果不支持的话可不可以考虑像 google 输入法那样,双拼下输入大写 I 进入 i 模式,谢谢。
This is non-sense.
If you want to generate from special file, you should specify the file name from command line instead.
希望能加入这一功能,谢谢
同音字太多,单字输入太慢。尤其是双拼,偏旁辅助码可以大幅提高效率。
I think it is a little inappropriate to post this question in a comment, so I just open a new issue to discuss this question. when I tried to open the "preferences" in ibus-intelligent pinyin, it show like this:
/usr/libexec/ibus-setup-libpinyin
Traceback (most recent call last):
File "main2.py", line 29, in
from gi.repository import GLib
ImportError: No module named gi.repository
I already installed gi and py gobject, but it is still like that.
我用的debian testing,因为想体验下最新版便下了源码开始编译,没有找到详细的安装文档,只好一步一步摸索,安装了好几个依赖后终于装上了,但是ibus却找不到,最终发现有个component目录是配置ibus的engine的,把xml文件拷贝过去后才成功.
希望有一个详细点的文档能帮助像我这样的初学者,提供一些有关依赖关系,配置方面的内容,谢谢!
fedora 21, IBus 智能拼音 1.7.1
选择 首选项->用户数据->导出
得到的文本文件为 0B
请问应当如何导出用户词库?
Documentation states that "Shift+Space" toggles full/half latin Mode, and "Shift+." toggles full/half punctuation. Neither works.
Both step 3 and 5 produce "half mode" characters (' a').
After step 4, the "full/half mode" indicator doesn't change.
Step 3 should produce a normal space followed by 'a' (aka ' a', aka 0x20 0x61).
Step 4 should cause "full/half mode" indicator to toggle.
Step 5 should produce a full size space followed 'a' (' a').
previous version can use the phrases.txt in /usr/share/ibus-libpinyin/ , but now i cannot use it any more. why?
CXX ibus_engine_libpinyin-PYPPhoneticEditor.o
PYPConfig.cc:58:9: error: 'PINYIN_INCOMPLETE' was not declared in this scope
PYPConfig.cc:58:9: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:33:5: note: 'pinyin::PINYIN_INC
OMPLETE'
PYPConfig.cc:59:9: error: 'CHEWING_INCOMPLETE' was not declared in this scope
PYPConfig.cc:59:9: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:34:5: note: 'pinyin::CHEWING_IN
COMPLETE'
PYPConfig.cc:60:9: error: 'PINYIN_CORRECT_ALL' was not declared in this scope
PYPConfig.cc:60:9: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:77:5: note: 'pinyin::PINYIN_COR
RECT_ALL'
PYPConfig.cc: In member function 'void PY::LibPinyinConfig::initDefaultValues()'
:
PYPConfig.cc:84:21: error: 'PINYIN_INCOMPLETE' was not declared in this scope
PYPConfig.cc:84:21: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:33:5: note: 'pinyin::PINYIN_INC
OMPLETE'
PYPConfig.cc:84:41: error: 'CHEWING_INCOMPLETE' was not declared in this scope
PYPConfig.cc:84:41: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:34:5: note: 'pinyin::CHEWING_IN
COMPLETE'
PYPConfig.cc:84:62: error: 'PINYIN_CORRECT_ALL' was not declared in this scope
PYPConfig.cc:84:62: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:77:5: note: 'pinyin::PINYIN_COR
RECT_ALL'
PYPConfig.cc: At global scope:
PYPConfig.cc:111:33: error: 'PINYIN_INCOMPLETE' was not declared in this scope
PYPConfig.cc:111:33: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:33:5: note: 'pinyin::PINYIN_INC
OMPLETE'
PYPConfig.cc:111:51: error: 'CHEWING_INCOMPLETE' was not declared in this scope
PYPConfig.cc:111:51: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:34:5: note: 'pinyin::CHEWING_IN
COMPLETE'
PYPConfig.cc:113:33: error: 'PINYIN_AMB_C_CH' was not declared in this scope
PYPConfig.cc:113:33: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:48:5: note: 'pinyin::PINYIN_AMB
_C_CH'
PYPConfig.cc:114:33: error: 'PINYIN_AMB_Z_ZH' was not declared in this scope
PYPConfig.cc:114:33: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:50:5: note: 'pinyin::PINYIN_AMB
_Z_ZH'
PYPConfig.cc:115:33: error: 'PINYIN_AMB_S_SH' was not declared in this scope
PYPConfig.cc:115:33: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:49:5: note: 'pinyin::PINYIN_AMB
_S_SH'
PYPConfig.cc:116:33: error: 'PINYIN_AMB_L_N' was not declared in this scope
PYPConfig.cc:116:33: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:53:5: note: 'pinyin::PINYIN_AMB
_L_N'
PYPConfig.cc:117:33: error: 'PINYIN_AMB_F_H' was not declared in this scope
PYPConfig.cc:117:33: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:51:5: note: 'pinyin::PINYIN_AMB
_F_H'
PYPConfig.cc:118:33: error: 'PINYIN_AMB_L_R' was not declared in this scope
PYPConfig.cc:118:33: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:54:5: note: 'pinyin::PINYIN_AMB
_L_R'
PYPConfig.cc:119:33: error: 'PINYIN_AMB_G_K' was not declared in this scope
PYPConfig.cc:119:33: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:52:5: note: 'pinyin::PINYIN_AMB
_G_K'
PYPConfig.cc:120:33: error: 'PINYIN_AMB_AN_ANG' was not declared in this scope
PYPConfig.cc:120:33: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:55:5: note: 'pinyin::PINYIN_AMB
_AN_ANG'
PYPConfig.cc:121:33: error: 'PINYIN_AMB_EN_ENG' was not declared in this scope
PYPConfig.cc:121:33: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:56:5: note: 'pinyin::PINYIN_AMB
_EN_ENG'
PYPConfig.cc:122:33: error: 'PINYIN_AMB_IN_ING' was not declared in this scope
PYPConfig.cc:122:33: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:57:5: note: 'pinyin::PINYIN_AMB
_IN_ING'
PYPConfig.cc:124:33: error: 'DYNAMIC_ADJUST' was not declared in this scope
PYPConfig.cc:124:33: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:38:5: note: 'pinyin::DYNAMIC_AD
JUST'
PYPConfig.cc: In member function 'virtual gboolean PY::LibPinyinConfig::valueCha
nged(const string&, const string&, GVariant*)':
PYPConfig.cc:245:30: error: 'PINYIN_AMB_ALL' was not declared in this scope
PYPConfig.cc:245:30: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:58:5: note: 'pinyin::PINYIN_AMB
_ALL'
PYPConfig.cc:247:31: error: 'PINYIN_AMB_ALL' was not declared in this scope
PYPConfig.cc:247:31: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:58:5: note: 'pinyin::PINYIN_AMB
_ALL'
PYPConfig.cc: At global scope:
PYPConfig.cc:290:33: error: 'PINYIN_CORRECT_GN_NG' was not declared in this scop
e
PYPConfig.cc:290:33: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:69:5: note: 'pinyin::PINYIN_COR
RECT_GN_NG'
PYPConfig.cc:291:33: error: 'PINYIN_CORRECT_GN_NG' was not declared in this scop
e
PYPConfig.cc:291:33: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:69:5: note: 'pinyin::PINYIN_COR
RECT_GN_NG'
PYPConfig.cc:292:33: error: 'PINYIN_CORRECT_MG_NG' was not declared in this scop
e
PYPConfig.cc:292:33: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:70:5: note: 'pinyin::PINYIN_COR
RECT_MG_NG'
PYPConfig.cc:293:33: error: 'PINYIN_CORRECT_IOU_IU' was not declared in this sco
pe
PYPConfig.cc:293:33: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:71:5: note: 'pinyin::PINYIN_COR
RECT_IOU_IU'
PYPConfig.cc:294:33: error: 'PINYIN_CORRECT_UEI_UI' was not declared in this sco
pe
PYPConfig.cc:294:33: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:72:5: note: 'pinyin::PINYIN_COR
RECT_UEI_UI'
PYPConfig.cc:295:33: error: 'PINYIN_CORRECT_UEN_UN' was not declared in this sco
pe
PYPConfig.cc:295:33: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:73:5: note: 'pinyin::PINYIN_COR
RECT_UEN_UN'
PYPConfig.cc:296:33: error: 'PINYIN_CORRECT_UE_VE' was not declared in this scop
e
PYPConfig.cc:296:33: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:74:5: note: 'pinyin::PINYIN_COR
RECT_UE_VE'
PYPConfig.cc:297:33: error: 'PINYIN_CORRECT_V_U' was not declared in this scope
PYPConfig.cc:297:33: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:75:5: note: 'pinyin::PINYIN_COR
RECT_V_U'
PYPConfig.cc:298:33: error: 'PINYIN_CORRECT_V_U' was not declared in this scope
PYPConfig.cc:298:33: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:75:5: note: 'pinyin::PINYIN_COR
RECT_V_U'
PYPConfig.cc:299:33: error: 'PINYIN_CORRECT_ON_ONG' was not declared in this sco
pe
PYPConfig.cc:299:33: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:76:5: note: 'pinyin::PINYIN_COR
RECT_ON_ONG'
PYPConfig.cc: In member function 'virtual gboolean PY::LibPinyinPinyinConfig::va
lueChanged(const string&, const string&, GVariant*)':
PYPConfig.cc:416:30: error: 'PINYIN_CORRECT_ALL' was not declared in this scope
PYPConfig.cc:416:30: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:77:5: note: 'pinyin::PINYIN_COR
RECT_ALL'
PYPConfig.cc:418:31: error: 'PINYIN_CORRECT_ALL' was not declared in this scope
PYPConfig.cc:418:31: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYPConfig.h:33,
from PYPConfig.cc:21:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:77:5: note: 'pinyin::PINYIN_COR
RECT_ALL'
make[3]: *** [ibus_engine_libpinyin-PYPConfig.o] Error 1
make[3]: *** Waiting for unfinished jobs....
PYLibPinyin.cc: In member function 'pinyin_context_t* PY::LibPinyinBackEnd::init
PinyinContext(PY::Config*)':
PYLibPinyin.cc:84:42: error: 'USER_DICTIONARY' was not declared in this scope
PYLibPinyin.cc:84:42: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:27:0,
from PYLibPinyin.cc:25:
/usr/include/libpinyin-0.8.93/novel_types.h:164:5: note: 'pinyin::USER_DICTION
ARY'
PYLibPinyin.cc: At global scope:
PYLibPinyin.cc:170:9: error: 'DOUBLE_PINYIN_MS' was not declared in this scope
PYLibPinyin.cc:170:9: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYLibPinyin.cc:25:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:86:5: note: 'pinyin::DOUBLE_PIN
YIN_MS'
PYLibPinyin.cc:171:9: error: 'DOUBLE_PINYIN_ZRM' was not declared in this scope
PYLibPinyin.cc:171:9: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYLibPinyin.cc:25:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:85:5: note: 'pinyin::DOUBLE_PIN
YIN_ZRM'
PYLibPinyin.cc:172:9: error: 'DOUBLE_PINYIN_ABC' was not declared in this scope
PYLibPinyin.cc:172:9: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYLibPinyin.cc:25:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:88:5: note: 'pinyin::DOUBLE_PIN
YIN_ABC'
PYLibPinyin.cc:173:9: error: 'DOUBLE_PINYIN_ZIGUANG' was not declared in this sc
ope
PYLibPinyin.cc:173:9: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYLibPinyin.cc:25:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:87:5: note: 'pinyin::DOUBLE_PIN
YIN_ZIGUANG'
PYLibPinyin.cc:174:9: error: 'DOUBLE_PINYIN_PYJJ' was not declared in this scope
PYLibPinyin.cc:174:9: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYLibPinyin.cc:25:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:89:5: note: 'pinyin::DOUBLE_PIN
YIN_PYJJ'
PYLibPinyin.cc:175:9: error: 'DOUBLE_PINYIN_XHE' was not declared in this scope
PYLibPinyin.cc:175:9: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYLibPinyin.cc:25:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:90:5: note: 'pinyin::DOUBLE_PIN
YIN_XHE'
PYLibPinyin.cc: In member function 'gboolean PY::LibPinyinBackEnd::setPinyinOpti
ons(PY::Config*)':
PYLibPinyin.cc:194:11: error: 'USE_RESPLIT_TABLE' was not declared in this scope
PYLibPinyin.cc:194:11: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYLibPinyin.cc:25:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:37:5: note: 'pinyin::USE_RESPLI
T_TABLE'
PYLibPinyin.cc:194:31: error: 'USE_DIVIDED_TABLE' was not declared in this scope
PYLibPinyin.cc:194:31: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYLibPinyin.cc:25:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:36:5: note: 'pinyin::USE_DIVIDE
D_TABLE'
PYLibPinyin.cc: At global scope:
PYLibPinyin.cc:204:9: error: 'CHEWING_STANDARD' was not declared in this scope
PYLibPinyin.cc:204:9: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYLibPinyin.cc:25:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:100:5: note: 'pinyin::CHEWING_S
TANDARD'
PYLibPinyin.cc:205:9: error: 'CHEWING_GINYIEH' was not declared in this scope
PYLibPinyin.cc:205:9: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYLibPinyin.cc:25:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:102:5: note: 'pinyin::CHEWING_G
INYIEH'
PYLibPinyin.cc:206:9: error: 'CHEWING_ETEN' was not declared in this scope
PYLibPinyin.cc:206:9: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYLibPinyin.cc:25:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:103:5: note: 'pinyin::CHEWING_E
TEN'
PYLibPinyin.cc:207:9: error: 'CHEWING_IBM' was not declared in this scope
PYLibPinyin.cc:207:9: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYLibPinyin.cc:25:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:101:5: note: 'pinyin::CHEWING_I
BM'
PYLibPinyin.cc: In member function 'gboolean PY::LibPinyinBackEnd::setChewingOpt
ions(PY::Config*)':
PYLibPinyin.cc:226:50: error: 'USE_TONE' was not declared in this scope
PYLibPinyin.cc:226:50: note: suggested alternative:
In file included from /usr/include/libpinyin-0.8.93/pinyin.h:28:0,
from PYLibPinyin.cc:25:
/usr/include/libpinyin-0.8.93/pinyin_custom2.h:35:5: note: 'pinyin::USE_TONE'
make[3]: *** [ibus_engine_libpinyin-PYLibPinyin.o] Error 1
make[3]: Leaving directory `/build/src/ibus-libpinyin-build/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/build/src/ibus-libpinyin-build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/build/src/ibus-libpinyin-build'
make: *** [all] Error 2
User data -> User Dictionary 可以支持导入词库,有几个问题没弄明白:
```
$ sqlite3 sougou-phrases-full/ibus/android.db
SQLite version 3.8.10.2 2015-05-20 18:17:19
Enter ".help" for usage hints.
sqlite> .tables
py_phrase_0 py_phrase_12 py_phrase_2 py_phrase_6
py_phrase_1 py_phrase_13 py_phrase_3 py_phrase_7
py_phrase_10 py_phrase_14 py_phrase_4 py_phrase_8
py_phrase_11 py_phrase_15 py_phrase_5 py_phrase_9
sqlite> select * from py_phrase_0 limit 10;
的|7680|4|29
了|7679|10|29
我|7678|19|44
是|7677|17|34
在|7676|22|25
你|7675|12|34
和|7674|7|29
有|7673|21|46
不|7672|1|47
就|7671|8|43
```
这样的内容如何转换成ibus-libpinyin要求的 "phrase pinyin [frequency]" (不明白sqlite db table中的那些数字究竟是什么...) ?
在终端下,一切换到别的窗口有时候会出现输入法无效,要new tab一个终端再退出才可以..不知道是什么问题.有时候会有时候不会,但切换多了好像就会了
No need pyxdg if already have GLib imported.
diff -uNr a/setup/main2.py b/setup/main2.py
--- a/setup/main2.py 2013-04-24 15:45:32.000000000 +0800
+++ b/setup/main2.py 2013-09-27 14:24:37.261536555 +0800
@@ -30,7 +30,6 @@
from gi.repository import GLib
from gi.repository import Gtk
from gi.repository import IBus
-from xdg import BaseDirectory
import config
from dicttreeview import DictionaryTreeView
@@ -373,7 +372,7 @@
def __edit_lua_cb(self, widget):
import shutil
- path = os.path.join(BaseDirectory.xdg_config_home, "ibus", "libpinyin")
+ path = os.path.join(GLib.get_user_config_dir(), "ibus", "libpinyin")
os.path.exists(path) or os.makedirs(path)
path = os.path.join(path, "user.lua")
if not os.path.exists(path):
希望能有对快捷键的设置,比如简体和繁体切换功能键的设置等等,这些快捷键与很多其他软件冲突,例如:Eclipse的格式排版的功能就是CTRL+SHIFT+F
,同时在一些软件中无法使用输入法,必须要关闭软件再打开才有可能有效
似字是多音字,既可以念si(四声),也可以念shi(四声)。现在只能输入si找到。
Currently the advertised symbols are both 中 (U+4E2D).
It is neither clear nor consistent with older SVG icons.
For pinyin, use 拼 (U+62FC).
https://github.com/libpinyin/ibus-libpinyin/blob/master/src/libpinyin.xml.in.in#L28
For bopomofo, use 注 (U+6CE8) or ㄅ (U+3105), the first phonetic symbol.
https://github.com/libpinyin/ibus-libpinyin/blob/master/src/libpinyin.xml.in.in#L44
hello
以前使用输入法的时候可以方便地使用shift键进行中英文切换输入。
升级到1.6.99.20150203之后之后就不能使用shift健进行中英文切换了。
RT,简单表述为开机后,不能直接的输入中文,需要先切换到其他的输入法(比如rime)再切换回来。
本故障重现率80%左右。
刚用linux 几个星期, 对导入词库不懂, 网上的解决办法似乎没用. 请问一下词库的导入路径在哪? thanks!
而且要选第10个候选要输入0而不是a(和界面上显示的不一样)
发行版fedora 19 (beta)
1 )簡體模式下候選字同時出現簡體字和繁體字
2)繁體模式下有些候選字會出現2次
輸入"li",候選字有2個"裏" 3個"歷",還有其他...
3)繁體模式下輸入"li"候選字沒有"里",暫時的解決方法:需要輸入"gongli",候選字出現"公里",然後再刪除"公"字
建議增加的功能:能夠改候選字大小
fedora 20
libpinyin 1.6.92
系统fedora 20
桌面gnome 3
之前用debian,ibus是自己安装的,在ibus图表上右击便出现重启按钮。 重启可以解决大部分问题
但现在换到fedora,找不到重启了。
LUA脚本里也说明脚本更改在ime restart之后才生效
I make iubs-libpinyin on linux mint ,I encountered a problem
make[3]: Entering directory /home/xuefliang/ibus-libpinyin/data' GEN english.db /bin/bash: line 2: english.db: command not found make[3]: *** [english.db] Error 1 make[3]: Leaving directory
/home/xuefliang/ibus-libpinyin/data'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory /home/xuefliang/ibus-libpinyin/data' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory
/home/xuefliang/ibus-libpinyin'
make: *** [all] Error 2
How do I solve this problem?
How do you do this? I can't find any information. Can it be added to the wiki?
系统环境:https://spins.fedoraproject.org/zh_CN/xfce/
不知道icons目录下的10个svg图标是不是只是为浮动跟随工具栏准备的,反正在我环境中,libpinyin输入法内部无论如何切换,systray的图标永远是ibus-pinyin.svg。
(我暂时从别处找了一个好看的icon将其替换了)
另外一个问题,libpinyin(shift)临时切换到英文状态后,系统原生输入窗口还则罢了,如若遇到网页模拟输入区域,则按字母键不上词,需要再按空格才上词,而且空格也一起敲进去了。
可以在https://ide.coding.net 下面的终端面板里面重现这个问题。
最后请问,ibus能否设置仅用shift切换输入法(默认是super+space),谢谢。
My os is centos7 and desktop enviroment is gnome.
I've set chinese(intelligent pinyin) as one of input sources,but ,it dosen't work in other application at all,like firefox,Office,etc. It only can be used in the terminal.
why? help......
[PYLibPinyin.cc:217]: (error) Resource leak: dictfile
Source code is
if (NULL == iter)
return FALSE;
[PYLibPinyin.cc:265]: (error) Resource leak: dictfile
[ZYLibZhuyin.cc:164]: (error) Resource leak: dictfile
首先感谢大牛的辛苦开发,让俺们有了方便的中文输入法^^
据我所知ibus-libpinyin是在ibus-pinyin的基础上改进而来的,最让我喜欢的新功能就是是切换输入法时右上角可以显示是中文还是英文,免去先打一个字测试的麻烦^^,但是用惯了ibus-pinyin的我切换到本输入法时发现ibus-pinyin的一些好用功能丢失了,希望能修复啊:
1.记忆输入过的词不及时
在ibus-pinyin中,输入个人词库没有的新词后再接着后面输一遍就会立即显示出刚才新输的词,或者已有的词会调整排序,很及时,但是在libpinyin中第一次输入后接着输有时候会出现有时候则没有,挺不稳定的,而且必须再结束本次输入状态后才能记录,就是输入完之后切换到另一程序再切换回来才会记录,一直在本程序则不会,直到关闭才会记录,不能动态的随书随记了
2.记录同音词有丢失现象
比如我先输入了一个词“奇异果”,再输入一个词“起义国”,第三次输入qiyiguo时提供的排序就是1起义国2奇异果,我选了第二个词“奇异果”,可是当我第四次输入qiyiguo时,提供的词只有1奇异果了,而那个本该排在2的“起义国”却消失了,这是一个bug
3.简拼对输入过的词无效
如题所示,这是我最不能忍的一个功能丢失了,严重拖慢了输入速度啊,比如我输入过一次“奇异果”了记录在个人词库,在ibus-pinyin中下一次我就可以直接打qyg三个声母调出来,可是libpinyin不行,还得完整地打出qiyiguo才能调出,这应该是简拼功能部分丢失了吧,望作者大牛解决啊
不管怎么说,谢作者的辛勤工作先^_^
PYPConfig.h:33:20: fatal error: pinyin.h: No such file or directory
compilation terminated.
make[3]: *** [ibus_engine_libpinyin-PYMain.o] Error 1
make[3]: Leaving directory /home/bo/ibus-libpinyin-1.4.2/src' make[2]: *** [all] Error 2 make[2]: Leaving directory
/home/bo/ibus-libpinyin-1.4.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bo/ibus-libpinyin-1.4.2'
make: *** [all] Error 2
I've compiled and installed libpinyin successfully, I mean it seems, and no error about libpinyin. However, when I did ./configure --prefix=/usr , the information was like this:
Build options:
Version 1.4.2
Install prefix /usr
Use boost no
Use opencc no
Use libpinyin no
Build lua extension yes
Build stroke input mode yes
Build english input mode yes
I am not sure why it said "Use libpinyin no". Is it normal? or Does it relate to the error of pinyin.h above?
Because of the bad dictionary, I usually turn on "Remember every input as a phrase".
but when I made a mistake to input a incorrect word, I can't remove it
I suggest add a remove feature or the word candidates should order by use frequency
如图:
http://ww2.sinaimg.cn/large/0060lm7Tgw1f3732iu2drj31b60m4whd.jpg
使用的是Fedora 23,安装在Macbook Pro late 2013上。猜这个问题和HiDPI支持有关系。
由于opencc更新到了 1.0.2(更新了库版本 libopencc.so.2),所以尝试基于新版opencc重新编译 ibus-libpinyin。但编译失败,报错如下。
opencc使用 https://copr.fedoraproject.org/coprs/mosquito/myrepo 源提供的rpm包,目前还不知怎么更新官方update源的包,就先暂时使用copr编译rpm包。
编译 epico@5d44547 、 epico@82b89ae 、 1.6.92 均失败。
############ spec file ############
%build
export ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I m4"
gnome-autogen.sh
%configure --disable-static
--enable-opencc
--disable-boost
make %{?_smp_mflags}
############ end spec file ############
......
CXX ibus_engine_libpinyin-PYSimpTradConverter.o
PYSimpTradConverter.cc: In member function 'void PY::opencc::convert(const gchar_, PY::String&)':
PYSimpTradConverter.cc:61:9: error: 'ucs4_t' was not declared in this scope
ucs4_t *pinbuf = (ucs4_t *)in_ucs4;
^
PYSimpTradConverter.cc:61:17: error: 'pinbuf' was not declared in this scope
ucs4_t *pinbuf = (ucs4_t *)in_ucs4;
^
PYSimpTradConverter.cc:61:35: error: expected primary-expression before ')' token
ucs4_t *pinbuf = (ucs4_t *)in_ucs4;
^
PYSimpTradConverter.cc:64:21: error: 'poutbuf' was not declared in this scope
ucs4_t *poutbuf = (ucs4_t *)m_buffer;
^
PYSimpTradConverter.cc:64:40: error: expected primary-expression before ')' token
ucs4_t *poutbuf = (ucs4_t *)m_buffer;
^
PYSimpTradConverter.cc:66:94: error: 'opencc_convert' was not declared in this scope
size_t retval = opencc_convert(m_od, &pinbuf, &inbuf_left, &poutbuf, &outbuf_left);
^
Makefile:841: recipe for target 'ibus_engine_libpinyin-PYSimpTradConverter.o' failed
make[3]: *_* [ibus_engine_libpinyin-PYSimpTradConverter.o] Error 1
make[3]: * Waiting for unfinished jobs....
PYMain.cc: In function 'int main(gint, gchar)':
PYMain.cc:179:5: warning: 'void g_atexit(GVoidFunc)' is deprecated (declared at /usr/include/glib-2.0/glib/gutils.h:242) [-Wdeprecated-declarations]
g_atexit (atexit_cb);
^
PYMain.cc:179:24: warning: 'void g_atexit(GVoidFunc)' is deprecated (declared at /usr/include/glib-2.0/glib/gutils.h:242) [-Wdeprecated-declarations]
g_atexit (atexit_cb);
^
make[3]: Leaving directory '/home/mosquito/rpmbuild/BUILD/ibus-libpinyin-1.7.0git20141105/src'
......
Fedora 20 Intelligent Pinyin 1.6.92
正确:曝光——bào guāng
错误:曝光—— pù guāng
但是ibus-googlepinyin可以正常输入,换成libpinyin,无论是在中文模式或是英文模式都只能输入英文。我的系统是Arch Linux,gnome 3.20.2, ibus-libpinyin 1.7.3-2,谢谢。
As far as I can see all this function need it still inside the internal library, could you add that back?
Hi,
I know that the libpinyin can learn the inputting habit from users. However, after updating every time, the inputting habit would lose, and everything would come back to default. Is it possible to avoid this problem, and let the libpinyin record the habit forever?
By the way, I have this problem in Fedora right now, and I have not tested it in other distro yet. Thus, if you have any idea to avoid this problem in Fedora, please let me know.
安装了cent os 7,自带的该中文输入法,输入法本身很好用,但是 有个问题,没办法在浏览器中切换中英文,一直都是输入的英文,也没办法在开发工具中输入中文,让我很头疼,不知道是系统设置的问题还是怎样的,希望有人能帮忙解决以下,不胜感激
The current is phonetic symbol ㄉ, which I don't know why it is selected.
https://github.com/libpinyin/ibus-libpinyin/blob/master/data/icons/ibus-bopomofo.svg
注 or ㄅ(the first phonetic symbol) would be better.
main.cpp:(.text+0x196): undefined reference to `pinyin::ChewingKey::get_pinyin_string()'
著(正體) = 着(简体)
ㄓㄠˊ zhe2
我用zhe是沒有這個字的,但是要輸入zhu (ㄓㄨˋ)才行。我沒嘗試過注音輸入法,不知道有沒有這個問題。
教育部的字典
http://dict.variants.moe.edu.tw/yitia/fra/fra03506.htm
@epico I am opening this bug here based on the suggestion of @fujiwarat's suggestion.
Question, you posted on the original issue that its fixed in epico@5c0158f, but @fujiwarat recommended to open the bug here which seems to be a fork of your repository, so which one is actual upstream repository.
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.