英文版ubuntu的中文(输入法)设置

本文详细介绍了如何在Ubuntu 8.04系统中安装和配置中文支持,包括安装字体、设置环境变量、安装输入法Fcitx等步骤,并解决了Fcitx显示乱码的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Chinese language support in ubuntu



what I have done For ubuntu 8.04:

1 .system->administration->language support: chinese
2.install fonts: here and hear for install new fonts,

I have ONLY do these steps:
  1. copy the font from a windows system to /usr/share/fonts/zh_CN/
  2. sudo mkfontscale
    sudo mkfontdir
    sudo fc-cache
3.setup locale: 英语环境下怎样开启fcitx?
首先
代码:
sudo locale-gen zh_CN.UTF-8

and I have done something extra:
sudo locale-gen zh_CN.GBK

然后打开/etc/environment,加入一行:
代码:
LC_CTYPE=zh_CN.UTF-8
,重启X,按Ctrl+空格键即可.

then the fonts are installed properly

4. sudo apt-get install fcitx
5.
im-switch -s fcitx

now fcitx could be invoked, but the interface of fcitx in weired charecters( 乱码)

6. fix the problem, according to 解决 fcitx 状态条中汉字显示为方框

change the second line of ~/.fctix to :
ÏÔÊŸ×ÖÌå(ÖÐ)=stsong
ÏÔÊŸ×ÖÌå(Ó¢)=Courier New

7. locale in theory:
关于locale的设定,为什么要设定locale
将 locale 从 zh_CN.GB2312 转到 zh_CN.UTF-8 的一些问题和解决方法

command:
iconv - Convert encoding of given files from one encoding to another
im-switch


优快云 blog 没有tag功能了?
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值