GithubHelp home page GithubHelp logo

libpinyin / ibus-libpinyin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from epico/ibus-libpinyin

618.0 21.0 87.0 5.47 MB

License: GNU General Public License v3.0

Shell 0.15% Python 23.51% Awk 0.13% Lua 0.66% C 23.44% PHP 0.05% C++ 44.62% Makefile 1.61% M4 5.82%

ibus-libpinyin's Introduction

ibus-libpinyin

Intelligent Pinyin engine based on libpinyin for IBus

Description
It includes a Chinese Pinyin input method and a Chinese ZhuYin (Bopomofo) input method based on libpinyin for IBus.

ibus-libpinyin's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ibus-libpinyin's Issues

Compiling error about pinyin.h

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?

make error

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?

ImportError: No module named gi.repository

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.

输入shi找不到似字

似字是多音字,既可以念si(四声),也可以念shi(四声)。现在只能输入si找到。

繁簡體模式下的問題

1 )簡體模式下候選字同時出現簡體字和繁體字

2)繁體模式下有些候選字會出現2次
輸入"li",候選字有2個"裏" 3個"歷",還有其他...

3)繁體模式下輸入"li"候選字沒有"里",暫時的解決方法:需要輸入"gongli",候選字出現"公里",然後再刪除"公"字

建議增加的功能:能夠改候選字大小

fedora 20
libpinyin 1.6.92

/bin/sh: line 2: english.db: command not found

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 forall'.
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

词库导入的问题

刚用linux 几个星期, 对导入词库不懂, 网上的解决办法似乎没用. 请问一下词库的导入路径在哪? thanks!

征集 libpinyin 中的拼音错误

请在本 issue 中,报告错误的拼音。
在错误拼音被收集后,我会删除相应的 comment.

请根据如下格式报告发现的拼音错误:

  1. 添加 - "词汇" 添加 "拼音";
  2. 删除 - "词汇" 删除 "拼音";
  3. 修正 - "词汇" "错误拼音" => "正确拼音";

已收集的拼音:

Firefox和Thunderbird下,想选择文字反而会删掉

用IBus的拼音输入法,用滑鼠或键盘选择文字反而会把字完全删除掉,文字也没有输入到buffer里面,已经害我很多次把撰著已久的小文章和信函完全删掉,现在只好用pluma 先写完再复制过来。简体繁体都会出现同样的问题,别的ibus输入法不会(已经试过英语、hanyu pinyin (m17n)和Anthy,三个都有照常的功能),别的软体不会出现这个问题,只有Firefox和Thunderbird才会。我用的是Linux Mint 17.1下的Ibus 1.5.5。

Hotkeys "Shift+Space" and "Shift+." not working

Documentation states that "Shift+Space" toggles full/half latin Mode, and "Shift+." toggles full/half punctuation. Neither works.

How to reproduce:

  1. Select input mode "ibus-pinyin".
  2. Configure it for "half mode."
  3. Press space bar and 'a'.
  4. Press "shift+space."
  5. Press space bar and 'a'.

Whats the result?

Both step 3 and 5 produce "half mode" characters (' a').
After step 4, the "full/half mode" indicator doesn't change.

What's the expected result?

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').

A little patch to remove python2-xdg dependency

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):

After updating every time, the inputting habit would lose.

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.

Setup not working?

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.

1.5.91 could not build again libpinyin 0.8.93

  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

无法导出用户词库

fedora 21, IBus 智能拼音 1.7.1
选择 首选项->用户数据->导出
得到的文本文件为 0B

请问应当如何导出用户词库?

增加偏旁辅助码

同音字太多,单字输入太慢。尤其是双拼,偏旁辅助码可以大幅提高效率。

phrases.txt cannot be used?

previous version can use the phrases.txt in /usr/share/ibus-libpinyin/ , but now i cannot use it any more. why?

快捷键的设置

希望能有对快捷键的设置,比如简体和繁体切换功能键的设置等等,这些快捷键与很多其他软件冲突,例如:Eclipse的格式排版的功能就是CTRL+SHIFT+F,同时在一些软件中无法使用输入法,必须要关闭软件再打开才有可能有效

用户词库的具体格式?

User data -> User Dictionary 可以支持导入词库,有几个问题没弄明白:

  1. 词库导入后存放在什么位置?
  2. 自带的词库存放在哪里了?
  3. /usr/share/ibus-libpinyin/db/strokes.db 这个是什么?
  4. 类似/usr/share/ibus-libpinyin/db/strokes.db 这样的文件(sqlite db)如何转换成可以导入的词库,比如
    https://code.google.com/p/hslinuxextra/downloads/list 这里下载的ibus词库内容是这样的:
``` 
$ 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中的那些数字究竟是什么...) ?

与ibus-pinyin的功能比较丢失的问题

首先感谢大牛的辛苦开发,让俺们有了方便的中文输入法^^
据我所知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才能调出,这应该是简拼功能部分丢失了吧,望作者大牛解决啊
不管怎么说,谢作者的辛勤工作先^_^

希望的功能

可以在中文输入的时候, 可以加.,等符号,然后回车一起输出,而不是只有字母.
希望可以加入固定某个词的顺序. 这只是建议, 用的还是挺舒服的. 能有这些功能就更强大了.

中英文状态(shift)切换时,systray里面的ibus-ui-gtk3图标永远是ibus-pinyin.svg

系统环境: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),谢谢。

中/英文切换问题

hello
以前使用输入法的时候可以方便地使用shift键进行中英文切换输入。
升级到1.6.99.20150203之后之后就不能使用shift健进行中英文切换了。

Improve Embedded Menu Labels

Screenshot.png

As attached screenshot shows, the embedded menu labels are not very clear.
Since IBus 1.5.0 doesn't support language panel any more, it's time to improve it.

Thank you in advance.

3 * resource leaks ?

[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

fedora 21编译报错

由于opencc更新到了 1.0.2(更新了库版本 libopencc.so.2),所以尝试基于新版opencc重新编译 ibus-libpinyin。但编译失败,报错如下。

opencc使用 https://copr.fedoraproject.org/coprs/mosquito/myrepo 源提供的rpm包,目前还不知怎么更新官方update源的包,就先暂时使用copr编译rpm包。

编译 epico@5d44547epico@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 ############

make -j4

......
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'
......

GNOME 3.16 下ibus-libpinyin的菜单没有显示

系统环境 Debian Testing Stretch + GNOME 3.16

这也是六月份突然就不显示了,另一台电脑部署的是完全一样的环境,并没有出现这个问题。

与此同时,还会出现中英文切换失效,需要先切换到 ibus-pinyin,激活一下,然后再切换回 libpinyin 就可以了。

这是 ibus-libpinyin 和 ibus-pinyin 的对比:
ibus-libpinyin

找不到详细的安装文档:(

我用的debian testing,因为想体验下最新版便下了源码开始编译,没有找到详细的安装文档,只好一步一步摸索,安装了好几个依赖后终于装上了,但是ibus却找不到,最终发现有个component目录是配置ibus的engine的,把xml文件拷贝过去后才成功.
希望有一个详细点的文档能帮助像我这样的初学者,提供一些有关依赖关系,配置方面的内容,谢谢!

切换窗口输入法无效

在终端下,一切换到别的窗口有时候会出现输入法无效,要new tab一个终端再退出才可以..不知道是什么问题.有时候会有时候不会,但切换多了好像就会了

如何重启gnome3集成的ibus??

系统fedora 20
桌面gnome 3

之前用debian,ibus是自己安装的,在ibus图表上右击便出现重启按钮。 重启可以解决大部分问题
但现在换到fedora,找不到重启了。

LUA脚本里也说明脚本更改在ime restart之后才生效

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.