LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 767|回复: 8

呼唤jarryson,帮忙打个补丁

[复制链接]
发表于 2009-3-11 16:22:02 | 显示全部楼层 |阅读模式
http://aur.archlinux.org/packages.php?ID=20836

就是fcitx-svn这个包,修正了OOo掉字的现象
发表于 2009-3-11 17:11:24 | 显示全部楼层
http://www.linuxsir.cn/bbs/attac ... 49&d=1236759523
的补丁下载下来,同是取得aur上的补丁──fcitx-xdg.patch
。。。


  1. # Maintainer: lh <jarryson@gmail.com>

  2. pkgname=fcitx-svn
  3. pkgver=191
  4. pkgrel=1
  5. pkgdesc="Free Chinese Input Toy of X - Input Method Server for X window system (XIM)"
  6. arch=("i686" "x86_64")
  7. license=('GPL')
  8. url="http://www.fcitx.org/"
  9. depends=('libxft' 'libxpm')
  10. makedepends=('subversion' 'python')
  11. conflicts=('fcitx')
  12. replaces=('fcitx')
  13. provides=('fcitx')
  14. source=()
  15. md5sums=()

  16. _svnmod="fcitx"
  17. _svntrunk="http://fcitx.googlecode.com/svn/trunk/"

  18. build() {
  19.   cd $srcdir/
  20.   msg "Getting source..."
  21.   if [ -d $_svnmod/.svn ]; then
  22.     (cd $_svnmod && svn --config-dir ./ up -r $pkgver)
  23.   else
  24.     svn --config-dir ./ co $_svntrunk  -r $pkgver $_svnmod
  25.   fi

  26.   msg "SVN checkout done or server timeout"
  27.   msg "Creating make environment..."
  28.   rm -rf $srcdir/$_svnmod-build
  29.   cp -r $srcdir/$_svnmod $srcdir/$_svnmod-build
  30.   cd $srcdir/$_svnmod-build

  31.   msg "Starting make..."
  32.   ##########################
  33.   #This patch will move config file from ~/.fcitx to ~/.config/fcitx
  34.   # and it's unoffical, if you need remove "#"
  35.   ##########################
  36.   patch -Np0 -i ../../fcitx-xdg.patch || return 1
  37.   cd ../
  38.   patch -Np0 -i ../fix-ooo-lost-chars.patch || return 1
  39.   cd $srcdir/$_svnmod-build
  40.   ./autogen.sh
  41.   ./configure --prefix=/usr --enable-xft --enable-debug
  42.   make || return 1
  43.   make DESTDIR=$pkgdir install
  44.    
  45.   rm -rf $srcdir/$_svnmod-build
  46. }
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-11 17:16:34 | 显示全部楼层
Post by carbonjiao;1959367
http://www.linuxsir.cn/bbs/attac ... 49&d=1236759523
的补丁下载下来,同是取得aur上的补丁──fcitx-xdg.patch
。。。
  1. # Maintainer: lh <jarryson@gmail.com>
  2. pkgname=fcitx-svn
  3. pkgver=191
  4. pkgrel=1
  5. pkgdesc="Free Chinese Input Toy of X - Input Method Server for X window system (XIM)"
  6. arch=("i686" "x86_64")
  7. license=('GPL')
  8. url="http://www.fcitx.org/"
  9. depends=('libxft' 'libxpm')
  10. makedepends=('subversion' 'python')
  11. conflicts=('fcitx')
  12. replaces=('fcitx')
  13. provides=('fcitx')
  14. source=()
  15. md5sums=()
  16. _svnmod="fcitx"
  17. _svntrunk="http://fcitx.googlecode.com/svn/trunk/"
  18. build() {
  19.   cd $srcdir/
  20.   msg "Getting source..."
  21.   if [ -d $_svnmod/.svn ]; then
  22.     (cd $_svnmod && svn --config-dir ./ up -r $pkgver)
  23.   else
  24.     svn --config-dir ./ co $_svntrunk  -r $pkgver $_svnmod
  25.   fi
  26.   msg "SVN checkout done or server timeout"
  27.   msg "Creating make environment..."
  28.   rm -rf $srcdir/$_svnmod-build
  29.   cp -r $srcdir/$_svnmod $srcdir/$_svnmod-build
  30.   cd $srcdir/$_svnmod-build
  31.   msg "Starting make..."
  32.   ##########################
  33.   #This patch will move config file from ~/.fcitx to ~/.config/fcitx
  34.   # and it's unoffical, if you need remove "#"
  35.   ##########################
  36.   patch -Np0 -i ../../fcitx-xdg.patch || return 1
  37.   cd ../
  38.   patch -Np0 -i ../fix-ooo-lost-chars.patch || return 1
  39.   cd $srcdir/$_svnmod-build
  40.   ./autogen.sh
  41.   ./configure --prefix=/usr --enable-xft --enable-debug
  42.   make || return 1
  43.   make DESTDIR=$pkgdir install
  44.    
  45.   rm -rf $srcdir/$_svnmod-build
  46. }
复制代码

我公司好几台电脑都用的fcitx,我目前是给他们装的fcitx-svn

今天补丁写出来以后,已经给他们打上了

我就是希望aur上能更新一下,他们有时候自己yaourt --devel的时候不要又回退回去了

嘿嘿,自私的说
回复 支持 反对

使用道具 举报

发表于 2009-3-11 17:21:31 | 显示全部楼层
Post by hubert_star;1959371
我就是希望aur上能更新一下,他们有时候自己yaourt --devel的时候不要又回退回去了

嘿嘿,自私的说


这个就只有jarryson才能有这个权限了!
因为fcitx-svn被他收养了!

原来这个补丁的作者就是你阿,失敬失敬!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-11 17:26:53 | 显示全部楼层
嘿嘿嘿嘿嘿嘿
回复 支持 反对

使用道具 举报

发表于 2009-3-11 21:08:50 | 显示全部楼层
fcitx的主页 http://code.google.com/p/fcitx/

可以把补丁提给作者...如果证实补丁没问题..作者是会要的

作者今天还更新过代码 http://code.google.com/p/fcitx/source/list
回复 支持 反对

使用道具 举报

发表于 2009-3-12 00:17:41 | 显示全部楼层
http://code.google.com/p/fcitx/issues/detail?id=3

是这个地方的东西么?是不是五笔有问题呢

我还是把那个东西更新一下把,因为fcitx-svn无法保存自造词,所以很恼火,而且ooo一样掉字,一直没用
回复 支持 反对

使用道具 举报

发表于 2009-3-12 01:40:38 | 显示全部楼层
svn版本的bug真的非常多

1.不能改英文字体,否则自动变成所谓的3D模式,难看。

2.无法保存自造词,070703后一直都有。。

3.自己打了那什么xdg补丁,无法修改配置,看起来每次启动会覆盖配置,补丁看起来没有问题。。不知道又改什么地方了。。。这应该还是补丁太ugly了


换回070703,但是打上hubert_star给的ooo补丁,虽然不一样,我依葫芦画瓢的改了一下,果然好了,非常爽!还有拼音词组也更换了,好像没什么变幻,但是。。。心理爽

目前啥问题都没有发现。。。

070703版本的ooo补丁

  1. --- src/xim.c.old        2009-03-12 01:14:08.000000000 +0800
  2. +++ src/xim.c        2009-03-12 01:15:38.484759024 +0800
  3. @@ -557,7 +557,7 @@
  4.      }

  5.      ims = IMOpenIM (dpy, IMModifiers, "Xi18n", IMServerWindow, im_window, IMServerName, imname,
  6. -                    IMLocale, strLocale, IMServerTransport, "X/", IMInputStyles, input_styles, IMEncodingList, encodings, IMProtocolHandler, MyProtoHandler, IMFilterEventMask, KeyPressMask | KeyReleaseMask, NULL);
  7. +                    IMLocale, strLocale, IMServerTransport, "X/", IMInputStyles, input_styles, IMEncodingList, encodings, IMProtocolHandler, MyProtoHandler, IMFilterEventMask, KeyPressMask, NULL);

  8.      if (ims == (XIMS) NULL) {
  9.         fprintf (stderr, "Start FCITX error. Another XIM daemon named %s is running?\n", imname);
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-12 03:16:49 | 显示全部楼层
Post by jarryson;1959673
svn版本的bug真的非常多

1.不能改英文字体,否则自动变成所谓的3D模式,难看。

2.无法保存自造词,070703后一直都有。。

3.自己打了那什么xdg补丁,无法修改配置,看起来每次启动会覆盖配置,补丁看起来没有问题。。不知道又改什么地方了。。。这应该还是补丁太ugly了


换回070703,但是打上hubert_star给的ooo补丁,虽然不一样,我依葫芦画瓢的改了一下,果然好了,非常爽!还有拼音词组也更换了,好像没什么变幻,但是。。。心理爽

目前啥问题都没有发现。。。

070703版本的ooo补丁
  1. --- src/xim.c.old    2009-03-12 01:14:08.000000000 +0800
  2. +++ src/xim.c    2009-03-12 01:15:38.484759024 +0800
  3. @@ -557,7 +557,7 @@
  4.      }
  5.      ims = IMOpenIM (dpy, IMModifiers, "Xi18n", IMServerWindow, im_window, IMServerName, imname,
  6. -            IMLocale, strLocale, IMServerTransport, "X/", IMInputStyles, input_styles, IMEncodingList, encodings, IMProtocolHandler, MyProtoHandler, IMFilterEventMask, KeyPressMask | KeyReleaseMask, NULL);
  7. +            IMLocale, strLocale, IMServerTransport, "X/", IMInputStyles, input_styles, IMEncodingList, encodings, IMProtocolHandler, MyProtoHandler, IMFilterEventMask, KeyPressMask, NULL);
  8.      if (ims == (XIMS) NULL) {
  9.      fprintf (stderr, "Start FCITX error. Another XIM daemon named %s is running?\n", imname);
复制代码

核心问题就是OOo在处理释放键的时候跟其他不一样,具体哪里不一样,不知道

另外,我的那个词库能打出芙蓉姐姐,你不信试试看
回复 支持 反对

使用道具 举报

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

本版积分规则

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