网页资讯视频图片知道文库贴吧地图采购
进入贴吧全吧搜索

 
 
 
日一二三四五六
       
       
       
       
       
       

签到排名:今日本吧第个签到,

本吧因你更精彩,明天继续来努力!

本吧签到人数:0

一键签到
成为超级会员,使用一键签到
一键签到
本月漏签0次!
0
成为超级会员,赠送8张补签卡
如何使用?
点击日历上漏签日期,即可进行补签。
连续签到:天  累计签到:天
0
超级会员单次开通12个月以上,赠送连续签到卡3张
使用连续签到卡
11月12日漏签0天
archlinux吧 关注:15,880贴子:125,110
  • 看贴

  • 图片

  • 吧主推荐

  • 视频

  • 游戏

  • 32回复贴,共1页
<<返回archlinux吧
>0< 加载中...

我SCIM/ fcitx的拼音输入法无法正常工作

  • 只看楼主
  • 收藏

  • 回复
  • 猫腻丶拜印
  • 1000
    9
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
如何让中文输入法可在en.UTF8的语言环境中工作?
我已经安装了scim scim-pinyin(pacman -S scim scim-pinyin).不过,我面临的一个问题。
虽然我可以成功启动scim,拼音输入面板从来没有出现(这也正好与fcitx一样的。)
[root@~]# locale -a
C
POSIX
en_US.utf8
zh_CN
zh_CN.gb18030
zh_CN.gb2312
zh_CN.gbk
zh_CN.utf8

只是一个无用的图标,按下Ctrl-Space时没有面板出现。
我读过足够的arch-wiki,尝试了很多。我失败了,我希望你可以给我任何帮助。谢谢。
(我使用谷歌翻译英文到中文。感谢您的理解。如果你用英文回复,我并不介意 。)


  • 猫腻丶拜印
  • 1000
    9
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
I'm using KDE 4.10.2.


2025-11-12 23:37:29
广告
不感兴趣
开通SVIP免广告
  • Felixonmars
  • 1110
    15
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
I'm not so familiar with SCIM, though I'll try to help you.
1. Could you give me the output of following commands?
env|grep scim
cat /etc/gtk-2.0/gtk.immodules|grep -i scim
2. Did you scim executed with such params:
scim -f socket -c socket -d
Except for this, there's actually something tricky that the Wiki way WON'T work for English locales, such as en_US.utf8. I assume you're adding this to the gtk immodules file:
"/usr/lib/gtk-2.0/immodules/im-scim.so"
"scim" "SCIM Input Method" "scim" "/usr/share/locale" "ja:ko:zh"
Just change it to
"/usr/lib/gtk-2.0/immodules/im-scim.so"
"scim" "SCIM Input Method" "scim" "/usr/share/locale" "en:ja:ko:zh"


  • 猫腻丶拜印
  • 1000
    9
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
@Felixonmars , thanks for your attention.
Firstly, I installed fcitx
[root@~]# pacman -S fcitx fcitx-sunpinyin
And then, I launched it.
ALT-F2(kde run) fcitx
The screen is like that:


