WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: (zh_CN) Chinese support for tinycorelinux/中文支持包  (Read 26520 times)

Offline kangkang

  • Newbie
  • *
  • Posts: 5
(zh_CN) Chinese support for tinycorelinux/中文支持包
« on: October 15, 2009, 04:50:08 AM »
Hi all, I made two tcz packages for tinycorelinux's Chinese support, one is locale support, the other is fcitx input method.
做了两个tcz包,用以支持中文,一个是locale,包括了zh_CN.UTF8的glibc支持,和X的zh_CN.UTF-8区域支持,这对于显示中文来说不是必要的,但是对于输入来说是必要的。另一个是fcitx的中文输入法,版本为3.5,没有做过精简。
使用时请在某处,如~/.xsession里加入

export LANG=zh_CN.utf8
export LC_ALL=zh_CN.utf8

export XMODIFIERS="@im=fcitx"
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim

fcitx &

或在aterm中运行,然后在此term中运行其它需要中文输入及中文支持的程序。
注意,需要先安装glibc_开头的一系列包及fontconfig,请自行安装中文字体,可放在/user/share/fonts或~/.fonts。

下载地址:
[removed]fcitx.tcz 4.9M
[removed]fcitx.tcz.dep
[removed]locale-zh_cn.tcz 372k

[^thehatsrule^: please see extension submission guidelines]
« Last Edit: October 20, 2009, 10:13:04 PM by ^thehatsrule^ »

Offline funcvg

  • Newbie
  • *
  • Posts: 9
Re: (zh_CN) Chinese support for tinycorelinux/中文支持包
« Reply #1 on: October 19, 2009, 05:07:13 AM »
太感谢了!

终于搞定了,我的firefox也可以输入啦!

原因是缺少gtk.immodules文件
在/usr/local/gtk-2.0/目录下面创建gtk.immodules文件,内容如下:
"/usr/local/lib/gtk-2.0/2.10.0/immodules/im-xim.so"
"xim" "X Input Method" "gtk20" "/usr/share/locale" "en:ko:ja:th:zh"



加入windows的simsun.ttf、文泉字体,



安装了glibc_开头的一系列包及fontconfig,
加载包的列表(至少这些是需要的)
expat2
fcitx
fontconfig
font-wqy-zenhei
glibc_gconv
locale-zh_cn
Xlibs_support



~/.xsession里加入了代码,位置要靠前
......
"$DESKTOP" 2>/tmp/wm_errors &

export LANG="zh_CN.utf8"
export LC_CTYPE="zh_CN.utf8"
export LC_ALL="zh_CN.utf8"
export XIM="fcitx"
export XIM_PROGRAM="fcitx"
export XMODIFIERS="@im=fcitx"
export GTK_IM_MODULE=XIM
export QT_IM_MODULE=XIM
fcitx &

export WM_PID=$!
......



下载地址(楼主的):
[removed]/fcitx.tcz
[removed]/fcitx.tcz.dep
[removed]/locale-zh_cn.tcz

[^thehatsrule^: removed; please do not ignore the rules!]
« Last Edit: November 17, 2009, 04:51:19 PM by ^thehatsrule^ »

Offline kangkang

  • Newbie
  • *
  • Posts: 5
Re: (zh_CN) Chinese support for tinycorelinux/中文支持包
« Reply #2 on: November 14, 2009, 03:05:35 AM »
OK. jyf and I will test it according the guide and submit it when finished.

Offline kangkang

  • Newbie
  • *
  • Posts: 5
