⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hztty.1

📁 我搜集到的一个java常用类库的源代码
💻 1
字号:
.TH HZTTY 1 "30 July 1992".SH NAMEhztty \- make a cxterm session understand different encodings.SH SYNOPSIS.B hztty[.B \-I.I input-stream] [[.B \-O.I output-stream][command line].SH DESCRIPTION.B hzttytranslates Chinese codes on your terminal from some \fIforeign\fPencoding or representation standard to the \fInative\fP encodingunderstandable by your terminal.A \fInative\fP encoding is the standard used by your terminal session,for example ``GB'' on ``cxterm'', and``Big5'' on ``cxterm -BIG5'' or ETen DOS.A \fIforeign\fP encoding is the one used by application runningon the terminal, for example, the ``zW/HZ'' representation..B hzttyalso translates Chinese codes you input on your terminal fromthe native encoding to the foreign encoding used by the application..LP.B hzttywas initially designed to read/post articles in the newsgroup``alt.chinese.text'', in which the ``zW/HZ'' scheme is used torepresent Chinese characters.Now it can do much more than that..LP.B hzttyends when the forked shell exits..SH IO STREAMS.LPThe Chinese code conversion in hztty is organized using the.I streammechanism.A stream consists of one or more conversion modules.Each of these modules implements a different kind of code conversion.In a stream the conversion modules form a pipeline that feeds one module's output to the next module's input.There is an input stream (from terminal input to the application)and an output stream (from the application to the terminal screen)in hztty.This version of hztty implements the following conversion modules..TP.B hz2gbIt converts zW/HZ to GB, usually used in output stream..TP.B gb2hzIt converts GB to zW/HZ, usually used in input stream.Note that you have to type in the escape sequencesyourself and make the text conforms to HZ specification.Hztty enforces no encoding policy..TP.B gb2bigIt converts GB to Big5..TP.B big2gbIt converts Big5 to GB..TP.B dummyIt does no conversion, bindly copyingfrom the previous module to the next module..TP.B log(\fIfilename\fB)It does no conversion but saves a copy of every charactersthat passes through this module in a log file named \fIfilename\fP.Be aware that the log file grows very fastsince everything you type (or print on the screen) are saved..SH OPTIONS.TP.B \-Ispecifies the input stream.If there are more than one modules in the stream,the module names are separated by `:'.The default input stream is ``gb2hz''..TP.B \-Ospecifies the output stream.If there are more than one modules in the stream,the module names are seperated by `:'.The default output stream is ``hz2gb''..LPIf \fIcommand line\fP is not given, the user selected shell(from the environment variable SHELL) is invoked in the hztty session.Otherwise, the \fIcommand line\fP is invoked instead of the shell..SH EXAMPLESExamples of conversion module combination in IO streams:.TP.B hzttyIt implies the default input/output streams of \fB-O hz2gb -I gb2hz\fP.It is useful in reading and writing HZ style Chinese codes(as in the newsgroup ``alt.chinese.text'')..TP.B hztty -O hz2gb:gb2big -I big2gb:gb2hzconverts zW/HZ to Big5.Useful in reading ``alt.chinese.text'' in a Big5 cxterm or ETen DOS terminal..SH SEE ALSOHZ - A Data Format for Exchanging Files of.brArbitrarily Mixed Chinese and ASCII characters.SH AUTHOR.LPYongguang Zhang, Purdue University,.I (ygz@cs.purdue.edu).LPCopyright @ 1992 by Yongguang Zhang.brPermission to use, copy, modify, and redistribute is hereby granted.The author disclaims all warranties with regarding to this software..SH CONTRIBUTORS AND ACKNOWLEDGEMENTS.LPNorm Matloff, University of California at Davis,.I (matloff@cs.ucdavis.edu),contributes his code for reading zW/HZ in a Big5 cxterm on the fly..LPThe Big5/GB conversion tables are generated from HC 1.2u,by Feng Feng Lee of Stanford University andRicky Yeung of Washington University (now with Sun Microsystems)..LPShangjie Jin of Edinburgh University, UK,.I (sjin@castle.edinburgh.ac.uk),ported hztty to sequent boxes..SH BUGS.LPCannot dynamically add (delete) a conversion module to (from) the streams.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -