[转]搜狗输入法正式版安装教程
Tofloor
poster avatar
Bluek404
deepin
2014-04-21 21:00
Author
坑爹之处在于, 这次放出的版本必须用内置的 qimpanel 界面! 也就是说, 经典 UI 和 kimpanel (包括 gnome-shell 那个 kimpanel 插件之类的) 都不能用, 否则你会看到一条超坑的提示:

“请启用fcitx-qimpanel面板程序,以便更好的享受搜狗输入法!”

做好的包和完整的 src 包下载: http://pkgbuild.com/~fyan/staging/fcitx-sogoupinyin/

PKGBUILD: (偷懒的猫只做了 x86_64 的)
  1. # Maintainer: Jove Yu
  2. # Contributor: csslayer
  3. pkgname=fcitx-sogoupinyin
  4. pkgver=1.0.0.0011
  5. pkgrel=1
  6. pkgdesc="Sogou Pinyin for Linux"
  7. arch=('x86_64')
  8. url="http://code.google.com/p/fcitx"
  9. license=('custom')
  10. depends=('fcitx')
  11. source=("http://ime.sogou.com/dl/1397738329/sogou_pinyin_linux_${pkgver}_amd64.deb"
  12.         fcitx-qimpanel
  13.         libcurl.so.4)
  14. if [ "${CARCH}" = "i686" ]; then
  15.     _LIB_DIR=i386-linux-gnu
  16. else
  17.     _LIB_DIR=x86_64-linux-gnu
  18. fi
  19. package(){
  20.   bsdtar -xf data.tar.xz -C "${pkgdir}"
  21.   mv "$pkgdir"/usr/lib/{$_LIB_DIR/,}fcitx
  22.   rmdir "$pkgdir/usr/lib/${_LIB_DIR}"
  23.   # Workaround curl problem - install an old version and use LD_LIBRARY_PATH to use it
  24.   mv "$pkgdir"/usr/bin/fcitx-qimpanel{,.real}
  25.   install -Dm755 fcitx-qimpanel "$pkgdir/usr/bin/"
  26.   install -Dm644 libcurl.so.4 "$pkgdir/usr/share/fcitx-sogoupinyin/"
  27.   rm -r "$pkgdir"/etc/apt
  28.   rm -r "$pkgdir"/usr/share/{keyrings,upstart}
  29. }
  30. sha512sums=('9ac4d67aa2dea979d39cd5d13965c5ca103a6f52b4e7db53d1d9402efec0641aaf30ebc64d99a690692d45d4b6ebb742da56cb0d175eb36d194b1d45ed11e53f'
  31.             '4d49b346cd1fb1279865b1c6df774ad393816f709c91c80702adce6926d32a45641d26943597d152a5c7b57dd4c2e23799e005cc1d959645025218a5ce5bfd41'
  32.             '8b64e7489443d59a6ceebc7cf66697c16826502f0bb4f64c5c1a475ffc45cf000794339d95acdada849e85bc99183112a6887525aa00a13c1234d0dc7fa676dc')
Copy the Code
其中那个 libcurl.so.4 是从一个很老版本的 curl 包里提出来的.

workaround curl 用的那个启动脚本:
/usr/bin/fcitx-qimpanel

#!/bin/sh
LD_LIBRARY_PATH="/usr/share/fcitx-sogoupinyinLD_LIBRARY_PATH" /usr/bin/fcitx-qimpanel.real "$@"
使用方法:
重载 fcitx, 开启 qimpanel:

fcitx -r --enable fcitx-qimpanel
然后启动 fcitx-qimpanel:

fcitx-qimpanel
然后切换到搜狗拼音输入法, 可以开始玩了!

======================================================
上面是转载自https://blog.felixc.at/2014/04/sogou-pinyin-for-linux-new-release/的
======================================================
然后我们总结一下安装方法
首先卸载原先的:
  1. sudo ap-get remove fcitx-module-cloudpinyin fcitx-skin-sogou fcitx-sogoupinyin
Copy the Code

然后添加PPA
  1. sudo add-apt-repository ppa:fcitx-team/nightly
Copy the Code

然后升级fcitx
  1. sudo apt-get update && sudo apt-get upgrade
Copy the Code

然后下载搜狗拼音

http://download.ime.sogou.com/13 ... 1.0.0.0011_i386.deb

如果出现上面的“请启用fcitx-qimpanel面板程序,以便更好的享受搜狗输入法!”的话
运行
  1. fcitx-configtool
Copy the Code
点击附加组件>>高级>>去掉 经典界面 和 kimpanel 的勾
然后运行
  1. fcitx -r --enable fcitx-qimpanel
Copy the Code
  1. fcitx-qimpanel
Copy the Code
即可
Reply Favorite View the author
All Replies

No replies yet