QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 728|回复: 0

我的输入法无法启动

[复制链接]
发表于 2003-2-3 16:04:03 | 显示全部楼层 |阅读模式
我是按照http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=10272进行的美化。
我安装过xft2,使用的ttf是Windows XP sp1下的simsun和tohame,由于我是用其他方法美化时,GQview、mplayer等软件里出现了极其难看的字体,所以我还是安装了xft2。我的系统是红帽8,已经安装过nVIDIA4191驱动。
下面是我输入locale运行的结果:
LANG=zh_CN.GB18030
LC_CTYPE="zh_CN.GB18030"
LC_NUMERIC="zh_CN.GB18030"
LC_TIME="zh_CN.GB18030"
LC_COLLATE="zh_CN.GB18030"
LC_MONETARY="zh_CN.GB18030"
LC_MESSAGES="zh_CN.GB18030"
LC_PAPER="zh_CN.GB18030"
LC_NAME="zh_CN.GB18030"
LC_ADDRESS="zh_CN.GB18030"
LC_TELEPHONE="zh_CN.GB18030"
LC_MEASUREMENT="zh_CN.GB18030"
LC_IDENTIFICATION="zh_CN.GB18030"
LC_ALL=
下面是我运行输入法命令的结果:
[root@yzh root]# minichinput
bash: minichinput: command not found
[root@yzh root]# xsim
bash: xsim: command not found
[root@yzh root]# miniChinput
bash: miniChinput: command not found
[root@yzh root]# Chinput
bash: Chinput: command not found
[root@yzh root]# chinput
Chinput Version 3.0.2 -- XIM Server
Distributed under the terms of the GNU General Public License (GPL)

