LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: Awei

关于ibus的五笔输入方面的问题。

[复制链接]
发表于 2009-5-30 07:49:42 | 显示全部楼层
把你的
  1. ~/.ibus/tables/debug.log
复制代码
贴上来看下
回复 支持 反对

使用道具 举报

发表于 2009-5-30 13:07:17 | 显示全部楼层
@acevery
在~/.ibus/下面不存在table目录到是有个pinyin的目录,这应该是我装拼音输入法时生成的
~/.ibus/tables/debug.log文件是没有了,
回复 支持 反对

使用道具 举报

发表于 2009-5-30 17:37:34 | 显示全部楼层
32位archlinux,ibus表码输入无法激活。在装有ibus-pinyin时,~/.ibus/ 中能看到pinyin子目录,找不到和table有关的子目录。如果不装ibus-pinyin,~/.ibus/这个目录都不会被创建。

启动时用过 --re-scan 参数,和lwkyy的情况一样,ibus-setup里能看到zhengma的选项,也能添加,但无法激活并输入中文,无论在gtk还是在qt程序。
  1. ibus-git-20090526
  2. ibus-pinyin-git-20090501
  3. ibus-table-git-20090526
  4. ibus-table-zhengma-git-20090526
  5. python 2.6.2
  6. dbus 1.2.14
  7. dbus-python-0.83
复制代码

~/.cache/ibus/registry.xml
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3.     This file was generated by ibus-daemon. Please don't modify it.
  4.     -->
  5. <ibus-registry>
  6.     <observed-paths>
  7.         <path mtime="1243371673" >/usr/share/ibus/component</path>
  8.         <path mtime="0" >/home/field/.ibus/component</path>
  9.     </observed-paths>
  10.     <components>
  11.         <component>
  12.             <name>org.freedesktop.IBus.Panel</name>
  13.             <description>Gtk Panel Component</description>
  14.             <version>1.1.0.20090526</version>
  15.             <license>GPL</license>
  16.             <author>Peng Huang &lt;shawn.p.huang@gmail.com&gt;</author>
  17.             <homepage>http://code.google.com/p/ibus</homepage>
  18.             <exec>/usr/lib/ibus/ibus-ui-gtk</exec>
  19.             <textdomain>ibus</textdomain>
  20.             <observed-paths>
  21.                 <path mtime="1243371375" >/usr/share/ibus/component/gtkpanel.xml</path>
  22.             </observed-paths>
  23.             <engines>
  24.             </engines>
  25.         </component>
  26.         <component>
  27.             <name>org.freedesktop.IBus.Config</name>
  28.             <description>GConf Config Component</description>
  29.             <version>1.1.0.20090526</version>
  30.             <license>GPL</license>
  31.             <author>Peng Huang &lt;shawn.p.huang@gmail.com&gt;</author>
  32.             <homepage>http://code.google.com/p/ibus</homepage>
  33.             <exec>/usr/lib/ibus/ibus-gconf</exec>
  34.             <textdomain>ibus</textdomain>
  35.             <observed-paths>
  36.                 <path mtime="1243371374" >/usr/share/ibus/component/gconf.xml</path>
  37.             </observed-paths>
  38.             <engines>
  39.             </engines>
  40.         </component>
  41.         <component>
  42.             <name>org.freedesktop.IBus.Table</name>
  43.             <description>Table Component</description>
  44.             <version>1.1.0.20090526</version>
  45.             <license>LGPL</license>
  46.             <author>Yuwei Yu &lt;acevery@gmail.com&gt;</author>
  47.             <homepage>http://code.google.com/p/ibus</homepage>
  48.             <exec>/usr/lib/ibus/ibus-engine-table --ibus</exec>
  49.             <textdomain>ibus-table</textdomain>
  50.             <observed-paths>
  51.                 <path mtime="1243371648" >/usr/share/ibus/component/table.xml</path>
  52.                 <path mtime="1243372272" >/usr/share/ibus-table/tables/</path>
  53.                 <path mtime="1243372225" >/usr/share/ibus-table/tables/zhengma.db</path>
  54.                 <path mtime="1243371649" >/usr/share/ibus-table/tables/template.txt</path>
  55.             </observed-paths>
  56.             <engines>
  57.                     <engine>
  58.                         <name>zhengma</name>
  59.                         <longname>郑码</longname>
  60.                         <description>郑码是郑易里教授一生不懈于汉字电子输入研究工作的结晶并由郑珑工程师完成后续的编码工作。是在郑易里教授提出五笔输入法思想后进一步深入研究后的成果。郑码非常特别但更成熟,因为它用的是双码的宏字根,字根更自然、更科学,上手后不易遗忘。如果你用过多种中文形码输入法的话,相信郑码会是你最后不二的选择。</description>
  61.                         <language>zh</language>
  62.                         <license>GPL-3</license>
  63.                         <author>Yu Yuwei &lt;yu-yuwei@gmail.com&gt;</author>
  64.                         <icon>/usr/share/ibus-table/icons/zhengma.svg</icon>
  65.                         <layout>us</layout>
  66.                         <rank>0</rank>
  67.                     </engine>
  68.             </engines>
  69.         </component>
  70.     </components>
  71. </ibus-registry>
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-5-30 22:34:52 | 显示全部楼层
是啊,这个问题困扰我几天了,我使用的都不是AUR里的git版本,自己使用 ibus.googlecode.com 中的源代码制作的PKG包安装的,可问题还是一样。谁能来解决下这问题啊
回复 支持 反对