Next, I tried to launch the pinyin input panel. I used ctrl-space and found nothing happened.
This might be the same problem as scim.


  • 猫腻丶拜印
  • 1000
    9
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
[root@~]# fcitx-diagnose
# System Info.
1. `uname -a`:
Linux charles 3.8.11-1-ARCH #1 SMP PREEMPT Wed May 1 20:18:57 CEST 2013 x86_64 GNU/Linux
2. `lsb_release`:
`lsb_release` not found.
3. `/etc/lsb-release`:
`/etc/lsb-release` not found.
4. `/etc/os-release`:
NAME="Arch Linux"
ID=arch
PRETTY_NAME="Arch Linux"
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
# Environment.
1. DISPLAY:
DISPLAY=''
2. Keyboard Layout:
Cannot open display "default display"
3. Locale:
1. Current locale:
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=
2. All locale:
C
POSIX
en_US.utf8
zh_CN
zh_CN.gb18030
zh_CN.gb2312
zh_CN.gbk
zh_CN.utf8
# Fcitx State.
1. executable:
Found fcitx at `/usr/bin/fcitx`.
2. version:
Fcitx version: 4.2.7
3. process:
Found 2 fcitx processes:
4851 fcitx
4860 fcitx-dbus-watc
4. `fcitx-remote`:
**Cannot connect to fcitx correctly.**
# Frontends setup.
## Xim.
1. `${XMODIFIERS}`:
Environment variable XMODIFIERS is set to "@im=fcitx" correctly.
Xim Server Name from Environment variable is fcitx.
2. XIM_SERVERS on root window:
**Cannot find xim_server on root window.**
## Qt.
1. `${QT_IM_MODULE}`:
Environment variable QT_IM_MODULE is set to "fcitx" correctly.
2. Qt IM module files:
**Cannot find fcitx input method module for qt.**
## Gtk.
1. `${GTK_IM_MODULE}`:
Environment variable GTK_IM_MODULE is set to "fcitx" correctly.
2. Gtk IM module files:
1. gtk 2:
Found gtk-query-immodules for gtk 2 at `/usr/bin/gtk-query-immodules-2.0`.
**Cannot find fcitx im module for gtk 2.**
2. gtk 3:
Found gtk-query-immodules for gtk 3 at `/usr/bin/gtk-query-immodules-3.0`.
**Cannot find fcitx im module for gtk 3.**
# Configuration.
## Fcitx Addons:
1. Addon Config Dir:
Found fcitx addon config directory: `/usr/share/fcitx/addon`.
2. Addon List:
1. Found 24 enabled addons:
fcitx-autoeng
fcitx-chttrans
fcitx-classic-ui
fcitx-clipboard
fcitx-dbus
fcitx-fullwidth-char
fcitx-imselector
fcitx-ipc
fcitx-keyboard
fcitx-kimpanel-ui
fcitx-pinyin-enhance
fcitx-pinyin
fcitx-punc
fcitx-quickphrase
fcitx-remote
fcitx-spell
fcitx-sunpinyin
fcitx-table
fcitx-unicode
fcitx-vk
fcitx-x11
fcitx-xim
fcitx-xkb
fcitx-xkbdbus
2. Found 1 disabled addons:
fcitx-qw
## Input Methods:
1. Found 5 enabled input methods:
fcitx-keyboard-us
pinyin
shuangpin
wubi
wbpy
2. Default input methods:
You have a keyboard input method "fcitx-keyboard-us" correctly added as your default input method.
# Log.
1. `date`.
Wed May 8 17:33:45 CST 2013
2. `~/.config/fcitx/log/`.
total 0
3. `~/.config/fcitx/log/crash.log`.
`~/.config/fcitx/log/crash.log` not found.
[root@~]# fcitx-diagnose
# System Info.
1. `uname -a`:
Linux charles 3.8.11-1-ARCH #1 SMP PREEMPT Wed May 1 20:18:57 CEST 2013 x86_64 GNU/Linux
2. `lsb_release`:
`lsb_release` not found.
3. `/etc/lsb-release`:
`/etc/lsb-release` not found.
4. `/etc/os-release`:
NAME="Arch Linux"
ID=arch
PRETTY_NAME="Arch Linux"
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
# Environment.
1. DISPLAY:
DISPLAY=''
2. Keyboard Layout:
Cannot open display "default display"
3. Locale:
1. Current locale:
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=
2. All locale:
C
POSIX
en_US.utf8
zh_CN
zh_CN.gb18030
zh_CN.gb2312
zh_CN.gbk
zh_CN.utf8
# Fcitx State.
1. executable:
Found fcitx at `/usr/bin/fcitx`.
2. version:
Fcitx version: 4.2.7
3. process:
Found 2 fcitx processes:
4851 fcitx
4860 fcitx-dbus-watc
4. `fcitx-remote`:
**Cannot connect to fcitx correctly.**
# Frontends setup.
## Xim.
1. `${XMODIFIERS}`:
Environment variable XMODIFIERS is set to "@im=fcitx" correctly.
Xim Server Name from Environment variable is fcitx.
2. XIM_SERVERS on root window:
**Cannot find xim_server on root window.**
## Qt.
1. `${QT_IM_MODULE}`:
Environment variable QT_IM_MODULE is set to "fcitx" correctly.
2. Qt IM module files:
**Cannot find fcitx input method module for qt.**
## Gtk.
1. `${GTK_IM_MODULE}`:
Environment variable GTK_IM_MODULE is set to "fcitx" correctly.
2. Gtk IM module files:
1. gtk 2:
Found gtk-query-immodules for gtk 2 at `/usr/bin/gtk-query-immodules-2.0`.
**Cannot find fcitx im module for gtk 2.**
2. gtk 3:
Found gtk-query-immodules for gtk 3 at `/usr/bin/gtk-query-immodules-3.0`.
**Cannot find fcitx im module for gtk 3.**
# Configuration.
## Fcitx Addons:
1. Addon Config Dir:
Found fcitx addon config directory: `/usr/share/fcitx/addon`.
2. Addon List:
1. Found 24 enabled addons:
fcitx-autoeng
fcitx-chttrans
fcitx-classic-ui
fcitx-clipboard
fcitx-dbus
fcitx-fullwidth-char
fcitx-imselector
fcitx-ipc
fcitx-keyboard
fcitx-kimpanel-ui
fcitx-pinyin-enhance
fcitx-pinyin
fcitx-punc
fcitx-quickphrase
fcitx-remote
fcitx-spell
fcitx-sunpinyin
fcitx-table
fcitx-unicode
fcitx-vk
fcitx-x11
fcitx-xim
fcitx-xkb
fcitx-xkbdbus
2. Found 1 disabled addons:
fcitx-qw
## Input Methods:
1. Found 5 enabled input methods:
fcitx-keyboard-us
pinyin
shuangpin
wubi
wbpy
2. Default input methods:
You have a keyboard input method "fcitx-keyboard-us" correctly added as your default input method.
# Log.
1. `date`.
Wed May 8 17:33:57 CST 2013
2. `~/.config/fcitx/log/`.
total 0
3. `~/.config/fcitx/log/crash.log`.
`~/.config/fcitx/log/crash.log` not found.


  • necomancer
  • 1011
    12
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
fcitx 自身有
"ja:ko:zh:*"的选项,应该什么locale都行吧?
PS 我用的en_US.UTF-8

求妹纸~


  • Felixonmars
  • 1110
    15
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
So you are missing some important steps on ArchWiki Fcitx page.
1. You need a UTF-8 ready locale, don't use "C".
2. Please install fcitx-gtk2/fcitx-gtk3/fcitx-qt4 as you need, or just install the whole fcitx-im group (pacman -S fcitx-im).
3. (Optional) Install kdeplasma-addons-applets-kimpanel and add "input method panel" onto your plasma panel.


  • 猫腻丶拜印
  • 1000
    9
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
@Felixonmars , @necomancer ,@490365333ibmc,
我的拼音弄好了,我是在这样弄的:
右键点击fcitx图标,选择input method,点sunpinyin,然后就好了,接下来ctrl-space在firefox裏也能切换了。。
果真是打开方式不对诶。。。
谢谢你们啦,nyanya!


登录百度账号

扫二维码下载贴吧客户端

下载贴吧APP
看高清直播、视频!
  • 贴吧页面意见反馈
  • 违规贴吧举报反馈通道
  • 贴吧违规信息处理公示
  • 32回复贴,共1页
<<返回archlinux吧
分享到:
©2025 Baidu贴吧协议|隐私政策|吧主制度|意见反馈|网络谣言警示