Following charsets:
0: -Sony-Fixed-Medium-R-Normal--16-120-100-100-C-80-ISO8859-1
1: -Sony-Fixed-Medium-R-Normal--16-120-100-100-C-80-ISO8859-1
2: -misc-zysong18030-medium-r-normal--0-0-0-0-c-0-iso10646-1
XAllocNamedColor(): Failed: Success
[root@yzh root]#
这是我运行echo $$XMODIFIERS的结果:
[root@yzh root]# echo $XMODIFIERS
@im=Chinput
[root@yzh root]#
我的系统是红帽8,我用的输入法是系统自带的miniChinput,以下是我的fonts.dir:
54
tahoma.ttf -misc-kai-medium-r-normal--0-0-0-0-p-0-ascii-0
tahoma.ttf -misc-kai-medium-r-normal--0-0-0-0-p-0-iso8859-1
tahoma.ttf -misc-kai-medium-r-normal--0-0-0-0-p-0-iso8859-15
simsun.ttf -misc-kai-medium-r-normal--0-0-0-0-c-0-gbk-0
simsun.ttf -misc-kai-medium-r-normal--0-0-0-0-c-0-iso10646-1
simsun.ttf -misc-kai-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
simsun.ttf -misc-fixed-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
simsun.ttf -misc-fixed-medium-r-normal--0-0-0-0-c-0-gbk-0
simsun.ttf -misc-fixed-medium-r-normal--0-0-0-0-c-0-iso10646-1
tahoma.ttf -misc-fixed-medium-r-normal--0-0-0-0-p-0-iso8859-1
simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0
ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0
ds=y:ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0
tahoma.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-iso8859-1
ai=0.3:tahoma.ttf -misc-SimSun-medium-i-normal--0-0-0-0-p-0-iso8859-1
tahomabd.ttf -misc-SimSun-bold-r-normal--0-0-0-0-p-0-iso8859-1
ai=0.3:tahomabd.ttf -misc-SimSun-bold-i-normal--0-0-0-0-p-0-iso8859-1
simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-c-0-gbk-0
ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-c-0-gbk-0
ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-c-0-gbk-0
ds=y:ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-c-0-gbk-0
simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-fcd8859-15
ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-p-0-fcd8859-15
ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-p-0-fcd8859-15
ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-p-0-fcd8859-15
simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-iso8859-15
ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-p-0-iso8859-15
ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-p-0-iso8859-15
ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-p-0-iso8859-15
simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-c-0-iso10646-1
ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-c-0-iso10646-1
ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-c-0-iso10646-1
ds=y:ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-c-0-iso10646-1
simsun.ttf -misc-song-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.3:simsun.ttf -misc-song-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0
ds=y:simsun.ttf -misc-song-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0
ds=y:ai=0.3:simsun.ttf -misc-song-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0
tahoma.ttf -misc-song-medium-r-normal--0-0-0-0-p-0-iso8859-1
ai=0.3:tahoma.ttf -misc-song-medium-i-normal--0-0-0-0-p-0-iso8859-1
tahomabd.ttf -misc-song-bold-r-normal--0-0-0-0-p-0-iso8859-1
ai=0.3:tahomabd.ttf -misc-song-bold-i-normal--0-0-0-0-p-0-iso8859-1
simsun.ttf -misc-song-medium-r-normal--0-0-0-0-c-0-gbk-0
ai=0.3:simsun.ttf -misc-song-medium-i-normal--0-0-0-0-c-0-gbk-0
ds=y:simsun.ttf -misc-song-bold-r-normal--0-0-0-0-c-0-gbk-0
ds=y:ai=0.3:simsun.ttf -misc-song-bold-i-normal--0-0-0-0-c-0-gbk-0
simsun.ttf -misc-song-medium-r-normal--0-0-0-0-p-0-fcd8859-15
ai=0.3:simsun.ttf -misc-song-medium-i-normal--0-0-0-0-p-0-fcd8859-15
ds=y:simsun.ttf -misc-song-bold-r-normal--0-0-0-0-p-0-fcd8859-15
ai=0.3:simsun.ttf -misc-song-bold-i-normal--0-0-0-0-p-0-fcd8859-15
simsun.ttf -misc-song-medium-r-normal--0-0-0-0-p-0-iso8859-15
ai=0.3:simsun.ttf -misc-song-medium-i-normal--0-0-0-0-p-0-iso8859-15
ds=y:simsun.ttf -misc-song-bold-r-normal--0-0-0-0-p-0-iso8859-15
ai=0.3:simsun.ttf -misc-song-bold-i-normal--0-0-0-0-p-0-iso8859-15
以下是我的Chinput.ad:
!!!
!!! This file is part of
!!!
!!!                        TurboLinux  ZWinPro
!!!
!!!                 Copyright (C) 1999 TurboLinux, Inc.
!!!                        All Rights Reserved
!!! Distributed under the terms of the GNU General Public License (GPL)
!!!
!!!
!!! Authors:     TurboLinux Chinese Development Team:
!!!              Justin Yu   <[email protected]>
!!!              Sean Chen   <[email protected]>
!!!              Daniel Fang <[email protected]>
!!! WWW:         http://www.turbolinux.com.cn/ZWinPro/
!!! FTP:         ftp://ftp.turbolinux.com.cn/pub/ZWinPro/
!!!

!
! Resource file for Chinput-3.0.1
!!! Generated by zwincontrol, Please do not edit by hand
!

!
! locales
!

chinput.gblocale        =        zh_CN.GB18030
chinput.big5locale        =        zh_TW.Big5

!
! input style: AUTO, ROOT, OVERSPOT, ONSPOT, OFFSPOT
!
chinput.dmode                =        OVERSPOT
!
! input window auto-hide mode AUTO or NO, only for CARET mode
!
chinput.hmode                =        NO
!
! choice window auto popup mode: AUTO or NO, only for ONSPOT style
!
chinput.cmode                =        AUTO
!
! area style for OFFSPOT style, CLIENT or SERVER
!
chinput.areamode        =        SERVER
!
! show input method in the input window
!
chinput.showime                =        YES
!
! show tips when open IME
!
chinput.showtips        =        YES
!
! input method
! for gb  : TONEPY, PY, CCDOSPY, WuBi, CangJie, English, CTLau, SW,
!           QianMa, TeleCode, ZRM
! for big5: PY, ETZY, ZOZY, Simplex, CangJie,
!            English, 4Corner, HSU, ARRAY30, Boshiamy
!
chinput.dictionary                =        /usr/lib/Chinput/im
chinput.inputmethod.gb                =        ZNPY
chinput.inputmethod.big5        =        PY
!
! 16 point font set
!
chinput.font                        =        8x16
chinput.gbfont                  =       -misc-zysong18030-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
chinput.gbkfont                  =      -misc-zysong18030-medium-r-normal--0-0-0-0-c-0-gbk-0
chinput.gb18030font             =       -misc-zysong18030-medium-r-normal--0-0-0-0-c-0-iso10646-1
chinput.big5font                =       -taipei-ming-medium-r-normal--16-160-75-75-c-160-big5-0
!
!
! inputbar width in chars
!
chinput.width        =        70