Re: (zh_CN) Chinese support for tinycorelinux/中文支持包
« Reply #3 on: November 14, 2009, 07:29:13 AM »
Thanks, you are right, I've a mistake.
A file missing will cause IM can't be actived in gtk program.
`/usr/local/etc/gtk-2.0/gtk.immodules'
Below command can help you fix this problem:
mkdir -p /usr/local/etc/gtk-2.0/
gtk-query-immodules-2.0 > /usr/local/etc/gtk-2.0/gtk.immodules
sed -i "s#/usr/local/share/locale#/usr/share/locale#g" /usr/local/etc/gtk-2.0/gtk.immodules
太感谢了!

终于搞定了,我的firefox也可以输入啦!

原因是缺少gtk.immodules文件
在/usr/local/gtk-2.0/目录下面创建gtk.immodules文件,内容如下:
"/usr/local/lib/gtk-2.0/2.10.0/immodules/im-xim.so"
"xim" "X Input Method" "gtk20" "/usr/share/locale" "en:ko:ja:th:zh"



Offline lovenini

  • Newbie
  • *
  • Posts: 11
Re: (zh_CN) Chinese support for tinycorelinux/中文支持包
« Reply #4 on: July 24, 2010, 04:47:04 PM »
hi kangkang:
locale-zh_cn.tcz no longer works for TC V3.0 (correct me if I'm wrong)

I can start fcitx but it cannot input to leafpad or gtk programs.
could you kindly fix it so we could move up to TC 3.x? thank you for the work.


Offline thf85

  • Newbie
  • *
  • Posts: 1
Re: (zh_CN) Chinese support for tinycorelinux/中文支持包
« Reply #5 on: October 04, 2010, 03:38:11 AM »
good!!!!!!!!!!!!!!!!

Offline PIRAT507

  • Newbie
  • *
  • Posts: 22
Re: (zh_CN) Chinese support for tinycorelinux/中文支持包
« Reply #6 on: October 16, 2010, 08:05:00 PM »
Is someone already translating the Chinese Fora topics in English?
I think this is a welcome to make Tiny/MicroCore a more popular Linux distribution.
Micro/TinyCore already has world's most brilliant people working on it.


Offline funcvg

  • Newbie
  • *
  • Posts: 9
Re: (zh_CN) Chinese support for tinycorelinux/中文支持包
« Reply #7 on: March 15, 2011, 09:59:26 PM »
Here is the localization of chinese from hujy in linuxsir:

*******************************************
标题: tinycore 3.0汉化记录

1 设置locale
安装
glibc_i18n_locale.tcz
glibc_add_libs.tcz
glibc_apps.tcz
glibc_gconv.tcz
运行
mkdir -p /usr/lib/locale
localedef -i zh_CN -f GBK zh_CN
localedef -i zh_CN -f UTF-8 zh_CN
将usr/lib/locale/locale-archive写入到/opt/.filetool.lst
编辑grub的munu.lst在启动项目中加入lang=zh_CN.gbk

2 安装中文字体
下载wqy-microhei中文字体安装到/usr/share/fonts/
将usr/share/fonts/wqy-microhei.ttc写入到/opt/.filetool.lst

3 安装fcitx
安装
xorg-dev
fontconfig-dev
compiletc
squashfs-tools
下载fcitx-3.5
./configure --enable-xft --prefix=/usr/local
make
touch /tmp/mark
make DESTDIR=/tmp/package install
cd /tmp
mksquashfs package fcitx-3.5.tcz
打包成功后通过appbrowser安装
在~./xsession中写入
export XMODIFIERS="@im=fcitx"
export XIM=fcitx
export XIM_PROGRAM=fcitx
fcitx &

4 问题
3.6版本编译后安装出错,3.5版本可以编译安装,但在zh_CN.utf8环境下输入会出现乱码等不正常现象估计是local的缘故,在zh_CN.gbk环境下输入正常。

谈谈新版的使用感受
tinycore 3.0版本感觉变化挺大的,tce包好像都取消了,对硬件的支持更好了。
宽屏显示需要安装xorg,参考http://wiki.tinycorelinux.com/Using+Xorg+over+Xvesa
声卡设置,参考http://wiki.tinycorelinux.com/Setting+up+Sound
无线网卡设置,参考http://wiki.tinycorelinux.com/Setting+up+Wifi
安装在笔记本上,运行速度很快。我用一个1G分区安装tinycore,装了firefox、emelfm2、fcitx、wicd和一些编译工具大概用去150M。

__________________
Arch Debian Gentoo Slackware
此帖于 10-08-16 17:38 被 hujy 编辑.
**********************************************************


Using the fcitx that is compiled offical,just copy the compiled file to /usr .

Offline funcvg

  • Newbie
  • *
  • Posts: 9
Re: (zh_CN) Chinese support for tinycorelinux/中文支持包
« Reply #8 on: March 15, 2011, 10:03:24 PM »
Here is a copy that chinese localization is ready for tinycore 3.5 :

******************************************

标题: 重新用tinycore linux 3.5做了一个便携中文iso,大家有兴趣也试试。

我的旧电脑piii原来 W2K的,这段时间换tinycore,试试还行,wifi,firefox都还好用。折腾一段时间后做了个基本版,约36M,多是GTK程序,如 PCMANFM文件管理,GEANY编辑器,DILLO2浏览器,MTPAINT画图,XARCHIVER压缩管理、LXTASK任务管理。中文支持是 gb18030的locale,FCITX4输入法,文泉驿字体。slitaz的文件夹图标比较好看,用来替换了lxde的。还有些小工具 gpicview,leafpad,ntfs-3g,bftpd, parted,grub4dos等。live cd放在新浪共享,在外面方便。大家有兴趣也可以试试:
现在3.5了:http://ishare.iask.sina.com.cn/f/13492555.html

在pcmanfm中mount要root用户。常用的命令放在tce目录下CMD.TXT里。linux就是方便,鼠标一框,一个中键就到 terminal了,比快捷方式还快捷。dillo是简陋了点,用来看一些纯网页却正好,快速又清洁。系统带的App Browser找软件,WIFI、firefox, chrome、mplayer、openoffice都有。

要放到硬盘上,将iso解压,用grub4dos,设置一下menu.lst就能硬盘启动。tce目录放任一盘的根目录下都可以。
此帖于 11-02-17 14:00 被 aswjh 编辑.
***********************************************

Offline quanpin

  • Newbie
  • *
  • Posts: 28
Re: (zh_CN) Chinese support for tinycorelinux/中文支持包
« Reply #9 on: March 28, 2011, 07:15:41 AM »
其实tinycore不仅是小型的,还可以很强大,装LXDE桌面试试,超爽快。网易开源里有tinycore,大伙要好好宣传啊!可以添加到tcemirror

Offline quanpin

  • Newbie
  • *
  • Posts: 28
Re: (zh_CN) Chinese support for tinycorelinux/中文支持包
« Reply #10 on: March 28, 2011, 07:21:15 AM »
不会发图,变成附件了!? ???

Offline quanpin

  • Newbie
  • *
  • Posts: 28
Re: (zh_CN) Chinese support for tinycorelinux/中文支持包
« Reply #11 on: April 18, 2011, 11:27:58 PM »
下载fcitx4.0压缩包后,在gtk程序下不能激活输入法。后来终于可以了

第一步:

~/.xsession里加入了代码,位置要靠前
......
"$DESKTOP" 2>/tmp/wm_errors &

export LANG="zh_CN"
export LC_CTYPE="zh_CN"
export LC_ALL="zh_CN"
export XIM="fcitx"
export XIM_PROGRAM="fcitx"
export XMODIFIERS="@im=fcitx"
export GTK_IM_MODULE=XIM
export QT_IM_MODULE=XIM
fcitx &

export WM_PID=$!
......


第二步
mkdir -p /usr/local/etc/gtk-2.0/

sudo su

gtk-query-immodules-2.0 > /usr/local/etc/gtk-2.0/gtk.immodules

sed -i "s#/usr/local/share/locale#/usr/share/locale#g" /usr/local/etc/gtk-2.0/gtk.immodules

有图有真相 ;D
http://img1.ylmf.net/data/attachment/forum/201104/18/211930wrpqxwei5z55r5dq.png


Offline tonytea

  • Newbie
  • *
  • Posts: 1
Re: (zh_CN) Chinese support for tinycorelinux/中文支持包
« Reply #12 on: August 29, 2011, 05:44:59 AM »
still failed to fix fcitx.

Offline StXh

  • Newbie
  • *
  • Posts: 14
Re: (zh_CN) Chinese support for tinycorelinux/中文支持包
« Reply #13 on: September 13, 2011, 12:55:37 AM »
我使用小小输入法,小,好用

Offline lovenini

  • Newbie
  • *
  • Posts: 11
Re: (zh_CN) Chinese support for tinycorelinux/中文支持包
« Reply #14 on: October 08, 2011, 07:03:34 AM »
chinese input fcitx for tc3.0 already worked long ago
==================================
wget http://tinycore.drivehq.com/tinycore3_fcitx.tar.gz
tar zxvf tinycore3_fcitx.tar.gz

#use GUI app manager to install glibc_gconv online
#fcitx depends on font-config(part of firefox) and glibc_gconv online
#use GUI app manager to install local,/home/tc/fcitx_tc3/,fcitx.tcz

#then run below in an aterm, and exec firefox/qterm in this aterm will fcitx
export LANG=zh_CN.UTF-8         
export XMODIFIERS="@im=fcitx"
export XIM=fcitx
export XIM_PROGRAM=fcitx
fcitx &
#firefox &
leafpad &