LinuxSir.cn,穿越时空的Linuxsir!

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

Gentoo Linux 1.4 xft2+xtt汉化指南(2003.10.27更新)

[复制链接]
发表于 2003-7-12 02:03:49 | 显示全部楼层
最初由 dreamdreams 发表
According to my understanding, Gentoo doesn't need i18n. You just install Chinese fonts, setup font path or/and fonts.dir/fonts.scale, and set your LC_ environment variables. That's it.


没有i18n,LC_什么的怎么会起作用呢?
发表于 2003-7-12 02:10:52 | 显示全部楼层
Your application will read these variables. If the application doesn't support Chinese, or doesn't read these variables, i18n could do nothing. I guess i18n just supplies a standard place to config these variables. Actually you can set them anywhere you want.

Please correct me if I'm wrong.
发表于 2003-7-12 02:30:14 | 显示全部楼层
please "info libc"
and read the section "Locales"

basiclly, i18n does NOT means some file called "i18n" or sth like this, it stands for internationalization. the LC_ variables are just some configurable "interface" of it. The glibc has a full set of functions to handle all these things according to your locale settings.
发表于 2003-7-12 02:40:01 | 显示全部楼层
I meant .i18n files, not i18n mechanism. I simply don't have any .i18n files nor kde-i18n packages with my Gentoo box. My application interfaces are all English though they can still handle Chinese contents with LC_* settings.
发表于 2003-7-12 02:44:40 | 显示全部楼层
oh. please refer to gentoo env.d guide

gentoo does not care about file name...and the i18n file is just another way to set your LC_ variables, in fact, a more elegant way
发表于 2003-7-12 03:09:54 | 显示全部楼层
I don't think local settings should be system wide. Coz different users in the system may have different native languages. So it's better setting them in particular user's $HOME/.bashrc or whatever place instead /etc/env.d/ .

Anyway, we are clear now.
发表于 2003-7-12 04:32:37 | 显示全部楼层
yes, you are clear, but I'm not.

Did you mean that the package kde-i18n just provide us an international interface such as menus and buttons of KDE, and we don't need it to support Chinese programs?

Now I installed the simsun, simsun18030 and tahoma fonts on my computer, they works well and I can see the web page. But I failed in xsim:

#~>xsim
XSIM: failed create font :-*-*-*-*-*-*-16-*-*-*-*-*-iso8859-1

Looks xsim can't find a font in my system to use for inputpanel and status panel. Why? Here is my /etc/xsimrc:

# xsim config file
XIM_NAME        "XSIM"
XIM_LOCALE      "zh_CN"
XIM_EXT_LOCALE  ""
#XIM_EXT_LOCALE "zh_TW,ja_JP,zh_CN.UTF-8"

ON_SPOT_ENABLED Yes
DICT_LOCAL      /usr/lib/xsim/dat
PLUGIN_LOCAL    /usr/lib/xsim/plugins

TRIGGER_KEY     "ctrl space"
SWITCH_KEY      "ctrl alt Shift_R"

SHOW_STATUS_PANEL Yes
# Refer to /usr/lib/X11/rgb.txt for details of colors
INPUT_PANEL             "std"
        FG_COLOR        "black"
        BG_COLOR        "gray92"
        SUFFIX_COLOR    "blue"
        CARET_COLOR     "blue"
        FONT_NAME       "AUTO"

# avliable status_panel "std" "kde2" "kde3"
STATUS_PANEL            kde3
        FG_COLOR        "black"
        BG_COLOR        "gray92"
        STATUS_COLOR    "green"
        FONT_NAME       "AUTO"

INPUT_METHOD            "jianpin"
        IM_DESC                 简拼
        CARE_H                  No
        CARE_NG                 Yes
        DEFAULT_MB_DOT          Yes
        CHARDB                  chardb
        WORDDB                  worddb

        #maybe u need these key
        #PREV_KEY               "age_Up"
        #NEXT_KEY               "age_Down"

        PREV_KEY                "comma"
        NEXT_KEY                "period"
        B2Q_KEY                 "shift space"
        DOTSWITCH_KEY           "ctrl period"
        #<N> will be replaced by 1-9
        WORDDELETE_KEY          "ctrl N"
发表于 2003-7-12 05:09:02 | 显示全部楼层
最初由 seraph_q 发表
yes, you are clear, but I'm not.

Did you mean that the package kde-i18n just provide us an international interface such as menus and buttons of KDE, and we don't need it to support Chinese programs?

Now I installed the simsun, simsun18030 and tahoma fonts on my computer, they works well and I can see the web page. But I failed in xsim:



Yes I did.

About xsim, I have no idea though I've ever used it without problem. I recommend fcitx. Check it out, you will be happier with it than xsiim. You could also take a look at www.fcitx.org frist.
发表于 2003-7-12 07:12:26 | 显示全部楼层
Thanks a lot. I downloaded fcitx-1.8.5.tar.bz2 from www.fcitx.org and make && make install it. After added

export XMODIFIERS="@im=fcitx"
export XIM=fcitx
export XIM_PROGRAM=fcitx

in my ~/.bashrc it can start up, but seems it has been disabled. The WuBi icon is gray, and I can't active the input method by Ctrl+Space, Ctrl+Shift, Alt+1 or 2... Do you know how to fix it?

And also, can you tell me how to let fcitx automatically start when I start KDE? If I add it in ~/.bashrc it will run every time I start a terminal; I tried to add "fcitx &"  in ~/.xinitrc after the "startkde" command , together with the the "XMODIFIERS" environment variables, but it doesn't work.

Thank you again
发表于 2003-7-12 07:37:24 | 显示全部楼层
I tried to add "fcitx &" in ~/.xinitrc after the "startkde" command , together with the the "XMODIFIERS" environment variables, but it doesn't work.
-------------------
not after, but before :-)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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