使用道具 举报

发表于 2009-5-30 23:35:53 | 显示全部楼层
退出ibus,然后在虚拟终端中运行 ibus-daemon,然后试着激活ibus-table看看有什么错误输出。
回复 支持 反对

使用道具 举报

发表于 2009-5-31 11:18:10 | 显示全部楼层
[root@myhost tables]# ibus-daemon

(ibus-daemon:3757): IBUS-WARNING **: Connect to unix:path=/tmp/ibus-root/ibus-unix-0 failed: Failed to connect to socket /tmp/ibus-root/ibus-unix-0: Connection refused.
(ibus-daemon:3757): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed : Can not get value [engine/PinYin->ShuangPinSchema]
(ibus-daemon:3757): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed : Can not get value [engine/PinYin->FuzzyPinYin]
(ibus-daemon:3757): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed : Can not get value [engine/PinYin->AutoCorrect]
(ibus-daemon:3757): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed : Can not get value [engine/PinYin->SpellCheck]
(ibus-daemon:3757): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed : Can not get value [engine/PinYin->ageSize]
(ibus-daemon:3757): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed : Can not get value [engine/PinYin->SupportGBK]
(ibus-daemon:3757): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed : Can not get value [engine/PinYin->ShuangPin]
(ibus-daemon:3757): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed : Can not get value [engine/PinYin->hraseColor]
(ibus-daemon:3757): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed : Can not get value [engine/PinYin->NewPhraseColor]
(ibus-daemon:3757): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed : Can not get value [engine/PinYin->UserPhraseColor]
(ibus-daemon:3757): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed : Can not get value [engine/PinYin->SpecialPhraseColor]
(ibus-daemon:3757): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed : Can not get value [engine/PinYin->EnglishPhraseColor]
(ibus-daemon:3757): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed : Can not get value [engine/PinYin->ErrorEnglishPhraseColor]
(ibus-daemon:3757): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed : Can not get value [engine/PinYin->UVToTemp]
(ibus-daemon:3757): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed : Can not get value [engine/PinYin->ShiftSelectCandidates]
(ibus-daemon:3757): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed : Can not get value [engine/PinYin->CommaPageDownUp]
(ibus-daemon:3757): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed : Can not get value [engine/PinYin->EqualPageDownUp]
(ibus-daemon:3757): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed : Can not get value [engine/PinYin->AutoCommit]
(ibus-daemon:3757): IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed : Can not get value [engine/PinYin->HalfPunctuations]
回复 支持 反对

使用道具 举报

发表于 2009-5-31 14:49:20 | 显示全部楼层
ibus-daemon --re-scan -r -x 启动,再打开gvim并进入输入模式,按下Ctrl+Space时,终端里没有输出任何信息。

ibus-pinyin能激活使用,当不装ibus-pinyin时,想用ibus打字时的情况,就好象没装具体的码表,或是没在ibus-setup添加码表一样。可ibus-table-zhengma明明已装好了,ibus-setup里也添加了郑码。

ibus-daemon启动后的进程:
  1. 31194 ?        Sl     0:00 python /usr/share/ibus-table/engine/speedmeter.py -d
  2. 32450 pts/10   S+     0:00 ibus-daemon --re-scan -x -r
  3. 32458 pts/10   S+     0:00 /usr/lib/ibus/ibus-gconf
  4. 32459 pts/10   S+     0:00 python /usr/share/ibus/ui/gtk/main.py
  5. 32461 pts/10   S+     0:00 /usr/lib/ibus/ibus-x11 --kill-daemon
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-5-31 16:32:43 | 显示全部楼层
你试试在ibus-daemon启动的情况下在虚拟终端下运行
  1. /usr/libexec/ibus-engine-table -t zhengma.db
复制代码
看看有没有什么错误输出,郑码有没有激活。
回复 支持 反对

使用道具 举报

发表于 2009-5-31 17:51:55 | 显示全部楼层
/usr/lib/ibus/ibus-engine-table -t zhengma.db 运行后输出的信息:
  1. /usr/lib/ibus/ibus-engine-table -t zhengma.db             ~
  2. Traceback (most recent call last):
  3.   File "/usr/share/ibus-table/engine/main.py", line 69, in <module>
  4.     sys.stdout = open (logfile,'a',0)
  5. IOError: [Errno 2] No such file or directory: '/home/field/.ibus/tables/debug.log'
复制代码
编译ibus-table用的参数:
  1.   ./autogen.sh --break-configure
  2.   ./configure --prefix=/usr --libexecdir=/usr/lib/ibus \
  3.               --disable-additional
复制代码
ibus-table-zhengma的参数:
  1.   ./autogen.sh --break-configure
  2.   ./configure --prefix=/usr --libexecdir=/usr/lib/ibus \
  3.               --enable-zhengma
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-5-31 23:30:36 | 显示全部楼层
我在终端中直接运行$ ibus-daemon并没有任何错误提示,但当我在ibus图标上右键退出时就有了以下提示:
(ibus-daemon:7714): IBUS-CRITICAL **: ibus_proxy_call: assertion `priv->connection' failed

我用的是五笔,这是怎么回事啊,
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表