Input Chinese in Unix

KuCaiHua

新手上路
注册
2002-07-23
消息
391
荣誉分数
0
声望点数
0
I knew some software can allow you input Chinese in Unix, I tried couple, none of them work. Someone have working solution? By the way, I'm on Solaris. I knew at least AfterDie is on the same boat with me.

Note: Please don't off the topic. In the previous thread,
http://www.liujuan.com/newbbs/showthread.php?s=&forumid=16&threadid=34344
People began with the topic, then turn to KFC.

I knew KFC is good , but only eating KFC cannot put my Unix working with Chinese.
 
I think no way.
even there is a way, you have no permition to change the OS setup.
 
but if you buy me KFC chicken, I'll tell you the solution. So your question is tightly associated with Eating.
 
最初由 AfterDie 发布
I think no way.
even there is a way, you have no permition to change the OS setup.

破解root的passwd并不是很难。
 
最初由 Homer 发布
but if you buy me KFC chicken, I'll tell you the solution. So your question is tightly associated with Eating.

:p
 
treat the administrator lunch in KFC
 
不知道下面两篇是否有用?

如何在bash下使用中文
http://www.fanqiang.com (2001-06-12 12:10:00)

编辑 /etc/profile,加入:

stty pass8
export LANG=C
export LC_CTYPE=ios-8859-1





Solaris 8 htt 中文输入法服务器的基本属性及启动
本文出自: http://docs.sun.com (2001-06-14 20:10:00)
htt 输入法服务器处理简体中文 Solaris 软件的简体中文输入。htt 服务器接收键盘输入并转换为简体中文字,供简体中文 Solaris 系统的应用程序使用。htt 服务器可为任何使用 X Windows 输入法 (XIM) 的应用程序编程接口 (API) 接收语言输入的国际化 X Windows 应用程序提供服务。
在通常情况下,您不需要更改任何 htt 的设置便可运行任何简体中文 Solaris 应用程序。

输入法服务器的基本属性
-------------------------
当您在需要该输入法的语言环境中启动 Solaris 操作环境时,简体中文 Solaris 操作环境自动启动 htt 输入法服务器。htt 继续运行并向已被启动、并与之相连的应用程序提供服务。如果您需要重新启动 htt,请参见 如何和何时启动 htt。

使用 htt 来输入简体中文字的简体中文 Solaris 应用程序在启动时,通常 htt 也已经在运行。如要使用 htt 的服务来做语言输入,在一个应用程序启动之前,htt 应先运行。如果应用程序被启动时 htt 不在运行,此应用程序可能无法得到输入服务。即使 htt 此后已启动,亦如此。

三个 htt 的进程
输入法服务器包括三个相关的、在一起运行的程序:(htt_props、htt 和 htt_server)。一个进程控制输入法服务器的属性,另一个控制着输入法服务器的用户 (也就是 "看护狗" 进程),第三个进程处理客户的输入法。

通常,您不需要知道这三个进程的细节。当 htt 启动时,htt_props 和 htt_server 也一起启动。


如何和何时启动 htt
-------------------------
任何使用 htt 输入法服务器来接收简体中文文字的应用程序,只有在 htt 运行后才能接收输入简体中文文字。例如,如果您的缺省环境是 C 环境 (它不需要 htt),然后在一个终端上您从 C 环境更换到另一个环境,您必须用类似以下的命令行来启动 htt:


system% htt &


如果语言环境设置为 zh ,当简体中文窗口环境启动时,htt 也自动启动。在 CDE 中,htt 由一个脚本启动,/usr/dt/config/Xsession.d/0020.dtims。此脚本由 Xsession 执行。用户每次从 dtlogin 中登录时的初始化阶段,Xsession 开始运行。此脚本保证 htt 先于 CDE 中的其他应用程序启动。


退出 - 完全中止 htt
-------------------------
。如果需要重新启动 htt,从一个 shell 窗口启动:


system % htt &


后台 - 仅中止 htt 属性管理器。
------------------------------
htt 图标和 htt 属性管理器窗口不再可见。然而,htt 输入法服务器仍然在起作用。如果需要重新启动 htt 属性管理器,从一个 shell 窗口启动 htt_props。


system% htt_props &




htt 的命令行选项可通过其手册页或键入:
--------------------------------------
system% htt -help
 
AfterDie please come in

Thanks for all the suggestion. Here is the results:

1. cxterm: Compile error. :(

2. stty pass8
export LANG=C
export LC_CTYPE=ios-8859-1
stty type is not defined. :( :(

3. htt: Error - locale not supported. :( :( :(

I checked the sun docs, they claim that they support all the fonts incuding Chinese by there own "en_US.UTF-8" encode. Try to set the encode, have English, European, Arabics, .... But they doesn't have Chinese. :crying: :crying: :crying: :crying:

AfterDie: Can you try on your machine? when you login, select option->language->en_US.UTF-8. See what you'll get.
 
1. cxtrem log

clearmake[1]: Leaving directory `/home/users/mliu1/cxterm-5.0'
make
clearmake[1]: Entering directory `/home/users/mliu1/cxterm-5.0'
making all in ./cxterm...
rm -f main.o
cc -c -O -Xc -xF -xcg92 -I/usr/openwin/include -Dsun -Dsparc -DSVR4 -DSYSV -DHANZI -DUTMP -DUSE_TTY_GROUP -DOSMAJORVERSION=5 -DOSMINORVERSION=6 main.c
/usr/ucb/cc: language optional software package not installed
*** Error code 1
make: Fatal error: Command failed for target `main.o'
Current working directory /home/users/mliu1/cxterm-5.0/cxterm
making all in ./utils...
cc -O -Xc -xF -xcg92 -I/usr/openwin/include -Dsun -Dsparc -DSVR4 -DSYSV -c tit2cit.c
/usr/ucb/cc: language optional software package not installed
*** Error code 1
make: Fatal error: Command failed for target `tit2cit.o'
Current working directory /home/users/mliu1/cxterm-5.0/utils
making all in ./dict...
making all in dict/gb...
../../utils/tit2cit CCDOSPY.tit > CCDOSPY.cit
sh: ../../utils/tit2cit: not found
*** Error code 1
make: Fatal error: Command failed for target `CCDOSPY.cit'
Current working directory /home/users/mliu1/cxterm-5.0/dict/gb
*** Error code 1
make: Fatal error: Command failed for target `all'
Current working directory /home/users/mliu1/cxterm-5.0/dict
making all in ./fonts...
bdftopcf -t gb16st.bdf -o gb16st.pcf
bdftopcf -t hku16et.bdf -o hku16et.pcf
set LD_LIBRARY_PATH ../usrlib
export LD_LIBRARY_PATH
mkfontdir .

clearmake[1]: Leaving directory `/home/users/mliu1/cxterm-5.0'

Wed Sep 25 10:21:41 EDT 2002

Full build of cxterm complete.


Compilation well done.
 
后退
顶部