!
! panel color
!
chinput.dimcolor        =        #666666
chinput.lightcolor        =        #f5f5f5
chinput.panelcolor        =        #c0c0c0
chinput.hzcolor                =        #000000
chinput.ledcolor        =        #00ff00
chinput.barcolor        =        #000080


xft.on                  =       YES
!xft.font.family         =       zysong18030
xft.font.family         =       simsun
xft.font.size           =       11
xft.anti-aliasing       =       YES

!
! handwriting recognition timeout
!
chinput.hwtimeout        =        1500
!
! Input Method read by chinput
! Format: The following items should be in the correct order
!         [Section] : Input Method, the same in chinput.inputmethod.gb
!         NAMEGB    : Name for gettext
!         NAMEBIG5  : Name appeared in input bar
!         ENCODING  : Encoding for this IME, should be GB or BIG5
!         PROMPT    : Appeared in two rows input bar
!         FILE      : Where the input method file located, maybe absolute path
!                     or relative to chinput.dictionary
!         MODULE    : absolute path of module
!         FAVORITE  : I like this input method
!
[ZNPY]
IMENAME                =        智能拼音
IMENAME                =        醇???
ENCODING        =        GB
FILE                =        cce
MODULE                =        /usr/lib/Chinput/im/cce_pinyin.so
FAVORITE        =        YES

[PY]
IMENAME                =        GBK拼音
IMENAME                =        礚秸??
ENCODING        =        GB
FILE                =        gbk/gbkpy_mb.tab
MODULE                =        /usr/lib/Chinput/im/TL_hzinput.so
FAVORITE        =        YES

[SHP]
IMENAME                =        双拼
IMENAME                =        罽糶??
ENCODING        =        GB
FILE                =        gb/CCDOSPY.tab
MODULE                =        /usr/lib/Chinput/im/cce_hzinput.so
FAVORITE        =        YES

![WB]
!IMENAME                =        五笔字型
!IMENAME                =        き掸??
!ENCODING        =        GB
!FILE                =        cce/bigwb.tab
!MODULE                =        /usr/lib/Chinput/im/cce_hzinput.so
!FAVORITE        =        YES

[CODE]
IMENAME                =        内码
IMENAME                =        IntCode
ENCODING        =        GB
FILE                =       
MODULE                =        /usr/lib/Chinput/im/xl_intcode.so
FAVORITE        =        YES

[PY]
IMENAME                =        拼音输入
IMENAME                =        ??块?
ENCODING        =        BIG5
FILE                =        big5/pinyin.tab
MODULE                =        /usr/lib/Chinput/im/TL_hzinput.so
FAVORITE        =        YES

[CangJie]
IMENAME                =        仓颉输入
IMENAME                =        ?緀块?
ENCODING        =        BIG5
FILE                =        big5/cj.tab
MODULE                =        /usr/lib/Chinput/im/TL_hzinput.so
FAVORITE        =        YES

以下是我的/etc/gtk/gtkrc.zh_CN
# $(gtkconfigdir)/gtkrc.zh_CN
#
# This file defines the fontsets for Chinese language (zh) using
# the simplified chinese standard GuoBiao as in mainland China (CN)
#
# 1999, Pablo Saratxaga <[email protected]>
#

style "gtk-default-zh-cn" {
       fontset = "-adobe-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1,\
                  -misc-simsun-medium-r-normal--12-*-*-*-*-*-gbk-0,*-r-*"
}
class "GtkWidget" style "gtk-default-zh-cn"

我的输入法无论是ctrl shift、ctrl space、shift space都不行,根本就没有输入条。
其他一些配置ttf路径的文件我是不会写错的。请前辈看看那里有错。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-25 10:07 , Processed in 0.057892 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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